@import "tailwindcss";
@config "../tailwind.config.ts";

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --accent-1: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #a78bfa;
}

* { scrollbar-width: thin; scrollbar-color: rgba(99,102,241,0.3) transparent; }
*::-webkit-scrollbar { width: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.3); border-radius: 3px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.5); }

body {
  background: var(--bg-primary);
  color: #e2e8f0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bg-mesh {
  background-image: 
    radial-gradient(at 20% 80%, rgba(99,102,241,0.08) 0%, transparent 50%),
    radial-gradient(at 80% 20%, rgba(139,92,246,0.06) 0%, transparent 50%),
    radial-gradient(at 50% 50%, rgba(167,139,250,0.04) 0%, transparent 50%);
}

.glass {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-2), var(--accent-1));
  background-size: 300% 300%;
  animation: gradient-shift 6s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 2px rgba(99,102,241,0.2), 0 0 20px -5px rgba(99,102,241,0.15);
}

::selection { background: rgba(99,102,241,0.3); color: #fff; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(16,185,129,0.4); }
  50% { box-shadow: 0 0 16px rgba(16,185,129,0.6); }
}
.pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
