/* ============================================
   MODERN DASHBOARD - GLOBAL DESIGN SYSTEM
   ============================================ */

/* Root Colors & Typography */
:root {
  --sidebar-bg: #0B3B91;
  --sidebar-hover: #1E5BC6;
  --sidebar-active: #4F7FBC;
  --sidebar-text: #FFFFFF;
  --sidebar-muted: rgba(255, 255, 255, 0.82);
  --sidebar-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);

  --primary: #0D6EFD;
  --primary-light: #4F7FBC;
  --primary-dark: #084ECC;
  --success: #16A34A;
  --warning: #F59E0B;
  --danger: #DC2626;
  --info: #2563EB;
  --accent: #0D6EFD;

  --bg-primary: #F5F8FD;
  --bg-secondary: #EFF3FB;
  --bg-tertiary: #E5E7EB;

  --surface: #FFFFFF;
  --surface-alt: #FFFFFF;

  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-light: #94A3B8;

  --border-light: #E5E7EB;
  --border-default: #D1D5DB;
  --border-dark: #9CA3AF;

  --shadow-xs: 0 4px 12px rgba(0,0,0,0.04);
  --shadow-sm: 0 6px 20px rgba(0,0,0,0.08);
  --shadow-md: 0 10px 26px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 36px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.14);

  --transition: all 0.25s ease;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f8fbff 0%, var(--bg-primary) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-section {
  margin-bottom: 22px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2.125rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.0625rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img { max-width: 100%; display: block; }

/* ============================================
   AUTHENTICATION PAGE
   ============================================ */

.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f0f4f8 50%, #f8fafc 100%);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 40px 32px;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.brand-mark {
  width: 108px;
  height: 108px;
  margin: 0 auto 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--primary);
  background: var(--bg-secondary);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-header h1 {
  margin: 16px 0 8px;
  color: var(--text-primary);
  font-size: 2rem;
  letter-spacing: 1px;
  font-weight: 800;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
}

.auth-header small {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Form Elements */
form label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.94rem;
  transition: var(--transition);
  background: var(--surface-alt);
  color: var(--text-primary);
}

input:hover, select:hover, textarea:hover {
  border-color: var(--primary-light);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input::placeholder {
  color: var(--text-light);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Buttons */
button, .btn {
  padding: 11px 16px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  outline: none;
}

button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary, button[type="submit"] {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  /* width: 100%; */
  /* margin-bottom: 10px; */
}

.btn-primary:hover, button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  width: auto;
  margin-bottom: 0;
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
}

.btn-warning {
  background: #fbbf24;
  color: #1f2937;
  width: auto;
  margin-bottom: 0;
}

.btn-warning:hover {
  background: #f59e0b;
  color: #111827;
}

.btn-danger {
  background: var(--danger);
  color: white;
  width: auto;
  margin-bottom: 0;
}

.btn-danger:hover {
  background: #dc2626;
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: var(--success);
  color: white;
  width: auto;
  margin-bottom: 0;
}

.btn-success:hover {
  background: #059669;
  box-shadow: var(--shadow-md);
}

.btn.small {
  padding: 8px 12px;
  font-size: 0.85rem;
  width: auto;
  margin-bottom: 0;
}

.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--bg-secondary);
  margin-bottom: 0;
}

.btn-icon:hover {
  background: var(--bg-tertiary);
}

/* Alerts & Messages */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.alert.success {
  background: #ecfdf5;
  border-color: var(--success);
  color: #065f46;
}

.alert.error {
  background: #fef2f2;
  border-color: var(--danger);
  color: #7f1d1d;
}

.alert.warning {
  background: #fffbeb;
  border-color: var(--warning);
  color: #78350f;
}

.alert.info {
  background: #f0f9ff;
  border-color: var(--info);
  color: #164e63;
}

