/* ============================================================
   GLOBAL STYLESHEET - Repositori Skripsi FH UM Sumatera Barat
   Modern Professional Design System v3.0
   ============================================================ */

/* ── Google Font (already loaded in header) ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ── Override style.css conflicts ── */
/* (style.css is also loaded; these ensure our design tokens win) */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colors */
  --primary:        #dc3545;
  --primary-hover:  #c82333;
  --primary-dark:   #991b1b;
  --primary-light:  #fff5f6;
  --primary-rgb:    220, 53, 69;

  /* Semantic Colors */
  --success:        #16a34a;
  --success-light:  #f0fdf4;
  --warning:        #d97706;
  --warning-light:  #fffbeb;
  --danger:         #dc2626;
  --danger-light:   #fff1f2;
  --info:           #0284c7;
  --info-light:     #f0f9ff;

  /* Neutrals */
  --white:          #ffffff;
  --gray-50:        #f8fafc;
  --gray-100:       #f1f5f9;
  --gray-200:       #e2e8f0;
  --gray-300:       #cbd5e1;
  --gray-400:       #94a3b8;
  --gray-500:       #64748b;
  --gray-600:       #475569;
  --gray-700:       #334155;
  --gray-800:       #1e293b;
  --gray-900:       #0f172a;

  /* Typography */
  --font-sans:      'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs:   0.72rem;
  --font-size-sm:   0.82rem;
  --font-size-base: 0.9rem;
  --font-size-md:   1rem;
  --font-size-lg:   1.125rem;
  --font-size-xl:   1.35rem;
  --font-size-2xl:  1.6rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  /* Borders */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-pill: 50rem;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --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 rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg:  0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl:  0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --shadow-red: 0 4px 14px rgba(220,53,69,0.25);

  /* Transitions */
  --ease-fast:  0.15s cubic-bezier(0.4,0,0.2,1);
  --ease:       0.25s cubic-bezier(0.4,0,0.2,1);
  --ease-slow:  0.4s cubic-bezier(0.4,0,0.2,1);

  /* Navbar */
  --navbar-h:   60px;

  /* Legacy compatibility */
  --primary-color:  #dc3545;
  --secondary-color: #64748b;
  --light-color:    #f8fafc;
  --dark-color:     #1e293b;
  --font-family:    'Inter', 'Poppins', sans-serif;
  --border-radius:  10px;
  --border-radius-lg: 12px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  color: var(--gray-800);
  background-color: var(--gray-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: linear-gradient(135deg, #c0142a 0%, #dc3545 60%, #e8526d 100%) !important;
  box-shadow: 0 2px 20px rgba(var(--primary-rgb), 0.3);
  min-height: var(--navbar-h);
  padding: 0.6rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow var(--ease);
}

.navbar.scrolled { box-shadow: 0 4px 24px rgba(var(--primary-rgb), 0.4); }

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0;
  margin-right: 1rem;
  white-space: nowrap;
  transition: opacity var(--ease);
}
.navbar-brand:hover { opacity: 0.9; }
.navbar-brand img { max-height: 38px; width: auto; }
.navbar-brand-text { color: #fff; font-size: 0.95rem; }

.nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.45rem 0.8rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--ease-fast);
  position: relative;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(255,255,255,0.15); color: #fff !important; }
.nav-link.active { background: rgba(255,255,255,0.2); color: #fff !important; font-weight: 600; }
.nav-link i { font-size: 0.85em; margin-right: 0.3rem; }

/* Dropdown */
.dropdown-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.4rem 0;
  min-width: 210px;
  animation: fadeInDown 0.18s ease;
}
.dropdown-item {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.55rem 1.1rem;
  transition: all var(--ease-fast);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.dropdown-item:hover { background: var(--gray-50); color: var(--primary); transform: translateX(3px); }
.dropdown-item i { width: 16px; text-align: center; color: var(--primary); font-size: 0.85em; }
.dropdown-divider { margin: 0.3rem 0; border-color: var(--gray-100); }

.navbar-toggler {
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
}
.navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.2); }

.user-badge {
  font-size: 0.65rem;
  padding: 0.18rem 0.5rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
}

