/* =============================================
   GYAN SAGAR ADMIN PORTAL — STUDENTS CSS
   ============================================= */

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

:root {
  /* ── Gyan Sagar Brand Colors: Deep Navy + Gold ── */
  --primary:       #c9a84c;          /* Gold */
  --primary-dark:  #a8892e;          /* Dark Gold */
  --primary-light: #fdf6e3;          /* Pale Gold tint */
  --accent:        #e8b94f;          /* Amber Gold */
  --success:       #16a34a;
  --warning:       #d97706;
  --danger:        #dc2626;
  --purple:        #7c3aed;

  /* Sidebar — Deep Navy */
  --sidebar-bg:     #0a0e1a;         /* Very deep navy */
  --sidebar-hover:  #111827;         /* Navy hover */
  --sidebar-active: #c9a84c;         /* Gold active */

  /* Page */
  --topbar-bg: #ffffff;
  --page-bg:   #f0f2f7;             /* Slight blue-grey background */
  --card-bg:   #ffffff;

  /* Text */
  --text-dark:   #0d1b2a;
  --text-mid:    #1e3a5f;
  --text-light:  #5a6d80;
  --text-xlight: #8fa3b1;

  /* Border */
  --border: #dde4ed;

  --shadow-sm: 0 1px 4px rgba(10,20,50,.08);
  --shadow-md: 0 4px 18px rgba(10,20,50,.12);
  --shadow-lg: 0 10px 44px rgba(10,20,50,.18);
  --radius:    12px;
  --radius-sm: 8px;
  --sidebar-w: 260px;
  --topbar-h:  64px;
  --transition: all .22s ease;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--page-bg);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f0f2f7; }
::-webkit-scrollbar-thumb { background: #c9a84c; border-radius: 99px; opacity: .5; }
::-webkit-scrollbar-thumb:hover { background: #a8892e; }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 200;
  transition: var(--transition);
  box-shadow: 4px 0 24px rgba(0,0,0,.2);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  border-bottom: 1px solid rgba(201,168,76,.12);
}

.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #c9a84c, #e8b94f);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #0a0e1a;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(201,168,76,.4);
}