.alert.blink {
  animation: blink 1.4s ease-in-out 3;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge.info,
.badge.pending {
  background: rgba(6, 182, 212, 0.12);
  color: #0f766e;
}

.badge.warning {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

.badge.danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.badge.lunas, .badge.success {
  background: #d1fae5;
  color: #065f46;
}

.badge.cicilan, .badge.warning {
  background: #fef3c7;
  color: #78350f;
}

.badge.belum-lunas, .badge.error, .badge.danger {
  background: #fee2e2;
  color: #7f1d1d;
}

.badge.beasiswa, .badge.info {
  background: #cffafe;
  color: #164e63;
}

.badge.status-dibuka {
  background: #d1fae5;
  color: #065f46;
}

.badge.status-akan-dibuka,
.badge.status-akandibuka {
  background: #fef3c7;
  color: #92400f;
}

.badge.status-ditutup {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 4px;
}

/* ============================================
   DASHBOARD UI ENHANCEMENTS
   ============================================ */

.dashboard-hero {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  gap: 20px;
  margin-bottom: 24px;
}

.welcome-banner,
.notification-card,
.quick-action-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.welcome-banner {
  padding: 24px 24px 22px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.10) 0%, rgba(255, 255, 255, 1) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.welcome-banner__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.welcome-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.welcome-banner h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.welcome-banner p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 640px;
}

.welcome-banner__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.welcome-banner__chips span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
}

.notification-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.10) 0%, rgba(255, 255, 255, 1) 100%);
}

.notification-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.notification-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-primary);
}

.notification-card__title i {
  color: var(--success);
  font-size: 1.1rem;
}

.notification-card__badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--success);
  font-size: 0.76rem;
  font-weight: 700;
}

