* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Plus Jakarta Sans", sans-serif;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
html:not(.dark) ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7c3aed;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.gradient-animate {
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.float-animation {
  animation: float 3s ease-in-out infinite;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.slide-down {
  animation: slideDown 0.3s ease forwards;
}
@keyframes livePulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.live-dot {
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes toastIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.toast-in {
  animation: toastIn 0.4s ease forwards;
}
@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.zoom-in {
  animation: zoomIn 0.3s ease forwards;
}
@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.6);
  }
}
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes shineMove {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.shine {
  position: relative;
  overflow: hidden;
}
.shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shineMove 3s infinite;
  pointer-events: none;
}

.sidebar {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-link {
  transition: all 0.2s ease;
}
.dark .sidebar-link:hover,
.dark .sidebar-link.active {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.15),
    rgba(6, 182, 212, 0.1)
  );
}
html:not(.dark) .sidebar-link:hover,
html:not(.dark) .sidebar-link.active {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.08),
    rgba(6, 182, 212, 0.05)
  );
}
.sidebar-link.active {
  border-right: 3px solid #7c3aed;
}

/* Upload dropzone */
.dropzone {
  transition: all 0.3s;
}
.dropzone:hover,
.dropzone.drag-over {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.05);
}

/* Type card */
.type-card {
  transition: all 0.3s;
}
.type-card:hover {
  transform: translateY(-4px);
}
.type-card.active {
  border-color: #7c3aed;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.1),
    rgba(6, 182, 212, 0.05)
  );
}
.type-card.active .type-icon {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
}
.type-card.active .type-icon i {
  color: white;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #334155;
  border-radius: 12px;
  transition: all 0.3s;
  cursor: pointer;
}
html:not(.dark) .toggle-switch {
  background: #e2e8f0;
}
.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.toggle-switch.active {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
}
.toggle-switch.active::after {
  left: 22px;
}

/* Step progress */
.step-line {
  transition: all 0.3s;
}
.step-active .step-circle {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: white;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}
.step-active .step-line {
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
}
.step-completed .step-circle {
  background: #22c55e;
  color: white;
}
.step-completed .step-line {
  background: #22c55e;
}

/* Custom range */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(to right, #7c3aed, #06b6d4);
  border-radius: 3px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 3px solid #7c3aed;
  border-radius: 50%;
  margin-top: -7px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}

/* Preview card */
.preview-card {
  transition: all 0.4s;
}
.preview-card:hover {
  transform: translateY(-4px);
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
