/* ============================================================
   SIARA DESIGN SYSTEM v2.0
   Sistem Informasi Akademik RTQ AN NASHR
   ============================================================
   Design Tokens • Components • Utilities • Animations
   Inspired by: Stripe, Linear, Notion, Duolingo
   ============================================================ */

/* ─────────────────────────────────────────────
   1. DESIGN TOKENS (CSS Custom Properties)
   ───────────────────────────────────────────── */
:root {
  /* ── Brand Colors ── */
  --primary: #FF5FA2;
  --primary-hover: #E8478A;
  --primary-light: rgba(255, 95, 162, 0.08);
  --primary-medium: rgba(255, 95, 162, 0.15);

  --secondary: #13294B;
  --secondary-hover: #0E1F3A;
  --secondary-light: rgba(19, 41, 75, 0.08);

  --accent: #4F8CFF;
  --accent-hover: #3A78EB;
  --accent-light: rgba(79, 140, 255, 0.08);

  /* ── Semantic Colors ── */
  --success: #22C55E;
  --success-light: rgba(34, 197, 94, 0.08);
  --warning: #F59E0B;
  --warning-light: rgba(245, 158, 11, 0.08);
  --danger: #EF4444;
  --danger-light: rgba(239, 68, 68, 0.08);
  --info: #3B82F6;
  --info-light: rgba(59, 130, 246, 0.08);

  /* ── Neutral Colors ── */
  --bg-white: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-muted: #F1F5F9;
  --bg-subtle: #E2E8F0;

  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --text-tertiary: #94A3B8;
  --text-disabled: #CBD5E1;
  --text-inverse: #FFFFFF;

  --border-color: #E2E8F0;
  --border-light: #F1F5F9;
  --border-focus: var(--primary);
  --divider: #F1F5F9;

  /* ── Shadows ── */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-glow-pink: 0 0 20px rgba(255, 95, 162, 0.2);
  --shadow-glow-blue: 0 0 20px rgba(79, 140, 255, 0.2);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-dropdown: 0 12px 36px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0,0,0,0.04);

  /* ── Border Radius ── */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 24px;
  --radius-full: 9999px;

  /* ── Typography ── */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.75rem;    /* 28px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* ── Spacing ── */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* ── Transitions ── */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 350ms;
  --duration-slower: 500ms;

  /* ── Z-Index Scale ── */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
  --z-toast: 700;

  /* ── Layout ── */
  --sidebar-width: 280px;
  --sidebar-collapsed: 72px;
  --topbar-height: 64px;
  --max-content-width: 1400px;
}

/* ─────────────────────────────────────────────
   2. CSS RESET & FOUNDATION
   ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--bg-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--primary-medium);
  color: var(--secondary);
}

/* Focus Ring */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ─────────────────────────────────────────────
   3. BUTTONS
   ───────────────────────────────────────────── */
.btn-siara {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-default);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

.btn-siara:active {
  transform: scale(0.97);
}

/* Primary */
.btn-primary-siara {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm), 0 1px 2px rgba(255, 95, 162, 0.2);
}

.btn-primary-siara:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: var(--shadow-md), 0 4px 12px rgba(255, 95, 162, 0.3);
  transform: translateY(-1px);
  color: var(--text-inverse);
}