.logo-text { display: flex; flex-direction: column; }
.logo-main { font-size: 1rem; font-weight: 700; color: #f5e9c8; letter-spacing: .3px; }
.logo-sub  { font-size: .72rem; color: #7a8a9e; letter-spacing: .5px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 0; }

.nav-section-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #3d4f63;
  padding: 16px 20px 6px;
}

.sidebar-nav ul { list-style: none; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: #7a8fa6;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  border-radius: 0;
  transition: var(--transition);
  position: relative;
  margin: 1px 0;
}

.nav-item i { font-size: .95rem; width: 18px; text-align: center; flex-shrink: 0; }
.nav-item span:not(.badge) { flex: 1; }

.nav-item:hover {
  background: #111d2e;
  color: #e8b94f;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(201,168,76,.18), rgba(201,168,76,.03));
  color: #c9a84c;
  border-left: 3px solid #c9a84c;
}

.nav-item.active i { color: #c9a84c; }

.badge {
  background: rgba(201,168,76,.2);
  color: #c9a84c;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
}
.badge.red { background: rgba(220,38,38,.2); color: #f87171; }

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(201,168,76,.12);
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.admin-profile:hover { background: var(--sidebar-hover); }

.admin-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #c9a84c, #e8b94f);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #0a0e1a; font-weight: 700; font-size: .85rem;
}

.admin-info { flex: 1; display: flex; flex-direction: column; }
.admin-name  { color: #f5e9c8; font-size: .82rem; font-weight: 600; }
.admin-role  { color: #4a5e72; font-size: .7rem; }

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

/* ── TOPBAR ── */
.topbar {
  height: var(--topbar-h);
  background: #0a0e1a;
  border-bottom: 1px solid #1c2a3a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

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

.menu-toggle {
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: #c9a84c;
  font-size: 1rem;
  transition: var(--transition);
}
.menu-toggle:hover { background: rgba(201,168,76,.15); color: #e8b94f; }

.breadcrumb { display: flex; align-items: center; gap: 6px; }
.bc-item { font-size: .82rem; color: #7a8fa6; display: flex; align-items: center; gap: 4px; }
.bc-item.active { color: #c9a84c; font-weight: 600; }
.bc-sep { font-size: .65rem; color: #3d5066; }

.topbar-right { display: flex; align-items: center; gap: 10px; }

.search-global {
  display: flex; align-items: center; gap: 8px;
  background: #111d2e;
  border: 1px solid #1c2e42;
  border-radius: 20px;
  padding: 6px 14px;
  width: 240px;
}
.search-global i { color: #4a6480; font-size: .85rem; }
.search-global input {
  border: none; background: none;
  font-size: .84rem; color: #c8d6e5;
  outline: none; width: 100%;
  font-family: inherit;
}
.search-global input::placeholder { color: #4a6480; }

.topbar-btn {
  background: none; border: 1px solid #1c2e42;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #7a8fa6;
  font-size: .9rem; position: relative;
  transition: var(--transition);
}
.topbar-btn:hover { background: rgba(201,168,76,.12); color: #c9a84c; border-color: #c9a84c; }

.notif-dot {
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  position: absolute; top: 6px; right: 6px;
  border: 2px solid #fff;
}

.topbar-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #c9a84c, #e8b94f);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #0a0e1a; font-weight: 700; font-size: .85rem;
  cursor: pointer; border: 2px solid rgba(201,168,76,.3);
}

/* =============================================
   PAGE CONTENT
   ============================================= */
.page-content { padding: 28px 28px; flex: 1; }

/* PAGE HEADER */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0d1e35;
  letter-spacing: -.3px;
}
.page-subtitle { font-size: .875rem; color: #5a7a9a; margin-top: 4px; }

.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: .855rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #c9a84c, #a8892e);
  color: #0a0e1a;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(201,168,76,.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,.5);
  background: linear-gradient(135deg, #e8b94f, #c9a84c);
}
.btn-outline {
  background: #fff;
  border-color: var(--border);
  color: var(--text-mid);
}
.btn-outline:hover {
  border-color: #c9a84c;
  color: #a8892e;
  background: #fdf6e3;
}
.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 6px 13px; font-size: .8rem; }

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

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.stat-icon.blue   { background: #e8f4fd; color: #1a6fb5; }
.stat-icon.green  { background: #edfaf4; color: #16a34a; }
.stat-icon.orange { background: #fef9ec; color: #b45309; }
.stat-icon.purple { background: #f3f0ff; color: #6d28d9; }

.stat-info { flex: 1; display: flex; flex-direction: column; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--text-light); margin-top: 4px; font-weight: 500; }

.stat-trend {
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 99px;
  align-self: flex-start;
}
.stat-trend.up   { background: #f0fdf4; color: #10b981; }
.stat-trend.down { background: #fef2f2; color: #ef4444; }

/* =============================================
   TABLE CARD
   ============================================= */
.table-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* FILTERS BAR */
.filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  gap: 14px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--page-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  min-width: 280px;
  transition: var(--transition);
}
.search-box:focus-within {
  border-color: #c9a84c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.search-box i { color: var(--text-xlight); font-size: .85rem; }
.search-box input {
  border: none; background: none;
  font-size: .875rem; color: var(--text-dark);
  outline: none; width: 100%; font-family: inherit;
}

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

.filter-group select {
  padding: 8px 32px 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .84rem;
  font-family: inherit;
  color: var(--text-mid);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: var(--transition);
}
.filter-group select:focus {
  outline: none;
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}

/* TABLE WRAPPER */
.table-wrapper { overflow-x: auto; }

.students-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .855rem;
}

.students-table thead tr {
  background: #0d1e35;
  border-bottom: 2px solid #1c3050;
}

.students-table th {
  padding: 13px 16px;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  color: #c9a84c;
  letter-spacing: .6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.students-table th.sortable { cursor: pointer; user-select: none; }
.students-table th.sortable:hover { color: #e8b94f; }
.students-table th i { font-size: .65rem; margin-left: 4px; }

.students-table th input[type="checkbox"],
.students-table td input[type="checkbox"] {
  width: 16px; height: 16px; cursor: pointer;
  accent-color: var(--primary);
}

.students-table tbody tr {
  border-bottom: 1px solid #eef2f7;
  transition: var(--transition);
}
.students-table tbody tr:hover { background: #fdf9f0; }
.students-table tbody tr.selected-row { background: #fdf6e3; }

.students-table td {
  padding: 14px 16px;
  color: var(--text-mid);
  vertical-align: middle;
}

/* STUDENT CELL */
.student-cell { display: flex; align-items: center; gap: 12px; }
.student-thumb {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #0d1e35, #1a3a5c);
  display: flex; align-items: center; justify-content: center;
  color: #c9a84c; font-weight: 700; font-size: .85rem; flex-shrink: 0;
  border: 2px solid #e8d9a0;
}
.student-thumb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.student-details { display: flex; flex-direction: column; }
.student-name  { font-weight: 600; color: var(--text-dark); font-size: .875rem; }
.student-email { font-size: .75rem; color: var(--text-light); margin-top: 1px; }

/* ID CHIP */
.id-chip {
  font-size: .75rem;
  font-weight: 700;
  color: #a8892e;
  background: #fdf6e3;
  padding: 3px 9px;
  border-radius: 99px;
  font-family: 'Courier New', monospace;
  letter-spacing: .5px;
  border: 1px solid #e8d9a0;
}

/* CLASS BADGE */
.class-badge {
  background: #f0fdf4;
  color: #059669;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
}

/* CONTACT */
.contact-cell { display: flex; flex-direction: column; }
.contact-cell .phone { font-size: .83rem; color: var(--text-dark); font-weight: 500; }
.contact-cell .parent-info { font-size: .74rem; color: var(--text-light); margin-top: 2px; }

/* FEE STATUS */
.fee-badge {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fee-badge.paid    { background: #f0fdf4; color: #10b981; }
.fee-badge.pending { background: #fffbeb; color: #d97706; }
.fee-badge.overdue { background: #fef2f2; color: #ef4444; }

/* ATTENDANCE BAR */
.attendance-cell { display: flex; flex-direction: column; gap: 4px; }
.att-bar-bg {
  width: 80px; height: 6px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}
.att-bar-fill {
  height: 100%; border-radius: 99px;
  transition: width .4s ease;
}
.att-pct { font-size: .75rem; font-weight: 600; color: var(--text-mid); }

/* STATUS PILL */
.status-pill {
  padding: 4px 11px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.status-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
}
.status-pill.active    { background: #f0fdf4; color: #10b981; }
.status-pill.active::before    { background: #10b981; }
.status-pill.inactive  { background: #f8fafc; color: #64748b; }
.status-pill.inactive::before  { background: #94a3b8; }
.status-pill.suspended { background: #fef2f2; color: #ef4444; }
.status-pill.suspended::before { background: #ef4444; }

/* ACTION BUTTONS */
.action-buttons { display: flex; align-items: center; gap: 6px; }
.act-btn {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: .78rem;
  color: var(--text-light);
  transition: var(--transition);
}
.act-btn:hover { transform: scale(1.08); }
.act-btn.view:hover  { background: #eff6ff; color: #3b82f6; border-color: #93c5fd; }
.act-btn.edit:hover  { background: #f0fdf4; color: #10b981; border-color: #6ee7b7; }
.act-btn.del:hover   { background: #fef2f2; color: #ef4444; border-color: #fca5a5; }

/* =============================================
   TABLE FOOTER / PAGINATION
   ============================================= */
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.bulk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  color: var(--text-mid);
  font-weight: 600;
}

.pagination-info { font-size: .82rem; color: var(--text-light); }

.pagination { display: flex; align-items: center; gap: 4px; }

.page-btn {
  min-width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: .82rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  padding: 0 6px;
}
.page-btn:hover { border-color: #c9a84c; color: #a8892e; background: #fdf6e3; }
.page-btn.active { background: linear-gradient(135deg, #c9a84c, #a8892e); border-color: #c9a84c; color: #0a0e1a; font-weight: 700; box-shadow: 0 2px 8px rgba(201,168,76,.4); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* =============================================
   MODALS
   ============================================= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(.97);
  transition: transform .25s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal.modal-sm  { max-width: 420px; }
.modal.modal-lg  { max-width: 820px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header.danger { background: #fef2f2; }
.modal-title { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 8px; }

.modal-close {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .8rem; color: var(--text-light);
  transition: var(--transition);
}
.modal-close:hover { background: #fef2f2; color: var(--danger); border-color: #fca5a5; }

.modal-body { padding: 24px; overflow-y: auto; flex: 1; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* =============================================
   FORM STYLES
   ============================================= */
.form-avatar-row {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.avatar-upload { cursor: pointer; }
.avatar-preview {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: #fdf6e3;
  border: 3px dashed #c9a84c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #c9a84c;
  font-size: .7rem;
  font-weight: 600;
  transition: var(--transition);
  overflow: hidden;
}
.avatar-preview i { font-size: 1.4rem; }
.avatar-preview:hover { background: #fbefd0; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: .2px;
}
.req { color: var(--danger); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-family: inherit;
  color: var(--text-dark);
  transition: var(--transition);
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.form-group textarea { resize: vertical; min-height: 60px; }

/* =============================================
   VIEW MODAL PROFILE
   ============================================= */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #0d1e35, #1a3a5c);
  border-radius: 12px;
  margin-bottom: 20px;
}
.profile-avatar-lg {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a84c, #e8b94f);
  display: flex; align-items: center; justify-content: center;
  color: #0a0e1a; font-size: 1.8rem; font-weight: 800;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.2);
  box-shadow: var(--shadow-md);
}
.profile-meta { flex: 1; }
.profile-meta h3 { font-size: 1.2rem; font-weight: 700; color: #f5e9c8; }
.profile-meta p  { font-size: .83rem; color: #7a9ab8; margin-top: 3px; }
.profile-badges  { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.info-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.info-row:nth-child(even) { border-right: none; }
.info-label { font-size: .72rem; font-weight: 700; color: var(--text-xlight); text-transform: uppercase; letter-spacing: .7px; }
.info-value { font-size: .875rem; font-weight: 600; color: var(--text-dark); }

/* =============================================
   TOAST
   ============================================= */
.toast {
  position: fixed;
  bottom: 28px; right: 28px;
  background: #0d1e35;
  color: #f5e9c8;
  padding: 13px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(80px);
  opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  border-left: 4px solid #c9a84c;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast i { font-size: 1rem; }
.toast.success i { color: #10b981; }
.toast.error   i { color: #ef4444; }
.toast.info    i { color: #3b82f6; }

/* =============================================
   SIDEBAR COLLAPSED
   ============================================= */
.sidebar.collapsed { width: 68px; }
.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-section-label,
.sidebar.collapsed .nav-item span:not(.badge),
.sidebar.collapsed .admin-info,
.sidebar.collapsed .badge { display: none; }
.sidebar.collapsed .logo-icon { margin: 0 auto; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 12px; }
.sidebar.collapsed .nav-item i { margin: 0; }
.sidebar.collapsed .admin-profile { justify-content: center; }
.sidebar.collapsed + .main-content { margin-left: 68px; }

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.empty-state i { font-size: 3.5rem; color: #cbd5e1; margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 1rem; font-weight: 700; color: var(--text-mid); margin-bottom: 6px; }
.empty-state p  { font-size: .875rem; }

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

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-content { margin-left: 0 !important; }
  .search-global { display: none; }
}

@media (max-width: 640px) {
  .page-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .info-row { border-right: none; }
}
