* {
  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 fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.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;
}

/* Settings nav */
.set-nav {
  transition: all 0.2s;
}
.set-nav.active {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.15),
    rgba(6, 182, 212, 0.1)
  );
  color: #7c3aed;
  border-left: 3px solid #7c3aed;
}
html:not(.dark) .set-nav.active {
  color: #7c3aed;
}
.dark .set-nav.active {
  color: #a78bfa;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #334155;
  border-radius: 12px;
  transition: all 0.3s;
  cursor: pointer;
  flex-shrink: 0;
}
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;
}

/* Theme card */
.theme-card {
  transition: all 0.3s;
  cursor: pointer;
}
.theme-card:hover {
  transform: translateY(-4px);
}
.theme-card.active {
  border-color: #7c3aed;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

/* Password strength */
.strength-bar {
  height: 4px;
  border-radius: 2px;
  transition: all 0.3s;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