/* Secondary */
.btn-secondary-siara {
  background: var(--secondary);
  color: var(--text-inverse);
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary-siara:hover {
  background: var(--secondary-hover);
  border-color: var(--secondary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: var(--text-inverse);
}

/* Ghost */
.btn-ghost-siara {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost-siara:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

/* Outline */
.btn-outline-siara {
  background: var(--bg-white);
  color: var(--text-primary);
  border-color: var(--border-color);
  box-shadow: var(--shadow-xs);
}

.btn-outline-siara:hover {
  background: var(--bg-soft);
  border-color: var(--text-tertiary);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}

/* Danger */
.btn-danger-siara {
  background: var(--danger);
  color: var(--text-inverse);
  border-color: var(--danger);
}

.btn-danger-siara:hover {
  background: #DC2626;
  transform: translateY(-1px);
  color: var(--text-inverse);
}

/* Size Variants */
.btn-sm-siara {
  padding: 6px 14px;
  font-size: var(--text-xs);
  min-height: 32px;
  border-radius: var(--radius-md);
}

.btn-lg-siara {
  padding: 14px 28px;
  font-size: var(--text-base);
  min-height: 52px;
  border-radius: var(--radius-xl);
}

.btn-xl-siara {
  padding: 18px 36px;
  font-size: var(--text-lg);
  min-height: 60px;
  border-radius: var(--radius-xl);
}

/* Icon Button */
.btn-icon-siara {
  padding: 8px;
  min-height: 36px;
  width: 36px;
  border-radius: var(--radius-md);
}

/* Button with glow (CTA) */
.btn-glow {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

/* ─────────────────────────────────────────────
   4. CARDS
   ───────────────────────────────────────────── */
.card-siara {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--ease-default);
  overflow: hidden;
}

.card-siara:hover {
  box-shadow: var(--shadow-card-hover);
}

.card-siara-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card-siara .card-header-siara {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-light);
  background: transparent;
}

.card-siara .card-body-siara {
  padding: var(--space-6);
}

.card-siara .card-footer-siara {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-light);
  background: var(--bg-soft);
}

/* Glass Card */
.card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* KPI Stat Card */
.card-kpi {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--duration-normal) var(--ease-default);
  position: relative;
  overflow: hidden;
}

.card-kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-medium);
}

.card-kpi .kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.card-kpi .kpi-icon.pink { background: var(--primary-light); color: var(--primary); }
.card-kpi .kpi-icon.blue { background: var(--accent-light); color: var(--accent); }
.card-kpi .kpi-icon.green { background: var(--success-light); color: var(--success); }
.card-kpi .kpi-icon.orange { background: var(--warning-light); color: var(--warning); }
.card-kpi .kpi-icon.navy { background: var(--secondary-light); color: var(--secondary); }

.card-kpi .kpi-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-top: var(--space-3);
}

.card-kpi .kpi-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-1);
  font-weight: 500;
}

.card-kpi .kpi-change {
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.card-kpi .kpi-change.positive { color: var(--success); background: var(--success-light); }
.card-kpi .kpi-change.negative { color: var(--danger); background: var(--danger-light); }

/* Feature Card (Landing) */
.card-feature {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--duration-slow) var(--ease-spring);
  cursor: default;
  position: relative;
}

.card-feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-medium);
}

.card-feature .feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
}

.card-feature h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.card-feature p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ─────────────────────────────────────────────
   5. BADGES
   ───────────────────────────────────────────── */
.badge-siara {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-pink { background: var(--primary-light); color: var(--primary); }
.badge-blue { background: var(--accent-light); color: var(--accent); }
.badge-navy { background: var(--secondary-light); color: var(--secondary); }
.badge-green { background: var(--success-light); color: var(--success); }
.badge-orange { background: var(--warning-light); color: var(--warning); }
.badge-red { background: var(--danger-light); color: var(--danger); }
.badge-gray { background: var(--bg-muted); color: var(--text-secondary); }

.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   6. FORM INPUTS
   ───────────────────────────────────────────── */
.input-siara {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--bg-white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) var(--ease-default);
  min-height: 44px;
  outline: none;
}

.input-siara::placeholder {
  color: var(--text-tertiary);
}

.input-siara:hover {
  border-color: var(--text-tertiary);
}

.input-siara:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.input-siara.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-light);
}

.input-siara.is-valid {
  border-color: var(--success);
  box-shadow: 0 0 0 3px var(--success-light);
}

