@import "tailwindcss";

@theme inline {
  --color-dark-900: #0a0a0f;
  --color-dark-800: #0f0f1a;
  --color-dark-700: #1a1a2e;
  --color-dark-600: #2a2a3e;
  --color-dark-500: #3a3a4e;
  --color-accent-400: #a78bfa;
  --color-accent-500: #7c3aed;
  --color-accent-600: #6d28d9;
  --color-success: #22c55e;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #2a2a3e #0f0f1a;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: #0f0f1a;
}

*::-webkit-scrollbar-thumb {
  background: #2a2a3e;
  border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
  background: #3a3a4e;
}

html {
  background: #0a0a0f;
  color: #e2e8f0;
}

body {
  background: #0a0a0f;
  color: #e2e8f0;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  min-height: 100vh;
}

::selection {
  background: rgba(124, 58, 237, 0.4);
  color: #fff;
}

/* Smooth transitions globally */
*, *::before, *::after {
  transition-property: background-color, border-color, color, opacity, box-shadow, transform;
  transition-timing-function: ease;
  transition-duration: 150ms;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #2a2a3e;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-switch.active {
  background: #7c3aed;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #e2e8f0;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle-switch.active::after {
  transform: translateX(20px);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}