.notification-card__body {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.notification-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stats-grid .stat-card {
  min-height: 140px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.stats-grid .stat-card h3 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.stats-grid .stat-card p {
  font-size: 1.14rem;
  line-height: 1.3;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.quick-action-card {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.quick-action-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.quick-action-card .stat-card-content h3 {
  margin-bottom: 4px;
}

.quick-action-card .stat-card-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.notification-menu {
  position: relative;
}

.notification-toggle {
  position: relative;
  min-width: auto;
  background: var(--surface);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(360px, 100vw);
  max-height: 420px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  z-index: 20;
  display: none;
}

.notification-dropdown.open {
  display: block;
}

.notification-dropdown__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

.notification-dropdown__header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.notification-dropdown__list {
  display: grid;
  gap: 10px;
}

.notification-dropdown__item {
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.notification-dropdown__item.unread {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

.notification-dropdown__item .notification-title {
  font-weight: 700;
  color: var(--text-primary);
}

.notification-dropdown__item .notification-message {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.notification-dropdown__footer {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.notification-dropdown__empty {
  text-align: center;
  color: var(--text-muted);
  padding: 18px 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-primary);
}

.status-chip.lunas {
  background: rgba(16, 185, 129, 0.16);
  color: var(--success);
}

.status-chip.cicilan {
  background: rgba(245, 158, 11, 0.14);
  color: var(--warning);
}

.status-chip.belum {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head h2 {
  margin-bottom: 6px;
}

.panel-head p {
  margin: 0;
}

.table-wrap {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.modern-table tbody tr td {
  white-space: nowrap;
}

/* Responsive dashboard */
@media (max-width: 1024px) {
  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .welcome-banner {
    padding: 18px;
    flex-direction: column;
  }

  .notification-card {
    padding: 18px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   APP LAYOUT
   ============================================ */

.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #0F172A 0%, #111C3A 100%);
  color: white;
  padding: 24px 16px;
  overflow-y: auto;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.sidebar .brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.sidebar .brand-block img {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.sidebar .brand-block h2 {
  color: white;
  font-size: 1rem;
  line-height: 1.3;
  margin: 0;
}

.sidebar .brand-block small {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  margin-top: 4px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar nav a {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.82);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  position: relative;
}

.sidebar nav a i {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
}

.sidebar nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 60%;
  background: white;
  border-radius: 999px;
  transition: var(--transition);
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.08);
  transform: translateX(4px);
}

.sidebar nav a.active {
  background: rgba(255, 255, 255, 0.24);
  font-size: 1rem;
  font-weight: 800;
}

.sidebar nav a.active::before {
  width: 3px;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg-primary) 100%);
}

/* Header/Topbar */
.topbar {
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
}

.topbar h1 {
  font-size: clamp(1.35rem, 2vw, 2.125rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.topbar p {
  font-size: 0.95rem;
  margin: 4px 0 0;
  font-weight: 500;
}

.mobile-toggle {
  display: none;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  font-size: 1.5rem;
  padding: 8px 12px;
  width: auto;
  margin: 0;
  margin-bottom: 0 !important;
}

/* Main Container */
main {
  padding: 28px;
  flex: 1;
  overflow-y: auto;
}

.topbar-actions .btn,
.topbar-actions button,
.page-toolbar .btn,
.page-toolbar button {
  margin-bottom: 0;
}

main > section {
  margin-bottom: 28px;
}

/* ============================================
   MODERN ITSBM THEME OVERRIDES
   ============================================ */

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  background: var(--bg-primary);
}

.sidebar {
  width: 250px;
  min-width: 250px;
  padding: 28px 20px;
  background: #0B3B91;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-right: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand,
.sidebar-logo,
.sidebar .brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin-bottom: 26px;
}

.sidebar-brand img,
.logo-icon,
.sidebar-logo .logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.12);
}

.sidebar-brand-text h2,
.sidebar-logo .logo-text h5 {
  font-size: 1rem;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
}

.sidebar-brand-text small,
.sidebar-logo .logo-text p {
  color: rgba(255,255,255,0.78);
  font-size: 0.85rem;
  display: block;
  line-height: 1.4;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 18px 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav a,
.sidebar-logout,
.nav-link,
.nav-link.active {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  border-radius: 14px;
  transition: all 0.25s ease;
  position: relative;
}

.sidebar-nav a:hover,
.sidebar-logout:hover,
.nav-link:hover {
  background: rgba(255,255,255,0.12);
  color: #FFFFFF;
  transform: translateX(4px);
}

.sidebar-icon,
.nav-link i {
  width: 22px;
  min-width: 22px;
  font-size: 1rem;
}

.sidebar-nav a.active,
.nav-link.active {
  background: rgba(255,255,255,0.18);
  color: #FFFFFF;
  font-weight: 700;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  line-height: 1.6;
}

.sidebar-footer strong {
  display: block;
  margin-bottom: 4px;
  color: #FFFFFF;
}

.main-content {
  margin-left: 250px;
  padding: 28px;
  min-height: 100vh;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
  border-radius: 22px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(229,231,235,0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 16px;
  z-index: 30;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-breadcrumb {
  display: grid;
  gap: 10px;
}

.breadcrumb-nav ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 10px;
  padding: 0;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.breadcrumb-nav ol li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-nav ol li a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-nav ol li span {
  color: var(--text-secondary);
}

.topbar-title h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  color: var(--text-primary);
  font-weight: 700;
}

.topbar-title small {
  color: var(--text-secondary);
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-search {
  min-width: 260px;
  width: 100%;
  max-width: 420px;
}

.search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
}

.search-input i {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.search-input input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.notification-menu {
  position: relative;
}

.notification-menu .badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #EF4444;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-dropdown,
.user-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  width: min(320px, 100vw);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: none;
  z-index: 40;
}

.notification-dropdown.open,
.user-dropdown-menu.open {
  display: block;
}

.user-dropdown {
  position: relative;
}

.user-dropdown .icon-button {
  min-width: 180px;
  justify-content: flex-start;
}

.user-dropdown .icon-button img {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
}

.user-dropdown .icon-button span {
  white-space: nowrap;
  color: var(--text-primary);
}

.user-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.2s ease;
}

.user-dropdown-menu a:hover {
  background: var(--bg-secondary);
}

.card,
.panel,
.stat-card,
.summary-card,
.quick-action-card,
.auth-card {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.card:hover,
.panel:hover,
.stat-card:hover,
.summary-card:hover,
.quick-action-card:hover,
.auth-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.panel {
  padding: 26px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary,
button.btn-primary,
button[type="submit"].btn-primary {
  background: #0D6EFD;
  color: #FFFFFF;
  border-color: #0D6EFD;
}

.btn-primary:hover,
button.btn-primary:hover {
  background: #0B5ED7;
}

.btn-secondary,
button.btn-secondary {
  background: #FFFFFF;
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background: #F3F6FB;
}

.btn-success {
  background: #22C55E;
  color: white;
}

.btn-warning {
  background: #F59E0B;
  color: white;
}

.btn-danger {
  background: #EF4444;
  color: white;
}

.btn.small,
button.small {
  padding: 10px 16px;
  font-size: 0.85rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
}

.modern-table thead th {
  background: #F3F6FB;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
  padding: 16px 18px;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--border-light);
}

.modern-table tbody tr {
  background: #FFFFFF;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.modern-table tbody tr:hover {
  background: #F8FAFF;
}

.modern-table tbody td {
  padding: 16px 18px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(229,231,235,0.8);
}

.modern-table tbody tr:last-child td {
  border-bottom: none;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-chip.lunas {
  background: #DCFCE7;
  color: #16A34A;
}

.status-chip.cicilan {
  background: #FEF3C7;
  color: #92400F;
}

.status-chip.belum-lunas,
.status-chip.belum {
  background: #FEE2E2;
  color: #B91C1C;
}

.status-chip.beasiswa {
  background: #DBEAFE;
  color: #1D4ED8;
}

.empty-state,
.notification-empty {
  background: #FFFFFF;
  border: 1px dashed #D1D5DB;
  border-radius: 18px;
  padding: 34px 30px;
  text-align: center;
  color: var(--text-secondary);
}

.empty-state i,
.notification-empty i {
  font-size: 2.5rem;
  color: #94A3B8;
  margin-bottom: 18px;
}

.empty-state p,
.notification-empty p {
  margin: 0;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--text-primary);
  font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #0B3B91;
  box-shadow: 0 0 0 4px rgba(11, 59, 145, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-secondary);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-row,
.form-columns-3,
.form-columns-2 {
  display: grid;
  gap: 18px;
}

.form-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.section-heading i {
  color: var(--primary);
}

@media (max-width: 1200px) {
  .sidebar {
    width: 240px;
    min-width: 240px;
  }
  .main-content {
    margin-left: 240px;
  }
}

@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    transform: translateX(-115%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    padding: 22px;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .topbar {
    position: sticky;
    top: 0;
  }
}

@media (max-width: 768px) {
  .topbar {
    grid-template-columns: 1fr;
    padding: 18px 18px;
  }
  .topbar-left {
    width: 100%;
  }
  .topbar-actions {
    justify-content: stretch;
  }
  .topbar-search {
    max-width: 100%;
  }
  .search-input {
    width: 100%;
  }
  .breadcrumb-nav ol {
    gap: 6px;
  }
  .sidebar {
    width: 100%;
    max-width: 320px;
  }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
}

footer {
  color: var(--text-secondary);
  text-align: center;
  padding: 18px 0;
  font-size: 0.92rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

/* Stat Card */
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.stat-card h3 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 700;
}

.stat-card p {
  font-size: 2.125rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.stat-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.stat-card.success p { color: var(--success); }
.stat-card.warning p { color: var(--warning); }
.stat-card.danger p { color: var(--danger); }
.stat-card.info p { color: var(--info); }

/* Profile Card */
.profile-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.profile-card > div {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.profile-card > div:last-child {
  border-bottom: none;
}

.profile-card .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-card h3 {
  margin: 8px 0 0;
  color: var(--text-primary);
}

/* Panel */
.panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.page-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.panel-head h2 {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-head p {
  margin: 0;
  color: var(--text-secondary);
}

.page-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0 12px;
  min-width: min(280px, 100%);
}

.search-box i {
  color: var(--text-light);
}

.search-box input {
  border: none;
  background: transparent;
  padding: 10px 0;
  margin: 0;
  box-shadow: none;
}

.search-box input:focus {
  box-shadow: none;
  background: transparent;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.summary-card i {
  font-size: 1.2rem;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.12);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.summary-card strong {
  display: block;
  font-size: 1.06rem;
  color: var(--text-primary);
  font-weight: 700;
}

.summary-card span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(248, 250, 252, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-ring {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(37, 99, 235, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--surface);
  color: var(--text-primary);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 9998;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-default);
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.panel h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.panel p {
  margin: 12px 0;
}

/* ============================================
   TABLES & DATA
   ============================================ */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.modern-table thead th {
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
  background: rgba(37, 99, 235, 0.08);
}

.modern-table tbody tr td {
  vertical-align: middle;
  font-size: 0.875rem;
  padding: 16px;
}

.modern-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.05);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-chip.lunas {
  background: #ecfdf5;
  color: #065f46;
}

.status-chip.cicilan {
  background: #fffbeb;
  color: #92400e;
}

.status-chip.belum-lunas,
.status-chip.pending {
  background: #fef2f2;
  color: #b91c1c;
}

.status-chip.beasiswa {
  background: #eff6ff;
  color: #1d4ed8;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 8px 12px;
}

.filter-group select,
.filter-group input {
  border: none;
  background: transparent;
  margin: 0;
  padding: 0;
  box-shadow: none;
  min-width: 120px;
}

.filter-group select:focus,
.filter-group input:focus {
  box-shadow: none;
  background: transparent;
}

.summary-card--accent {
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(255,255,255,0.95));
}

.summary-card--success {
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(255,255,255,0.95));
}

.summary-card--warning {
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(255,255,255,0.95));
}

.summary-card--danger {
  background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(255,255,255,0.95));
}

.page-btn {
  min-width: 38px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: none;
}

.page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.page-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

thead {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.14));
  position: sticky;
  top: 0;
  z-index: 10;
}

.table-wrap {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  text-transform: capitalize;
  border-bottom: 2px solid var(--border-light);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

tbody tr {
  transition: var(--transition);
}

tbody tr:hover {
  background: var(--bg-secondary);
}

tbody tr:nth-child(even) {
  background: var(--surface-alt);
}

tbody tr:nth-child(even):hover {
  background: var(--bg-secondary);
}

/* ============================================
   PAGE COMPONENTS
   ============================================ */

.semester-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
}

.semester-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.semester-tab:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
}

.semester-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.form-section,
.page-hero,
.page-hero-card,
.notification-hero,
.filter-card,
.search-form-wrap,
.detail-section,
.proof-container,
.profile-form-section,
.schedule-hero {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.form-section h2,
.profile-form-section h2,
.page-hero h2,
.page-hero-card h2,
.notification-hero h2,
.filter-hero h2,
.detail-section h2,
.proof-container h2,
.schedule-hero h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  margin-bottom: 12px;
}

.form-columns-2,
.form-columns-3,
.profile-info-grid,
.detail-grid,
.filter-form-grid,
.schedule-grid {
  display: grid;
  gap: 18px;
}

.form-columns-2,
.profile-info-grid,
.detail-grid,
.schedule-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-item,
.form-group-profile,
.filter-form-group,
.search-form-group,
.detail-item,
.proof-item,
.schedule-item {
  display: flex;
  flex-direction: column;
}

.form-item label,
.form-group-profile label,
.filter-form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-item input,
.form-item select,
.form-item textarea,
.form-group-profile input,
.form-group-profile textarea,
.filter-form-group input,
.filter-form-group select,
.search-form-group input,
.search-form-group button {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--surface-alt);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
}

.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus,
.form-group-profile input:focus,
.form-group-profile textarea:focus,
.filter-form-group input:focus,
.filter-form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-item input:disabled,
.form-group-profile input:disabled,
.form-item select:disabled,
.form-group-profile textarea:disabled {
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.info-box {
  display: none;
  background: #f0f9ff;
  border-left: 4px solid var(--info);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 12px;
}

.info-box.show {
  display: block;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-list {
  display: grid;
  gap: 14px;
}

.notification-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.notification-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.notification-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  flex-shrink: 0;
}

.notification-card.info .notification-card__icon {
  background: rgba(6, 182, 212, 0.14);
  color: var(--info);
}

.notification-card.success .notification-card__icon {
  background: rgba(16, 185, 129, 0.14);
  color: var(--success);
}

.notification-card.warning .notification-card__icon {
  background: rgba(245, 158, 11, 0.16);
  color: var(--warning);
}

.notification-card.danger .notification-card__icon {
  background: rgba(239, 68, 68, 0.14);
  color: var(--danger);
}

.notification-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin-bottom: 8px;
}

.notification-card-title {
  font-weight: 700;
  color: var(--text-primary);
}

.notification-card-time {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.notification-card-message {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.notification-empty,
.search-empty,
.proof-no-image {
  text-align: center;
  padding: 36px 20px;
  background: var(--surface-alt);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-lg);
}

.notification-empty i,
.search-empty i {
  display: block;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 2rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.schedule-card {
  padding: 20px;
  transition: var(--transition);
}

.schedule-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.schedule-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.schedule-card-sem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.schedule-card-content {
  display: grid;
  gap: 12px;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary);
  flex-shrink: 0;
}

.schedule-item-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.schedule-item-value {
  font-weight: 600;
  color: var(--text-primary);
}

.schedule-hero,
.page-hero,
.page-hero-card,
.notification-hero,
.filter-card,
.search-form-wrap,
.detail-section,
.proof-container,
.profile-form-section {
  position: relative;
}

.filter-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.filter-actions .btn,
.page-toolbar .btn,
.search-form-group button {
  min-width: 140px;
}

.schedule-edit-btn,
.schedule-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
  border: none;
}

.schedule-edit-btn {
  background: var(--primary);
  color: white;
}

.schedule-edit-btn:hover {
  background: var(--primary-dark);
}

.schedule-delete-btn {
  background: var(--danger);
  color: white;
}

.schedule-delete-btn:hover {
  background: #dc2626;
}

.detail-grid,
.profile-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-item,
.profile-info-item {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
}

.detail-item-label,
.profile-info-item strong {
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.detail-item-value,
.profile-info-item span {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.profile-card__header,
.proof-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-card__avatar,
.proof-item-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-size: 1.35rem;
}

.profile-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-card__subtitle {
  color: var(--text-secondary);
}

.proof-image-wrap {
  text-align: center;
  margin: 24px 0;
}

.proof-image-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.proof-no-image p {
  margin-top: 16px;
  color: var(--text-muted);
}

.status-dibuka,
.status-akan-dibuka,
.status-akandibuka {
  background: #d1fae5;
  color: #065f46;
}

.status-ditutup {
  background: #fee2e2;
  color: #b91c1c;
}

@media (max-width: 1024px) {
  .form-columns-3,
  .detail-grid,
  .profile-info-grid,
  .schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .form-columns-2,
  .form-columns-3,
  .detail-grid,
  .profile-info-grid,
  .schedule-grid,
  .filter-form-grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .page-hero-card,
  .notification-hero,
  .filter-card,
  .search-form-wrap,
  .detail-section,
  .proof-container,
  .profile-form-section,
  .schedule-hero {
    padding: 20px;
  }
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-select-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.form-select-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.form-select-group select {
  margin-bottom: 0;
  cursor: pointer;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

.section-row {
  margin-bottom: 24px;
  background: linear-gradient(180deg, #fcfdff 0%, #f8fbff 100%);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.section-heading {
  color: var(--text-primary);
  margin: 0 0 16px;
  font-size: 1.06rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.action-row .btn {
  flex: 1;
  min-width: 180px;
}

.action-row .btn-primary {
  min-width: 220px;
}
  .mobile-toggle {
    display: inline-flex;
    margin-bottom: 0 !important;
  }

  .topbar {
    /* flex-direction: column; */
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .topbar h1 {
    font-size: 1.25rem;
  }

  main {
    padding: 16px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow-x: auto;
  }

  table {
    min-width: 600px;
  }
}


@media (max-width: 480px) {
  .auth-card {
    padding: 24px 16px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card h3 {
    font-size: 0.85rem;
  }

  .stat-card p {
    font-size: 1.5rem;
  }

  .topbar {
    padding: 12px 16px;
  }

  .topbar h1 {
    font-size: 1.125rem;
  }

  h2 { font-size: 1.25rem; }
  h3 { font-size: 1rem; }

  main {
    padding: 12px;
  }

  .panel {
    padding: 16px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .filter-group {
    width: 100%;
  }

  .profile-card {
    padding: 16px;
  }

  .btn.small {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* Additional utility classes */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

.slide-down {
  animation: slideDown 0.3s ease-out;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Utility Classes */
.hidden { display: none !important; }
.visible { display: block !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-small { font-size: 0.85rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

.role-switch {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.role-switch label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
}

.role-switch input {
  width: auto;
  margin: 0;
  cursor: pointer;
}

/* Print Styles */
@media print {
  .sidebar, .topbar, .mobile-toggle {
    display: none;
  }

  .main-content {
    margin-left: 0;
    box-shadow: none;
  }

  main {
    padding: 0;
  }

  .btn {
    display: none;
  }
}