.label-siara {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.helper-text {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

.error-text {
  font-size: var(--text-xs);
  color: var(--danger);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Select */
.select-siara {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* Textarea */
.textarea-siara {
  min-height: 100px;
  resize: vertical;
}

/* ─────────────────────────────────────────────
   7. DATA TABLE
   ───────────────────────────────────────────── */
.table-siara {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
}

.table-siara thead th {
  background: var(--bg-soft);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.table-siara thead th:first-child {
  border-radius: var(--radius-lg) 0 0 0;
}

.table-siara thead th:last-child {
  border-radius: 0 var(--radius-lg) 0 0;
}

.table-siara tbody td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  color: var(--text-primary);
  transition: background var(--duration-fast);
}

.table-siara tbody tr:hover td {
  background: var(--primary-light);
}

.table-siara tbody tr:last-child td {
  border-bottom: none;
}

/* Sort Link */
.table-siara .sort-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.table-siara .sort-link:hover {
  color: var(--text-primary);
}

/* Table Container */
.table-container-siara {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  background: var(--bg-white);
}

/* ─────────────────────────────────────────────
   8. SIDEBAR & NAVIGATION
   ───────────────────────────────────────────── */
.sidebar-siara {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background: var(--bg-white);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: width var(--duration-slow) var(--ease-default);
  overflow: hidden;
}

.sidebar-siara.collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar-brand-siara {
  padding: var(--space-5) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
  min-height: 72px;
}

.sidebar-brand-siara img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.sidebar-brand-siara .brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--secondary);
  white-space: nowrap;
  transition: opacity var(--duration-normal);
}

.sidebar-siara.collapsed .brand-name,
.sidebar-siara.collapsed .nav-label,
.sidebar-siara.collapsed .section-title-siara,
.sidebar-siara.collapsed .nav-chevron {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sidebar-nav-siara {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-3);
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.sidebar-nav-siara::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav-siara::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-nav-siara::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}

.section-title-siara {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  padding: var(--space-4) var(--space-3) var(--space-2);
  white-space: nowrap;
}

.nav-item-siara {
  list-style: none;
  margin-bottom: 2px;
}

.nav-link-siara {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-default);
  white-space: nowrap;
  position: relative;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-link-siara:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.nav-link-siara.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.nav-link-siara.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--primary);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.nav-link-siara .nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-link-siara .nav-label {
  flex: 1;
  transition: opacity var(--duration-normal);
}

.nav-link-siara .nav-chevron {
  font-size: 0.7rem;
  transition: transform var(--duration-normal), opacity var(--duration-normal);
}

.nav-link-siara .nav-chevron.rotated {
  transform: rotate(180deg);
}

/* Submenu */
.submenu-siara {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--duration-slow) var(--ease-default);
  padding-left: var(--space-8);
}

.submenu-siara.open {
  max-height: 200px;
}

.submenu-siara .nav-link-siara {
  font-size: var(--text-xs);
  padding: 7px var(--space-3);
  color: var(--text-tertiary);
}

.submenu-siara .nav-link-siara:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.submenu-siara .nav-link-siara.active {
  color: var(--primary);
}

.submenu-siara .nav-link-siara.active::before {
  display: none;
}

/* Collapsed State */
.sidebar-siara.collapsed .nav-link-siara {
  justify-content: center;
  padding: 12px 0;
}

.sidebar-siara.collapsed .nav-link-siara .nav-icon {
  font-size: 1.3rem;
}

.sidebar-siara.collapsed .submenu-siara {
  display: none;
}

/* Collapsed Sidebar Tooltips */
.sidebar-siara.collapsed .nav-link-siara[data-tooltip] {
  position: relative;
}

.sidebar-siara.collapsed .nav-link-siara[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  padding: 6px 12px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-inverse);
  background: var(--secondary);
  border-radius: var(--radius-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-fast);
  z-index: var(--z-tooltip);
  box-shadow: var(--shadow-md);
}

