/* public/css/style.css - Desain Modern, Harmonis, Minimalis & Profesional (SI-OBE) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-sidebar: #0f172a;

  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Brand Palette: Deep Academic Indigo-Navy */
  --brand: #1e3a8a;
  --brand-hover: #1e40af;
  --brand-accent: #2563eb;
  --brand-soft: #eff6ff;
  --brand-border: #bfdbfe;

  /* Ranah Kategori CPL (Soft & Balanced) */
  --color-sikap: #6d28d9;
  --color-sikap-bg: #f5f3ff;
  --color-pengetahuan: #0369a1;
  --color-pengetahuan-bg: #f0f9ff;
  --color-keterampilan-umum: #0f766e;
  --color-keterampilan-umum-bg: #f0fdfa;
  --color-keterampilan-khusus: #1d4ed8;
  --color-keterampilan-khusus-bg: #eff6ff;
  --color-kemandirian: #b45309;
  --color-kemandirian-bg: #fffbeb;

  /* Status Pencapaian */
  --status-sangat-baik: #047857;
  --status-sangat-baik-bg: #ecfdf5;
  --status-sangat-baik-border: #a7f3d0;

  --status-baik: #0369a1;
  --status-baik-bg: #f0f9ff;
  --status-baik-border: #bae6fd;

  --status-cukup: #b45309;
  --status-cukup-bg: #fffbeb;
  --status-cukup-border: #fde68a;

  --status-kurang: #b91c1c;
  --status-kurang-bg: #fef2f2;
  --status-kurang-border: #fecaca;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 50px -12px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

svg {
  flex-shrink: 0;
}

/* ==========================================================================
   HALAMAN LOGIN UTAMA (MINIMALIS EDITORIAL SAAS)
   ========================================================================== */
.login-screen {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(30, 58, 138, 0.07), transparent),
    radial-gradient(ellipse 70% 50% at 85% 90%, rgba(14, 165, 233, 0.06), transparent),
    #f8fafc;
}

.login-card {
  width: 100%;
  max-width: 920px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  overflow: hidden;
  animation: fadeIn 0.25s ease-out;
}

.login-brand-panel {
  background:
    radial-gradient(circle at 95% 5%, rgba(59, 130, 246, 0.18), transparent 48%),
    radial-gradient(circle at 10% 95%, rgba(14, 165, 233, 0.12), transparent 45%),
    #0f172a;
  color: #ffffff;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.login-brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.login-emblem {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
}

.login-brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.login-brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.login-hero-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 14px;
}

.login-hero-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 28px;
}

.login-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.45;
}

.login-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93c5fd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.login-brand-footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.login-form-panel {
  padding: 44px 42px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-header {
  margin-bottom: 24px;
}

.login-form-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.login-form-header p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.login-error-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}

.login-input {
  height: 42px;
  padding: 0 14px;
  font-size: 13.5px;
  border-radius: var(--radius-md);
}

.login-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-password-wrap .login-input {
  padding-right: 42px;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-muted);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.password-toggle-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.login-submit-btn {
  width: 100%;
  height: 44px;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: #ffffff;
  border: 1px solid var(--brand);
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.2);
  margin-top: 6px;
}

.login-submit-btn:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

.demo-accounts-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.demo-accounts-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.demo-accounts-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.45;
}

.demo-btn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.demo-role-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 12px;
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  font-family: inherit;
}

.demo-role-btn:hover {
  background: var(--brand-soft);
  border-color: var(--brand-border);
  transform: translateY(-1px);
}

.demo-role-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
}

.demo-role-user {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ==========================================================================
   APP CONTAINER & SIDEBAR (CLEAN SLATE-NAVY ARCHITECTURE)
   ========================================================================== */
#app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background-color: var(--bg-app);
}

#sidebar-container {
  width: 256px;
  min-width: 256px;
  background-color: var(--bg-sidebar);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid #1e293b;
  z-index: 100;
  transition: transform 0.25s ease;
}

