/* ==========================================================================
   STIT MAFA - CSS VARIABLES & DESIGN TOKENS (MODULAR BASE)
   ========================================================================== */
/* ==========================================================================
   STIT MAFA - SEKOLAH TINGGI ILMU TARBIYAH K.H. MASBUHIN FAQIH
   Modern Campus Design System & Stylesheet
   ========================================================================== */

/* --- ROOT VARIABLES & DESIGN TOKENS --- */
:root {
  /* Brand Primary Colors (Royal Emerald - Islamic Campus Heritage) */
  --primary-900: #064e3b;
  --primary-800: #045f46;
  --primary-700: #047857;
  --primary-600: #059669;
  --primary-500: #10b981;
  --primary-400: #34d399;
  --primary-300: #6ee7b7;
  --primary-200: #a7f3d0;
  --primary-100: #d1fae5;
  --primary-50:  #ecfdf5;

  /* Accent Gold Colors (Radiant Islamic Gold & Rehal Stars) */
  --accent-gold-dark: #b45309;
  --accent-gold: #d97706;
  --accent-gold-light: #f59e0b;
  --accent-gold-soft: #fef3c7;
  --accent-gold-glow: rgba(245, 158, 11, 0.3);

  /* Secondary Accents */
  --secondary-blue: #0284c7;
  --secondary-indigo: #4338ca;

  /* Neutral & Dark Palette */
  --dark-navy: #0f172a;
  --dark-slate: #1e293b;
  --neutral-gray-700: #334155;
  --neutral-gray-600: #475569;
  --neutral-gray-500: #64748b;
  --neutral-gray-400: #94a3b8;
  --neutral-gray-200: #e2e8f0;
  --neutral-gray-100: #f1f5f9;
  --neutral-gray-50:  #f8fafc;
  --white: #ffffff;

  /* Dynamic Theme Variables (Light Default) */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-border: rgba(226, 232, 240, 0.8);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(4, 120, 87, 0.2);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;

  /* Dimensions & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --container-max: 1240px;
  --header-height: 84px;
  --topbar-height: 40px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- DARK MODE OVERRIDES --- */
[data-theme="dark"] {
  --bg-page: #0b1120;
  --bg-card: #131d31;
  --bg-card-hover: #18243c;
  --bg-subtle: #162035;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
  --border-subtle: #1e293b;
  --header-bg: rgba(11, 17, 32, 0.92);
  --header-border: rgba(30, 41, 59, 0.8);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.2);
}

/* --- CSS RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