.sidebar-siara.collapsed .nav-link-siara[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Topbar Search */
.topbar-search {
  flex: 0 0 auto;
}

/* Sidebar Footer */
.sidebar-footer-siara {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   9. TOP NAVBAR (Dashboard)
   ───────────────────────────────────────────── */
.topbar-siara {
  height: var(--topbar-height);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.topbar-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

/* Toggle Button */
.sidebar-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.sidebar-toggle:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

/* Notification Bell */
.notification-bell {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.notification-bell:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.notification-bell .bell-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--bg-white);
}

/* User Menu */
.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 4px 8px 4px 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.user-menu-trigger:hover {
  background: var(--bg-soft);
  border-color: var(--text-tertiary);
}

.user-menu-trigger .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
}

.user-menu-trigger .user-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.user-menu-trigger .user-role {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ─────────────────────────────────────────────
   10. MAIN CONTENT WRAPPER
   ───────────────────────────────────────────── */
.main-wrapper-siara {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin-left var(--duration-slow) var(--ease-default);
  background: var(--bg-soft);
}

.main-wrapper-siara.collapsed {
  margin-left: var(--sidebar-collapsed);
}

.content-area-siara {
  padding: var(--space-8);
  max-width: var(--max-content-width);
}

/* ─────────────────────────────────────────────
   11. MODAL & DRAWER
   ───────────────────────────────────────────── */
.modal-backdrop-siara {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-backdrop);
  opacity: 0;
  transition: opacity var(--duration-normal);
  display: none;
}

.modal-backdrop-siara.show {
  display: block;
  opacity: 1;
}

.modal-siara {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: var(--z-modal);
  background: var(--bg-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-default);
}

.modal-siara.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header-siara {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body-siara {
  padding: var(--space-6);
}

.modal-footer-siara {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* Drawer */
.drawer-siara {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  z-index: var(--z-modal);
  background: var(--bg-white);
  box-shadow: var(--shadow-xl);
  transition: right var(--duration-slow) var(--ease-default);
  overflow-y: auto;
}

.drawer-siara.show {
  right: 0;
}

/* ─────────────────────────────────────────────
   12. TABS
   ───────────────────────────────────────────── */
.tabs-siara {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-siara::-webkit-scrollbar { display: none; }

.tab-item-siara {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-body);
}

.tab-item-siara:hover {
  color: var(--text-primary);
}

.tab-item-siara.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ─────────────────────────────────────────────
   13. DROPDOWN
   ───────────────────────────────────────────── */
.dropdown-siara {
  position: relative;
  display: inline-block;
}

.dropdown-menu-siara {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dropdown);
  z-index: var(--z-dropdown);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all var(--duration-fast) var(--ease-default);
  padding: var(--space-1);
  overflow: hidden;
}

.dropdown-menu-siara.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item-siara {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 12px;
  font-size: var(--text-sm);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--duration-fast);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}

.dropdown-item-siara:hover {
  background: var(--bg-muted);
}

.dropdown-item-siara.danger {
  color: var(--danger);
}

.dropdown-item-siara.danger:hover {
  background: var(--danger-light);
}

.dropdown-divider-siara {
  height: 1px;
  background: var(--border-light);
  margin: var(--space-1) 0;
}

/* ─────────────────────────────────────────────
   14. TOOLTIP
   ───────────────────────────────────────────── */
.tooltip-siara {
  position: relative;
}

.tooltip-siara::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-inverse);
  background: var(--secondary);
  border-radius: var(--radius-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-fast);
  z-index: var(--z-tooltip);
}

.tooltip-siara:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─────────────────────────────────────────────
   15. ALERT & TOAST
   ───────────────────────────────────────────── */
.alert-siara {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  border: 1px solid transparent;
}