.sidebar-header {
  height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-brand-text h2 {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sidebar-brand-text p {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.sidebar-nav-label {
  padding: 18px 20px 8px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.sidebar-menu {
  flex: 1;
  padding: 4px 12px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-menu-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-menu-btn svg {
  color: #64748b;
  transition: color 0.15s ease;
}

.sidebar-menu-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
}

.sidebar-menu-btn:hover svg {
  color: #cbd5e1;
}

.sidebar-menu-btn.sidebar-active {
  background: rgba(59, 130, 246, 0.14);
  color: #ffffff;
  font-weight: 600;
  border-color: rgba(96, 165, 250, 0.2);
}

.sidebar-menu-btn.sidebar-active svg {
  color: #60a5fa;
}

.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.25);
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: #1e3a8a;
  color: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(147, 197, 253, 0.3);
}

.sidebar-logout-btn {
  margin-top: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.sidebar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

/* ==========================================================================
   KONTEN UTAMA & TOP HEADER BAR (STICKY GLASS HEADER)
   ========================================================================== */
#content-container {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-app);
}

.top-bar-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 68px;
  padding: 12px 32px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.top-bar-title h1 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.top-bar-title p {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.content-body {
  padding: 28px 32px 48px;
  width: 100%;
  max-width: 1440px;
}

.view-section {
  display: none;
}

.view-section.view-active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

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

/* ==========================================================================
   STAT CARDS (CLEAN MINIMALIST KPI)
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.stat-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.stat-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.stat-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-emerald { background: #ecfdf5; color: #059669; }
.icon-blue { background: #eff6ff; color: #1d4ed8; }
.icon-indigo { background: #eef2ff; color: #4338ca; }
.icon-amber { background: #fffbeb; color: #d97706; }

.stat-card-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stat-card-footer {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   LAYOUT GRIDS & PANELS
   ========================================================================== */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.split-grid-2-1 {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: start;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
}

.card-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  margin-bottom: 22px;
  overflow: hidden;
}

.card-panel-header {
  padding: 15px 22px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.card-panel-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-panel-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.card-panel-body {
  padding: 20px 22px;
}

.filter-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-toolbar-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-toolbar-select {
  width: 360px;
  max-width: 100%;
}

/* ==========================================================================
   TABLES & BADGES
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.cpl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.cpl-table th {
  background-color: #f8fafc;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.cpl-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--bg-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
  background-color: #ffffff;
}

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

.cpl-table tbody tr:hover td {
  background-color: #f8fafc;
}

/* Category Badges */
.tag-category {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.tag-sikap { background: var(--color-sikap-bg); color: var(--color-sikap); }
.tag-pengetahuan { background: var(--color-pengetahuan-bg); color: var(--color-pengetahuan); }
.tag-keterampilan-umum { background: var(--color-keterampilan-umum-bg); color: var(--color-keterampilan-umum); }
.tag-keterampilan-khusus { background: var(--color-keterampilan-khusus-bg); color: var(--color-keterampilan-khusus); }
.tag-kemandirian { background: var(--color-kemandirian-bg); color: var(--color-kemandirian); }

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
}

.status-sangat-baik {
  background-color: var(--status-sangat-baik-bg);
  color: var(--status-sangat-baik);
  border: 1px solid var(--status-sangat-baik-border);
}

.status-baik {
  background-color: var(--status-baik-bg);
  color: var(--status-baik);
  border: 1px solid var(--status-baik-border);
}

.status-cukup {
  background-color: var(--status-cukup-bg);
  color: var(--status-cukup);
  border: 1px solid var(--status-cukup-border);
}

.status-kurang {
  background-color: var(--status-kurang-bg);
  color: var(--status-kurang);
  border: 1px solid var(--status-kurang-border);
}

/* Badges & Buttons */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.header-pill-muted {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.header-pill-user {
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12.5px;
}

.btn-primary {
  background-color: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.btn-primary:hover {
  background-color: var(--brand-hover);
}

.btn-success {
  background-color: #047857;
  color: #ffffff;
  border-color: #047857;
}

.btn-success:hover {
  background-color: #065f46;
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}

.btn-ghost-danger {
  background-color: transparent;
  color: var(--text-muted);
  border-color: var(--border-color);
}

.btn-ghost-danger:hover {
  background-color: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

/* Form Controls */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-main);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Student Profile Hero */
.student-profile-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.student-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Floating Toast Notification */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s ease-in-out;
}

#toast-container.toast-show {
  opacity: 1;
  transform: translateY(0);
}

.toast-pill {
  background-color: #0f172a;
  color: #ffffff;
  padding: 11px 20px;
  border-radius: 9999px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Mobile Header */
.mobile-header {
  display: none;
}

@media (max-width: 960px) {
  .split-grid-2-1 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  #app-container {
    flex-direction: column;
  }
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--bg-sidebar);
    color: #ffffff;
    border-bottom: 1px solid #1e293b;
  }
  #sidebar-container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    transform: translateX(-100%);
  }
  #sidebar-container.sidebar-open {
    transform: translateX(0);
  }
  .top-bar-header {
    padding: 14px 18px;
  }
  .content-body {
    padding: 18px 16px 36px;
  }
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .login-card {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
  .login-brand-panel {
    padding: 28px 26px;
  }
  .login-hero-title {
    font-size: 20px;
  }
  .login-form-panel {
    padding: 28px 26px;
  }
  .demo-btn-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PEMILIH PROGRAM STUDI (SIDEBAR & TOPBAR)
   ========================================================================== */
.sidebar-prodi-box {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-prodi-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.sidebar-prodi-select {
  width: 100%;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  background-color: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(147, 197, 253, 0.3);
  border-radius: 8px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sidebar-prodi-select:hover,
.sidebar-prodi-select:focus {
  border-color: #60a5fa;
  background-color: rgba(15, 23, 42, 0.85);
}

.sidebar-prodi-select option {
  background-color: #0f172a;
  color: #ffffff;
}

.prodi-topbar-select {
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e3a8a;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.prodi-topbar-select:hover,
.prodi-topbar-select:focus {
  background-color: #dbeafe;
  border-color: #93c5fd;
}

@media print {
  .no-print {
    display: none !important;
  }
  #app-container {
    display: block !important;
  }
  .content-body {
    padding: 0;
  }
  .card-panel, .stat-card {
    box-shadow: none;
    break-inside: avoid;
  }
}
