/* ── Variables ─────────────────────────────────────────── */
:root {
  --primary: #1a3c6e;
  --primary-light: #2d6bcf;
  --accent: #f5a623;
  --sidebar-w: 260px;
  --header-h: 64px;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #f1f5f9;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --font: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--text); background: var(--bg); }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); }

/* ── LAYOUT ─────────────────────────────────────────────── */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--primary);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.brand-icon { font-size: 28px; }

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  color: white;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.brand-sub {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-item:hover { background: rgba(255,255,255,0.08); color: white; }
.nav-item.active { background: var(--primary-light); color: white; }
.nav-item i { width: 18px; text-align: center; }

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-avatar {
  width: 36px; height: 36px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.admin-name { display: block; color: white; font-size: 13px; font-weight: 600; }
.admin-role { display: block; color: rgba(255,255,255,0.5); font-size: 11px; text-transform: uppercase; }

.logout-btn {
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.logout-btn:hover { color: white; background: rgba(255,0,0,0.2); }

/* ── MAIN ───────────────────────────────────────────────── */
.admin-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-header {
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.header-left { display: flex; align-items: center; gap: 16px; }

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.btn-apply-link {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: var(--primary-light);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-apply-link:hover { background: #dbeafe; }

.admin-content {
  flex: 1;
  padding: 32px;
}

/* ── ALERTS ─────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
}

.alert i { flex-shrink: 0; margin-top: 1px; }
.alert ul { margin: 0; padding-left: 16px; }

.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* ── STAT CARDS ─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.card-total::before { background: #6366f1; }
.card-pending::before { background: #f59e0b; }
.card-approved::before { background: #22c55e; }
.card-rejected::before { background: #ef4444; }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.card-total .stat-icon { background: #eef2ff; color: #6366f1; }
.card-pending .stat-icon { background: #fef3c7; color: #d97706; }
.card-approved .stat-icon { background: #dcfce7; color: #16a34a; }
.card-rejected .stat-icon { background: #fee2e2; color: #dc2626; }

.stat-body {
  display: flex;
  flex-direction: column;
}

.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 36px; font-weight: 700; color: var(--text); line-height: 1.1; }

.stat-footer { font-size: 12px; color: var(--primary-light); font-weight: 500; }

/* ── TABLE ──────────────────────────────────────────────── */
.table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: #f8fafc;
  border-bottom: 2px solid var(--border);
}

.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

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

.data-table tbody tr:hover { background: #f8fafc; }
.data-table tbody tr.row-pending { background: #fffbf0; }
.data-table tbody tr.row-pending:hover { background: #fef3c7; }

.app-num { font-family: monospace; font-size: 13px; color: var(--primary-light); font-weight: 600; }

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-approved { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }

.badge-lg {
  font-size: 13px;
  padding: 6px 16px;
}

/* Action buttons */
.actions { display: flex; align-items: center; gap: 6px; }

.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
}

.btn-view { background: #eff6ff; color: var(--primary-light); }
.btn-view:hover { background: #dbeafe; }

.btn-edit { background: #fef3c7; color: #d97706; }
.btn-edit:hover { background: #fde68a; }

.btn-delete { background: #fee2e2; color: #dc2626; }
.btn-delete:hover { background: #fecaca; }

/* ── FILTER BAR ─────────────────────────────────────────── */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.search-form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrap i {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.search-wrap input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.search-wrap input:focus { border-color: var(--primary-light); }

.filter-wrap select {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font);
  background: white;
  cursor: pointer;
  outline: none;
}

.btn-search {
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.btn-search:hover { background: var(--primary-light); }

.btn-print-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #1e293b;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-print-list:hover { background: #0f172a; }

.results-info {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-tag {
  background: #dbeafe;
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.filter-tag a { color: inherit; margin-left: 4px; }

/* ── PAGINATION ─────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.pagination a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pagination a.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ── EMPTY STATE ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state i { font-size: 48px; margin-bottom: 16px; color: #cbd5e1; display: block; }
.empty-state p { margin-bottom: 20px; }
.empty-state .btn-primary { display: inline-flex; align-items: center; gap: 8px; }

/* ── DASHBOARD SECTION ──────────────────────────────────── */
.dash-section {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.dash-section-header h2 { font-size: 16px; font-weight: 700; color: var(--text); }
.dash-section-header a { font-size: 13px; color: var(--primary-light); font-weight: 600; }

/* ── STUDENT VIEW ───────────────────────────────────────── */
.view-header {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.view-title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: 6px;
  transition: all 0.2s;
}
.back-btn:hover { color: var(--primary); background: #dbeafe; }

.view-title h2 { font-size: 20px; font-weight: 700; color: var(--primary); }

.app-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: monospace;
}

.view-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fef3c7;
  color: #d97706;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-edit:hover { background: #fde68a; }

.btn-approve {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #dcfce7;
  color: #16a34a;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-approve:hover { background: #bbf7d0; }

.btn-reject {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-reject:hover { background: #fecaca; }

.btn-delete-lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-delete-lg:hover { background: #fee2e2; }

/* ── INFO CARDS ─────────────────────────────────────────── */
.view-body { display: flex; flex-direction: column; gap: 20px; }

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.card-icon { font-size: 22px; }
.card-head h3 { font-size: 15px; font-weight: 700; color: var(--primary); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
  padding: 8px 0;
}

.info-item {
  display: flex;
  flex-direction: column;
  padding: 12px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.info-item.full-width { grid-column: 1 / -1; }
.info-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.info-value { font-size: 14px; color: var(--text); font-weight: 500; }

.meta-card .info-grid { padding: 4px 0; }

/* ── EDIT PAGE ──────────────────────────────────────────── */
.edit-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.edit-header h2 { font-size: 20px; font-weight: 700; color: var(--primary); }

.edit-form { display: flex; flex-direction: column; gap: 24px; }

.edit-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.edit-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(45, 107, 207, 0.1);
}

.form-group textarea { resize: vertical; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.checkbox-label input[type="checkbox"] { display: none; }

.checkmark {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.checkbox-label input:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px 0;
}

.btn-cancel {
  padding: 11px 24px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-cancel:hover { background: var(--border); }

.btn-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-save:hover { background: var(--primary-light); }

.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #eff6ff;
  color: var(--primary-light);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-view:hover { background: #dbeafe; }

/* ── LOGIN PAGE ─────────────────────────────────────────── */
.login-body { background: var(--bg); }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-left {
  background: linear-gradient(135deg, #0f2447, #1a3c6e);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.login-brand { text-align: center; position: relative; z-index: 2; }
.login-brand .brand-logo { font-size: 64px; margin-bottom: 20px; }
.login-brand h1 { font-size: 28px; color: white; font-weight: 700; margin-bottom: 8px; }
.login-brand p { color: rgba(255,255,255,0.5); font-size: 15px; }

.login-decoration { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; }
.deco-circle { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,0.08); }
.c1 { width: 300px; height: 300px; top: -100px; right: -100px; }
.c2 { width: 200px; height: 200px; bottom: -60px; left: -60px; }
.c3 { width: 150px; height: 150px; bottom: 80px; right: 80px; background: rgba(45,107,207,0.15); }

.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: white;
}

.login-card {
  width: 100%;
  max-width: 400px;
}

.login-card h2 { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.login-card > p { color: var(--text-muted); margin-bottom: 32px; }

.login-card .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.login-card label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.input-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.input-icon input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-icon input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(45, 107, 207, 0.1);
}

.btn-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 8px;
}
.btn-login:hover { background: var(--primary-light); transform: translateY(-1px); }

.login-back {
  text-align: center;
  margin-top: 20px;
}

.login-back a { font-size: 13px; color: var(--text-muted); }
.login-back a:hover { color: var(--primary); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .sidebar-toggle { display: block; }
  .admin-content { padding: 20px 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .view-header { flex-direction: column; align-items: flex-start; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ── SEARCHABLE SELECT (admin) ──────────────────────────── */
.searchable-select-wrap {
  position: relative;
}

.searchable-input {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.searchable-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(45, 107, 207, 0.1);
}

.searchable-select-wrap.open .searchable-input {
  border-color: var(--primary-light);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: white;
  border: 1.5px solid var(--primary-light);
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.searchable-select-wrap.open .dropdown-list { display: block; }

.dropdown-item {
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.12s;
  border-bottom: 1px solid #f1f5f9;
}

.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover, .dropdown-item.highlighted { background: #eff6ff; color: var(--primary); }
.dropdown-item.selected { background: #dbeafe; color: var(--primary); font-weight: 600; }
.dropdown-item.hidden { display: none; }

.dropdown-empty {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

.dropdown-list::-webkit-scrollbar { width: 6px; }
.dropdown-list::-webkit-scrollbar-track { background: #f8fafc; }
.dropdown-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }

/* ── STUDENT PRINT BUTTON ───────────────────────────────── */
.btn-print-student {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #1e293b;
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-print-student:hover { background: #0f172a; }