.alert-siara.alert-success { background: var(--success-light); color: #166534; border-color: rgba(34,197,94,0.2); }
.alert-siara.alert-danger  { background: var(--danger-light);  color: #991B1B; border-color: rgba(239,68,68,0.2); }
.alert-siara.alert-warning { background: var(--warning-light); color: #92400E; border-color: rgba(245,158,11,0.2); }
.alert-siara.alert-info    { background: var(--info-light);    color: #1E40AF; border-color: rgba(59,130,246,0.2); }

.alert-siara .alert-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }

/* Toast */
.toast-container-siara {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toast-siara {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 300px;
  max-width: 420px;
  animation: slideInRight var(--duration-slow) var(--ease-spring);
  font-size: var(--text-sm);
}

/* ─────────────────────────────────────────────
   16. AVATAR
   ───────────────────────────────────────────── */
.avatar-siara {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
}

.avatar-xs { width: 24px; height: 24px; font-size: 10px; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-md { width: 40px; height: 40px; font-size: 14px; }
.avatar-lg { width: 48px; height: 48px; font-size: 18px; }
.avatar-xl { width: 64px; height: 64px; font-size: 24px; }

.avatar-square { border-radius: var(--radius-lg); }

/* ─────────────────────────────────────────────
   17. ACCORDION
   ───────────────────────────────────────────── */
.accordion-siara {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.accordion-item-siara {
  border-bottom: 1px solid var(--border-light);
}

.accordion-item-siara:last-child {
  border-bottom: none;
}

.accordion-trigger-siara {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--duration-fast);
}

.accordion-trigger-siara:hover {
  background: var(--bg-soft);
}

.accordion-content-siara {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-default);
}

.accordion-content-siara.open {
  max-height: 500px;
}

.accordion-content-inner {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* ─────────────────────────────────────────────
   18. PAGINATION
   ───────────────────────────────────────────── */
.pagination-siara {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.page-item-siara .page-link-siara {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--duration-fast);
}

.page-item-siara .page-link-siara:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

.page-item-siara.active .page-link-siara {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.page-item-siara.disabled .page-link-siara {
  color: var(--text-disabled);
  pointer-events: none;
  opacity: 0.5;
}

/* ─────────────────────────────────────────────
   19. BREADCRUMB
   ───────────────────────────────────────────── */
.breadcrumb-siara {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  list-style: none;
}

.breadcrumb-siara li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-tertiary);
}

.breadcrumb-siara li a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb-siara li a:hover {
  color: var(--primary);
}

.breadcrumb-siara li:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

.breadcrumb-siara li + li::before {
  content: '/';
  color: var(--text-disabled);
  margin-right: var(--space-1);
}

/* ─────────────────────────────────────────────
   20. SKELETON LOADING
   ───────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-muted) 25%, var(--bg-subtle) 50%, var(--bg-muted) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  width: 100%;
}

.skeleton-text-sm {
  height: 12px;
  width: 60%;
}

.skeleton-heading {
  height: 24px;
  width: 40%;
  margin-bottom: 12px;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-card {
  height: 120px;
  border-radius: var(--radius-xl);
}

.skeleton-button {
  height: 40px;
  width: 120px;
  border-radius: var(--radius-lg);
}

/* ─────────────────────────────────────────────
   21. EMPTY STATE
   ───────────────────────────────────────────── */
.empty-state-siara {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  text-align: center;
}

.empty-state-siara .empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-5);
}

.empty-state-siara h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.empty-state-siara p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 360px;
  margin-bottom: var(--space-6);
}

/* ─────────────────────────────────────────────
   22. ANIMATIONS & KEYFRAMES
   ───────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 95, 162, 0.4); }
  50% { box-shadow: 0 0 20px 4px rgba(255, 95, 162, 0.15); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Animation Utility Classes */
.animate-fade-in { animation: fadeIn var(--duration-slow) var(--ease-default) both; }
.animate-fade-in-up { animation: fadeInUp var(--duration-slow) var(--ease-default) both; }
.animate-slide-up { animation: slideUp var(--duration-normal) var(--ease-default) both; }
.animate-scale-in { animation: scaleIn var(--duration-normal) var(--ease-default) both; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 8s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* Stagger Animation Delays */
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }
.delay-5 { animation-delay: 500ms; }
.delay-6 { animation-delay: 600ms; }

/* ─────────────────────────────────────────────
   23. UTILITY CLASSES
   ───────────────────────────────────────────── */

/* ── Flexbox ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* ── Grid ── */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Text ── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leading-tight { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }
.tracking-wide { letter-spacing: 0.5px; }

/* ── Colors ── */
.text-primary-c { color: var(--text-primary); }
.text-secondary-c { color: var(--text-secondary); }
.text-tertiary-c { color: var(--text-tertiary); }
.text-pink { color: var(--primary); }
.text-navy { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-white { color: var(--text-inverse); }

/* ── Backgrounds ── */
.bg-white { background: var(--bg-white); }
.bg-soft { background: var(--bg-soft); }
.bg-muted { background: var(--bg-muted); }

/* ── Spacing (Margin & Padding) ── */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

/* ── Borders ── */
.border { border: 1px solid var(--border-color); }
.border-t { border-top: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
.border-none { border: none; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ── Display ── */
.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }

/* ── Shadows ── */
.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-none { box-shadow: none; }

/* ── Transitions ── */
.transition-all { transition: all var(--duration-normal) var(--ease-default); }
.transition-colors { transition: color var(--duration-fast), background var(--duration-fast), border-color var(--duration-fast); }

/* ── Divider ── */
.divider-siara {
  height: 1px;
  background: var(--border-light);
  width: 100%;
  margin: var(--space-6) 0;
}

/* ─────────────────────────────────────────────
   24. RESPONSIVE BREAKPOINTS
   ───────────────────────────────────────────── */

/* ── Tablet (768px+) ── */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md\:flex-row { flex-direction: row; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:text-left { text-align: left; }

  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
}

/* ── Laptop (1024px+) ── */
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:flex-row { flex-direction: row; }
  .lg\:hidden { display: none; }
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
}

/* ── Desktop (1440px+) ── */
@media (min-width: 1440px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Mobile Only ── */
@media (max-width: 767px) {
  .mobile-only { display: block; }
  .desktop-only { display: none; }
  
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
  h4 { font-size: var(--text-lg); }

  .content-area-siara {
    padding: var(--space-4);
  }

  /* Mobile sidebar */
  .sidebar-siara {
    transform: translateX(-100%);
    width: var(--sidebar-width);
    z-index: var(--z-modal);
    box-shadow: none;
  }

  .sidebar-siara.mobile-open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }

  .sidebar-siara.collapsed {
    width: var(--sidebar-width);
    transform: translateX(-100%);
  }

  .sidebar-siara.collapsed.mobile-open {
    transform: translateX(0);
  }

  .sidebar-siara.collapsed .brand-name,
  .sidebar-siara.collapsed .nav-label,
  .sidebar-siara.collapsed .section-title-siara,
  .sidebar-siara.collapsed .nav-chevron {
    opacity: 1;
    width: auto;
  }

  .sidebar-siara.collapsed .nav-link-siara {
    justify-content: flex-start;
    padding: 10px var(--space-3);
  }

  .sidebar-siara.collapsed .nav-link-siara .nav-icon {
    font-size: 1.1rem;
  }

  .main-wrapper-siara,
  .main-wrapper-siara.collapsed {
    margin-left: 0;
  }

  /* Mobile Backdrop */
  .sidebar-backdrop-siara {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: calc(var(--z-modal) - 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal);
  }

  .sidebar-backdrop-siara.show {
    opacity: 1;
    pointer-events: auto;
  }

  /* Mobile table to cards */
  .table-mobile-cards thead { display: none; }
  .table-mobile-cards tbody tr {
    display: block;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    box-shadow: var(--shadow-xs);
  }
  .table-mobile-cards tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-light);
  }
  .table-mobile-cards tbody td:last-child { border-bottom: none; }
  .table-mobile-cards tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    margin-right: var(--space-4);
  }
}

@media (min-width: 768px) {
  .mobile-only { display: none; }
  .desktop-only { display: block; }
}

/* ─────────────────────────────────────────────
   25. SCROLLBAR STYLING (Global)
   ───────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ─────────────────────────────────────────────
   26. PRINT STYLES
   ───────────────────────────────────────────── */
@media print {
  .sidebar-siara,
  .topbar-siara,
  .sidebar-backdrop-siara,
  .toast-container-siara { display: none !important; }
  
  .main-wrapper-siara {
    margin-left: 0 !important;
  }
}