/* Mobile navbar */
@media (max-width: 991.98px) {
  .navbar-collapse { margin-top: 0.75rem; }
  .navbar-nav .dropdown-menu {
    background: rgba(255,255,255,0.07);
    box-shadow: none;
    border: none;
    border-radius: var(--radius-sm);
    margin-left: 0.75rem;
  }
  .navbar-nav .dropdown-item { color: rgba(255,255,255,0.85); }
  .navbar-nav .dropdown-item:hover { background: rgba(255,255,255,0.1); color: #fff; transform: none; }
  .navbar-nav .dropdown-item i { color: rgba(255,255,255,0.7); }
  .nav-link { padding: 0.55rem 0.8rem !important; }
  .navbar-nav .nav-item.dropdown.user-dropdown { display: none; }

  .mobile-user-info {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    margin-bottom: 0.75rem;
  }
  .mobile-user-info .user-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    margin-right: 0.75rem;
    font-size: 1.3rem; color: #fff;
  }
  .mobile-user-info .user-name { color: #fff; font-weight: 700; font-size: 0.9rem; }
  .mobile-user-actions { margin-top: 0.6rem; display: flex; gap: 0.5rem; }
  .mobile-user-actions .btn { flex: 1; font-size: 0.78rem; padding: 0.35rem 0.5rem; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.main-content {
  flex: 1;
  padding: 1.5rem 0;
}
.container, .container-fluid { position: relative; }

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-100);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.page-header h1 {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--gray-800);
  margin: 0;
  letter-spacing: -0.3px;
}
.page-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), transform var(--ease);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-100);
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray-800);
}
.card-header.bg-danger { background: linear-gradient(135deg, var(--primary), #e8526d) !important; }
.card-body { padding: 1.25rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  padding: 0.48rem 1rem;
  transition: all var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.1px;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn i { font-size: 0.85em; }

.btn-primary, .btn-danger {
  background: linear-gradient(135deg, var(--primary), #e8526d);
  color: #fff !important;
}
.btn-primary:hover, .btn-danger:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  color: #fff !important;
}
.btn-success { background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff !important; }
.btn-success:hover { background: linear-gradient(135deg, #15803d, #16a34a); color: #fff !important; }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #000 !important; }
.btn-warning:hover { background: linear-gradient(135deg, #d97706, #f59e0b); color: #000 !important; }
.btn-info { background: linear-gradient(135deg, #0284c7, #38bdf8); color: #fff !important; }
.btn-info:hover { background: linear-gradient(135deg, #0369a1, #0284c7); color: #fff !important; }
.btn-secondary { background: var(--gray-100); color: var(--gray-700) !important; border: 1px solid var(--gray-200); }
.btn-secondary:hover { background: var(--gray-200); color: var(--gray-800) !important; }

.btn-outline-danger {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary) !important;
}
.btn-outline-danger:hover { background: var(--primary); color: #fff !important; }

.btn-outline-primary {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary) !important;
}
.btn-outline-primary:hover { background: var(--primary); color: #fff !important; }

.btn-sm { padding: 0.32rem 0.7rem; font-size: 0.78rem; }
.btn-lg { padding: 0.65rem 1.4rem; font-size: 0.95rem; border-radius: var(--radius); }

/* ============================================================
   FORMS
   ============================================================ */
.form-control, .form-select {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--gray-800);
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.875rem;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
  outline: none;
}
.form-control:hover, .form-select:hover { border-color: var(--gray-300); }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.35rem; }
.form-text { font-size: 0.78rem; color: var(--gray-500); }

.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12); }

/* Input groups */
.input-group .form-control { border-radius: var(--radius-sm); }
.input-group-text {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-500);
  font-size: 0.85rem;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.32rem 0.65rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
}
.bg-danger, .badge.bg-danger { background: linear-gradient(135deg, var(--primary), #e8526d) !important; }
.bg-success, .badge.bg-success { background: linear-gradient(135deg, #16a34a, #22c55e) !important; }
.bg-warning, .badge.bg-warning { background: linear-gradient(135deg, #f59e0b, #fbbf24) !important; color: #000 !important; }
.bg-info, .badge.bg-info { background: linear-gradient(135deg, #0284c7, #38bdf8) !important; }
.bg-secondary, .badge.bg-secondary { background: var(--gray-500) !important; }
.bg-primary, .badge.bg-primary { background: linear-gradient(135deg, #2563eb, #3b82f6) !important; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  border: none;
  border-radius: var(--radius);
  padding: 0.875rem 1.1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  animation: slideInDown 0.3s ease;
  border-left: 4px solid;
}
.alert-success { background: #f0fdf4; color: #166534; border-left-color: #16a34a; }
.alert-danger   { background: #fff1f2; color: #991b1b; border-left-color: #dc2626; }
.alert-warning  { background: #fffbeb; color: #92400e; border-left-color: #f59e0b; }
.alert-info     { background: #f0f9ff; color: #0c4a6e; border-left-color: #0284c7; }
.alert-primary  { background: #eff6ff; color: #1e40af; border-left-color: #2563eb; }
.alert-secondary { background: var(--gray-50); color: var(--gray-700); border-left-color: var(--gray-300); }

.alert .btn-close { filter: none; opacity: 0.5; align-self: flex-start; margin-top: 0.1rem; }

/* ============================================================
   TABLES
   ============================================================ */
.table {
  font-size: 0.85rem;
  color: var(--gray-700);
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.table thead th {
  background: var(--gray-50);
  color: var(--gray-600);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.8rem 1rem;
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}
.table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
  color: var(--gray-700);
}
.table tbody tr:last-child td { border-bottom: none; }
.table-hover tbody tr:hover { background: var(--gray-50); }
.table-striped tbody tr:nth-of-type(odd) { background: rgba(248,250,252,0.7); }
.table tbody tr:hover td { color: var(--gray-800); }

/* DataTables override */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}
.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--primary); outline: none; }
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: var(--radius-sm) !important;
  font-size: 0.82rem !important;
  padding: 0.3rem 0.65rem !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--gray-100) !important;
  border-color: var(--gray-200) !important;
  color: var(--primary) !important;
}
.dataTables_info { font-size: 0.82rem; color: var(--gray-500); }

/* ============================================================
   NAV TABS / PILLS
   ============================================================ */
.nav-tabs { border-bottom: 2px solid var(--gray-200); }
.nav-tabs .nav-link {
  color: var(--gray-500) !important;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 0.65rem 1rem !important;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 0;
  transition: all var(--ease-fast);
}
.nav-tabs .nav-link:hover { color: var(--primary) !important; }
.nav-tabs .nav-link.active { color: var(--primary) !important; border-bottom-color: var(--primary); }
.nav-pills .nav-link {
  color: var(--gray-600) !important;
  background: transparent;
  padding: 0.45rem 1rem !important;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}
.nav-pills .nav-link.active { background: var(--primary) !important; color: #fff !important; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.modal-header {
  background: linear-gradient(135deg, var(--primary), #e8526d);
  color: #fff;
  border-bottom: none;
  padding: 1.1rem 1.5rem;
}
.modal-header .modal-title { font-weight: 700; font-size: 1rem; color: #fff; }
.modal-header .btn-close { filter: brightness(0) invert(1); opacity: 0.85; }
.modal-body { padding: 1.5rem; }
.modal-footer {
  border-top: 1px solid var(--gray-100);
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  gap: 0.5rem;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}
.spinner-overlay.active { display: flex; }
.spinner-border-lg { width: 2.5rem; height: 2.5rem; border-width: 0.25em; }
.spinner-border { color: var(--primary) !important; }

/* ============================================================
   STAT CARDS (Dashboard)
   ============================================================ */
.stat-card {
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  color: white;
  position: relative;
  overflow: hidden;
  height: 100%;
  border: none;
  transition: transform var(--ease), box-shadow var(--ease);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 120%;
  height: 120%;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.stat-card .stat-icon {
  position: absolute;
  right: 1.1rem;
  top: 1rem;
  font-size: 3rem;
  opacity: 0.2;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 800; margin: 0; }
.stat-card .stat-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.85; }

.bg-gradient-danger  { background: linear-gradient(135deg, #dc3545, #e8526d); }
.bg-gradient-success { background: linear-gradient(135deg, #16a34a, #22c55e); }
.bg-gradient-info    { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.bg-gradient-warning { background: linear-gradient(135deg, #d97706, #f59e0b); }
.bg-gradient-purple  { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.bg-gradient-teal    { background: linear-gradient(135deg, #0d9488, #2dd4bf); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  border-left: 3px solid var(--gray-200);
  position: relative;
  list-style: none;
  padding: 0 0 0 2.5rem;
  margin: 0;
}
.timeline .timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}
.timeline .timeline-item:before {
  content: "";
  position: absolute;
  left: -2.75rem;
  top: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 3px solid var(--gray-300);
  border-radius: 50%;
  transition: all var(--ease);
}
.timeline .timeline-item.active:before {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
}
.timeline .timeline-item.completed:before {
  background: var(--success);
  border-color: var(--success);
}
.timeline .timeline-item .timeline-content {
  background: #fff;
  border: 1px solid var(--gray-100);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
}
.timeline .timeline-item .timeline-date {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-800);
  color: rgba(255,255,255,0.7);
  padding: 1.25rem 0;
  margin-top: auto;
  font-size: 0.82rem;
}
.footer strong { color: #fff; }
.footer small { color: rgba(255,255,255,0.5); }
.footer .fas.fa-heart { color: #f87171; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { gap: 0.2rem; }
.page-link {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm) !important;
  color: var(--gray-600);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  transition: all var(--ease-fast);
}
.page-link:hover { background: var(--gray-100); color: var(--primary); border-color: var(--gray-300); }
.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.page-item.disabled .page-link { color: var(--gray-400); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { background: transparent; padding: 0; margin: 0 0 1rem; font-size: 0.82rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gray-400); }
.breadcrumb-item a { color: var(--gray-500); text-decoration: none; transition: color var(--ease-fast); }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--gray-800); font-weight: 600; }

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion-item {
  border: 1.5px solid var(--gray-200) !important;
  border-radius: var(--radius) !important;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.accordion-button {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-800);
  background: #fff;
  padding: 0.9rem 1.1rem;
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) { background: var(--primary-light); color: var(--primary); box-shadow: none !important; }
.accordion-button::after { background-size: 0.9rem; }
.accordion-body { padding: 1rem 1.1rem; font-size: 0.875rem; }

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown{ from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInDown{ from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse     { 0%, 100%{ transform: scale(1); } 50%{ transform: scale(1.05); } }

.fade-in    { animation: fadeIn    0.4s ease; }
.fade-in-up { animation: fadeInUp  0.4s ease; }

/* ============================================================
   UTILITY HELPERS
   ============================================================ */
.text-primary { color: var(--primary) !important; }
.text-muted   { color: var(--gray-500) !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.fs-xs  { font-size: var(--font-size-xs) !important; }
.fs-sm  { font-size: var(--font-size-sm) !important; }
.rounded-pill { border-radius: var(--radius-pill) !important; }
.rounded-lg   { border-radius: var(--radius-lg) !important; }
.shadow-sm    { box-shadow: var(--shadow-sm) !important; }
.shadow-md    { box-shadow: var(--shadow-md) !important; }
.shadow-lg    { box-shadow: var(--shadow-lg) !important; }
.border-light { border-color: var(--gray-200) !important; }
.bg-light     { background-color: var(--gray-50) !important; }
.bg-white     { background-color: #fff !important; }

/* ============================================================
   RESPONSIVE — TABLET (≤991px)
   ============================================================ */
@media (max-width: 991.98px) {
  :root { --navbar-h: 56px; }
  body { font-size: 0.875rem; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .page-header h1 { font-size: var(--font-size-lg); }
  .page-actions { width: 100%; }
  .card-body { padding: 1rem; }
  .table thead th { font-size: 0.7rem; padding: 0.65rem 0.75rem; }
  .table tbody td { padding: 0.6rem 0.75rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 767.98px) {
  .main-content { padding: 1rem 0; }
  .page-header { margin-bottom: 1rem; }
  .page-header h1 { font-size: 1.15rem; }
  .btn { font-size: 0.8rem; padding: 0.42rem 0.8rem; }
  .btn-sm { font-size: 0.72rem; padding: 0.28rem 0.55rem; }
  .card { border-radius: var(--radius-md) !important; margin-bottom: 1rem; }
  .card-header { padding: 0.75rem 1rem; font-size: 0.85rem; }
  .card-body { padding: 0.9rem; }
  .stat-card .stat-value { font-size: 1.6rem; }
  .table-responsive { border-radius: var(--radius); overflow: hidden; }
  .table thead th { white-space: nowrap; font-size: 0.68rem; padding: 0.55rem 0.65rem; }
  .table tbody td { font-size: 0.8rem; padding: 0.55rem 0.65rem; }
  .badge { font-size: 0.65rem; }
  .modal-dialog { margin: 0.5rem; }
  .modal-body { padding: 1rem; }
  .modal-footer { padding: 0.75rem 1rem; }
  .pagination { flex-wrap: wrap; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 479.98px) {
  .page-actions .btn span { display: none; }
  .page-actions .btn i { margin: 0; }
  .breadcrumb { font-size: 0.75rem; }
  .footer .row { text-align: center !important; }
  .footer .col-md-6:last-child { text-align: center !important; margin-top: 0.25rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .navbar, .page-actions, footer, .btn, .alert, .spinner-overlay { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #dee2e6; }
  .container { max-width: 100%; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.btn:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   LEGACY COMPAT (classes used in existing pages)
   ============================================================ */
/* Kept for backward compatibility with existing page code */
.modern-card       { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background: #fff; border: 1px solid var(--gray-200); }
.modern-card .modern-card-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-100); font-weight: 700; font-size: 0.9rem; color: var(--gray-800); }
.badge-modern      { padding: 0.32rem 0.75rem; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.72rem; }
.badge-gradient-info     { background: linear-gradient(135deg, #0284c7, #38bdf8); color: #fff !important; }
.badge-gradient-success  { background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff !important; }
.badge-gradient-primary  { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff !important; }
.badge-gradient-warning  { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #000 !important; }
.badge-gradient-danger   { background: linear-gradient(135deg, #dc3545, #e8526d); color: #fff !important; }
.badge-gradient-secondary{ background: linear-gradient(135deg, #64748b, #94a3b8); color: #fff !important; }
.btn-modern        { border-radius: var(--radius-sm); font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; }
.btn-gradient-warning    { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #000 !important; border: none; }
.btn-gradient-warning:hover { box-shadow: 0 4px 12px rgba(245,158,11,.35); transform: translateY(-1px); }
.alert-modern      { border-radius: var(--radius); padding: 1rem 1.1rem; border: none; border-left: 4px solid; }
.alert-modern-info     { background: #f0f9ff; color: #0369a1; border-left-color: #38bdf8; }
.alert-modern-danger   { background: #fff1f2; color: #991b1b; border-left-color: #ef4444; }
.alert-modern-warning  { background: #fffbeb; color: #92400e; border-left-color: #f59e0b; }
.alert-modern-success  { background: #f0fdf4; color: #166534; border-left-color: #22c55e; }
.alert-modern-primary  { background: #eff6ff; color: #1e40af; border-left-color: #3b82f6; }
.process-timeline  { position: relative; padding-left: 2rem; }
.process-timeline::before { content:''; position:absolute; left:0.85rem; top:0; bottom:0; width:2px; background:var(--gray-200); }
.process-step      { position: relative; margin-bottom: 1.5rem; display: flex; gap: 0.85rem; }
.step-indicator    { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2.5px solid var(--gray-300); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; color: var(--gray-400); flex-shrink: 0; }
.step-indicator.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(var(--primary-rgb),.15); }
.step-indicator.completed { background: var(--success); border-color: var(--success); color: #fff; }
.step-content      { flex: 1; background: var(--gray-50); border-radius: var(--radius-sm); padding: 0.75rem 1rem; border-left: 3px solid transparent; }
.step-indicator.active + .step-content { border-left-color: var(--primary); background: #fff; }
.step-indicator.completed + .step-content { border-left-color: var(--success); }
.step-title        { font-weight: 700; font-size: 0.875rem; color: var(--gray-800); margin: 0 0 0.2rem; }
.step-desc         { font-size: 0.8rem; color: var(--gray-500); margin: 0; line-height: 1.5; }
.step-date         { display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 600; background: var(--gray-100); color: var(--gray-500); padding: 0.15rem 0.5rem; border-radius: var(--radius-pill); margin-bottom: 0.3rem; }
.page-title-modern { font-size: 1.6rem; font-weight: 800; color: var(--gray-800); }
.breadcrumb-modern { background: transparent; padding: 0; font-size: 0.82rem; }
.status-card       { margin-bottom: 1.25rem; }
.progress-tracker  { padding: 0.5rem 0; }
.progress-header   { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.progress-title    { font-weight: 700; color: var(--gray-800); margin: 0; font-size: 0.9rem; }
.progress-percentage { font-weight: 800; color: var(--primary); font-size: 1.1rem; }
.progress-bar-container { height: 8px; background: var(--gray-200); border-radius: var(--radius-pill); overflow: hidden; margin-bottom: 1.5rem; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #e8526d); border-radius: var(--radius-pill); transition: width 1s cubic-bezier(.4,0,.2,1); }
.progress-steps    { display: flex; justify-content: space-between; position: relative; overflow-x: auto; padding-bottom: 0.5rem; }
.progress-steps::before { content:''; position:absolute; top:18px; left:0; right:0; height:2px; background:var(--gray-200); z-index:0; }
.progress-step     { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; min-width: 70px; }
.progress-step-icon { width: 38px; height: 38px; background: #fff; border: 2.5px solid var(--gray-200); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; color: var(--gray-400); margin-bottom: 0.5rem; transition: all var(--ease); }
.progress-step-icon.completed { background: var(--success); border-color: var(--success); color: #fff; }
.progress-step-icon.active    { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 5px rgba(var(--primary-rgb),.18); transform: scale(1.08); }
.progress-step-label { font-size: 0.68rem; font-weight: 600; color: var(--gray-500); text-align: center; line-height: 1.2; }
.progress-step-label.active    { color: var(--primary); font-weight: 700; }
.progress-step-label.completed { color: var(--success); }

/* ============================================================
   LOGIN PAGE — Premium Split Layout
   ============================================================ */
body.login-page {
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-wrapper {
  display: flex;
  width: 100%;
  max-width: 900px;
  min-height: 560px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

/* Left brand panel */
.login-brand {
  flex: 0 0 42%;
  background: linear-gradient(160deg, #b0182e 0%, #dc3545 50%, #e8526d 100%);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.login-brand::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
}
.login-brand::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
}
.login-brand-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  padding: 0.75rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
.login-brand h1 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  position: relative;
  z-index: 1;
}
.login-brand p {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  margin: 0;
  position: relative;
  z-index: 1;
}
.login-brand-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}
.login-brand-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.login-brand-dots span.on { background: #fff; }

/* Right form panel */
.login-form-panel {
  flex: 1;
  background: #fff;
  padding: 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-form-panel h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-800);
  margin: 0 0 0.3rem;
}
.login-form-panel .login-sub {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0 0 2rem;
}
.btn-login-submit {
  background: linear-gradient(135deg, var(--primary), #e8526d);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  width: 100%;
  cursor: pointer;
  transition: all var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}
.btn-login-submit:active { transform: translateY(0); }

.login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--gray-400);
  font-size: 0.8rem;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.password-hint {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.password-hint strong { color: var(--gray-800); }

.login-footer-text {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 1.5rem;
}

/* Backward compatible .login-form class */
.login-form {
  max-width: 420px;
  margin: 2rem auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.login-logo { text-align: center; margin-bottom: 1.5rem; }
.login-logo img { max-width: 80px; margin-bottom: 0.75rem; }
.login-logo h4 { font-weight: 800; color: var(--gray-800); margin: 0 0 0.25rem; }
.password-example {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.7;
}
.example-label { font-weight: 700; color: var(--gray-700); display: block; margin-bottom: 0.35rem; }
.divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0; color: var(--gray-400); font-size: 0.8rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.footer-text { text-align: center; font-size: 0.75rem; color: var(--gray-400); margin-top: 1.25rem; }
.btn-home { background: var(--gray-100); color: var(--gray-600) !important; border: 1px solid var(--gray-200); }
.btn-home:hover { background: var(--gray-200); transform: translateY(-1px); }
.btn-login { background: linear-gradient(135deg, var(--primary), #e8526d); color: #fff; font-weight: 700; border: none; }
.btn-login:hover { box-shadow: var(--shadow-red); transform: translateY(-1px); color: #fff; }

/* Mobile login */
@media (max-width: 768px) {
  .login-wrapper { flex-direction: column; min-height: auto; max-width: 460px; }
  .login-brand { flex: none; padding: 2rem 1.5rem; }
  .login-brand-logo { width: 70px; height: 70px; }
  .login-brand h1 { font-size: 1.1rem; }
  .login-form-panel { padding: 1.75rem 1.5rem; }
  .login-form { margin: 1rem auto; padding: 1.5rem; }
}
