/* ===== Theme Transition ===== */
*, *::before, *::after {
  transition: background-color 0.35s ease, color 0.25s ease,
              border-color 0.35s ease, box-shadow 0.35s ease;
}

/* ===== Light Theme (default) ===== */
:root {
  --accent:        #1d4ed8;
  --accent-2:      #1e40af;
  --accent-hover:  #1e3a8a;
  --accent-light:  rgba(29, 78, 216, 0.08);
  --accent-glow:   rgba(29, 78, 216, 0.15);

  --bg-primary:  #f0f4f8;
  --bg-surface:  #ffffff;
  --bg-elevated: #e8eef6;
  --bg-card:     #ffffff;

  --text-primary:   #1a2332;
  --text-secondary: #4a5568;
  --text-muted:     #94a3b8;

  --border:       #e2e8f0;
  --border-focus: #93c5fd;

  --success:    #059669;
  --success-bg: rgba(5, 150, 105, 0.08);
  --danger:     #dc2626;
  --danger-bg:  rgba(220, 38, 38, 0.08);
  --warning:    #d97706;

  --shadow-sm: 0 1px 4px  rgba(0,0,0,0.06);
  --shadow:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);

  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-bg:      rgba(255,255,255,0.92);
  --modal-bg:    #ffffff;
  --input-bg:    #f8fafc;
  --hero-text:   #ffffff;
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
  --bg-primary:  #0f1117;
  --bg-surface:  #1a1d27;
  --bg-elevated: #242736;
  --bg-card:     #1e2130;

  --text-primary:   #e8eaf0;
  --text-secondary: #9aa3b8;
  --text-muted:     #5a6480;

  --border:       #2e3347;
  --border-focus: #3b5bdb;

  --accent:        #4f7ef8;
  --accent-2:      #3b6de0;
  --accent-hover:  #6690ff;
  --accent-light:  rgba(79, 126, 248, 0.12);
  --accent-glow:   rgba(79, 126, 248, 0.20);

  --success:    #34d399;
  --success-bg: rgba(52, 211, 153, 0.10);
  --danger:     #f87171;
  --danger-bg:  rgba(248, 113, 113, 0.10);
  --warning:    #fbbf24;

  --shadow-sm: 0 1px 4px  rgba(0,0,0,0.30);
  --shadow:    0 4px 16px rgba(0,0,0,0.40);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.50);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.60);

  --nav-bg:      rgba(26,29,39,0.95);
  --modal-bg:    #1e2130;
  --input-bg:    #242736;
  --hero-text:   #ffffff;
}
