:root {
  --accent: #7c5cff;
  --muted-light: #6b7280;
  --border-light: rgba(0,0,0,0.1);
  --text-light: #1f2937;
  --simple-bg: #ffffff;
}

body {
  background: linear-gradient(180deg, #f7f7f7 0%, #e5e7eb 100%);
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
}

.simple-bg {
  background: var(--simple-bg);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-hover {
  transition: transform .35s ease, box-shadow .35s ease;
}

.card-hover:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.converter-container {
  max-width: 600px;
  margin: 0 auto;
}

#canvas, #svgOutput svg {
  max-width: 100%;
  height: auto;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.btn-primary {
  background: linear-gradient(to right, #7c5cff, #4f46e5);
  color: white;
  padding: 12px;
  border-radius: 8px;
  width: 100%;
  text-align: center;
  transition: opacity .3s ease;
}

.btn-primary:hover {
  opacity: 0.95;
}

.btn-secondary {
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: transparent;
  color: var(--text-light);
  width: 100%;
  text-align: center;
  transition: background .3s ease;
}

.btn-secondary:hover {
  background: rgba(0,0,0,0.05);
}

.color-swatch {
  width: 20px;
  height: 20px;
  display: inline-block;
  border: 1px solid #d1d5db;
  margin-right: 5px;
  vertical-align: middle;
}

.layer-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.layer-preview div {
  border: 1px solid #d1d5db;
  padding: 5px;
  border-radius: 4px;
  background: var(--simple-bg);
}

.error {
  color: #ef4444;
  margin-top: 10px;
}

input[type="number"] {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-light);
  padding: 8px;
  border-radius: 4px;
  width: 100px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.tip {
  font-size: 12px;
  color: var(--muted-light);
  margin-bottom: 12px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .converter-container {
    max-width: 100%;
  }
}
