/* ===========================
   ROOT VARIABLES
=========================== */

:root {
  --bg-dark: #0b1220;
  --bg-darker: #0f172a;
  --card-bg: rgba(255,255,255,0.05);
  --card-border: rgba(255,255,255,0.08);
  --accent: #22c55e;
  --accent-glow: rgba(34,197,94,0.4);
  --blue: #2563eb;
  --purple: #8b5cf6;
  --cyan: #06b6d4;
  --red: #ef4444;
  --yellow: #facc15;
  --text-primary: #e2e8f0;
  --text-muted: #94a3b8;
  --radius: 16px;
  --transition: all 0.35s ease;
}

/* ===========================
   RESET
=========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ===========================
   GLASS CARD BASE
=========================== */

.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* ===========================
   BUTTONS
=========================== */

.btn {
  padding: 10px 20px;
  margin-top: 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.btn-accent {
  background: var(--accent);
  color: #0b1220;
}

.btn-accent:hover {
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

/* ===========================
   INPUTS
=========================== */

input, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05);
  color: white;
  outline: none;
  transition: var(--transition);
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ===========================
   TOGGLE SWITCH
=========================== */

.switch {
  position: relative;
  width: 46px;
  height: 24px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: #334155;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 4px;
  transition: var(--transition);
}

.switch input:checked + .slider {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

/* ===========================
   FADE IN ANIMATION
=========================== */

.fade-in {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
