/* ==========================================================================
   CASAP MARIKINA SHS ALUMNI & PLACEMENT MANAGEMENT SYSTEM
   Main Design System & CSS Variables
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* CASAP Institutional Brand Palette */
  --casap-navy-950: #07152b;
  --casap-navy-900: #0c234b;
  --casap-navy-800: #133368;
  --casap-navy-700: #1b4587;
  --casap-blue-600: #2563eb;
  --casap-blue-500: #3b82f6;
  --casap-blue-400: #60a5fa;
  --casap-blue-100: #dbeafe;
  --casap-blue-50:  #eff6ff;

  /* CASAP Gold & Warm Accents */
  --casap-gold-600: #d97706;
  --casap-gold-500: #f59e0b;
  --casap-gold-400: #fbbf24;
  --casap-gold-100: #fef3c7;
  --casap-gold-50:  #fffbeb;

  /* Status Accents */
  --success-600: #059669;
  --success-500: #10b981;
  --success-100: #d1fae5;
  --warning-600: #d97706;
  --warning-500: #f59e0b;
  --warning-100: #fef3c7;
  --danger-600:  #dc2626;
  --danger-500:  #ef4444;
  --danger-100:  #fee2e2;
  --info-600:    #0284c7;
  --info-500:    #0ea5e9;
  --info-100:    #e0f2fe;
  --purple-600:  #7c3aed;
  --purple-500:  #8b5cf6;
  --purple-100:  #ede9fe;

  /* Neutrals (Light Mode Default) */
  --bg-app:        #f1f5f9;
  --bg-surface:    #ffffff;
  --bg-surface-alt:#f8fafc;
  --bg-glass:      rgba(255, 255, 255, 0.85);
  --bg-glass-strong: rgba(255, 255, 255, 0.95);
  
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --text-inverse:   #ffffff;

  --border-subtle:  rgba(148, 163, 184, 0.22);
  --border-medium:  rgba(148, 163, 184, 0.38);
  --border-glass:   rgba(255, 255, 255, 0.4);

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.06), 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.14), 0 10px 15px -5px rgba(15, 23, 42, 0.08);
  --shadow-glow-blue: 0 0 25px rgba(37, 99, 235, 0.25);
  --shadow-glow-gold: 0 0 25px rgba(245, 158, 11, 0.3);

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Dimensions */
  --topbar-height: 72px;
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 80px;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-app:        #060d19;
  --bg-surface:    #0c192c;
  --bg-surface-alt:#11223b;
  --bg-glass:      rgba(12, 25, 44, 0.85);
  --bg-glass-strong: rgba(12, 25, 44, 0.96);

  --text-primary:   #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted:     #64748b;
  --text-inverse:   #0f172a;

  --border-subtle:  rgba(255, 255, 255, 0.1);
  --border-medium:  rgba(255, 255, 255, 0.18);
  --border-glass:   rgba(255, 255, 255, 0.08);

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px 0 rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 30px 0 rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 20px 40px 0 rgba(0, 0, 0, 0.65);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Background Atmosphere Glow */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(245, 158, 11, 0.03) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--casap-blue-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--casap-blue-500);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.7);
}

/* Utilities */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--casap-gold-500); }
.text-blue { color: var(--casap-blue-500); }
.text-success { color: var(--success-500); }
.text-danger { color: var(--danger-500); }
