/* ===== GLOBAL / RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #4361ee;
  --primary-dark: #3a0ca3;
  --primary-light: #7289f5;
  --accent: #f72585;
  --accent2: #4cc9f0;
  --success: #2dc653;
  --warning: #f4a261;
  --danger: #e63946;
  --bg-dark: #0d1117;
  --bg-card: #161b27;
  --bg-sidebar: #0f1523;
  --bg-hover: #1e2740;
  --text-primary: #e2e8f0;
  --text-secondary: #8899aa;
  --text-muted: #556070;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.25);
  --radius: 12px;
  --radius-lg: 20px;
  --sidebar-width: 260px;
  --header-height: 70px;
  --transition: 0.25s ease;
  --font: 'Cairo', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: var(--font); }
img { max-width: 100%; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-card); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 99px; }

/* ===== LOGIN ===== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #0d1117 0%, #0f1523 40%, #12183a 100%);
  overflow: hidden;
}

.login-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: floatShape 8s ease-in-out infinite alternate;
}
.shape-1 { width: 500px; height: 500px; background: radial-gradient(circle, var(--primary), transparent); top: -120px; right: -100px; }
.shape-2 { width: 400px; height: 400px; background: radial-gradient(circle, var(--accent), transparent); bottom: -100px; left: -80px; animation-delay: 2s; }
.shape-3 { width: 300px; height: 300px; background: radial-gradient(circle, var(--accent2), transparent); top: 50%; left:55%; animation-delay: 4s; }

@keyframes floatShape {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(30px) scale(1.08); }
}

.login-card {
  width: calc(100% - 32px);
  max-width: 440px;
  background: rgba(22, 27, 39, 0.85);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 25px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  padding: 48px 40px;
  position: relative;
  z-index: 10;
  animation: slideInUp 0.5s cubic-bezier(.17,.67,.34,1.12);
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-logo {
  text-align: center;
  margin-bottom: 36px;
}
.logo-icon {
  font-size: 64px;
  line-height: 1;
  display: block;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.login-logo h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 12px 0 6px;
  line-height: 1.4;
}
.login-logo p { font-size: 0.85rem; color: var(--text-secondary); }

.login-form .form-group { margin-bottom: 20px; }
.login-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon { position: absolute; right: 14px; font-size: 1.1rem; opacity: 0.6; pointer-events: none; }
.toggle-pass { position: absolute; left: 14px; cursor: pointer; font-size: 1rem; opacity: 0.5; transition: opacity var(--transition); }
.toggle-pass:hover { opacity: 1; }

.login-form input {
  width: 100%;
  padding: 13px 48px 13px 48px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.login-form input:focus {
  border-color: var(--primary);
  background: rgba(67, 97, 238, 0.08);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15);
  outline: none;
}

.login-error {
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230,57,70,0.3);
  color: #ff6b6b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  text-align: center;
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)}
}

.btn-login {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  box-shadow: 0 4px 20px rgba(67,97,238,0.4);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(67,97,238,0.5); filter: brightness(1.1); }
.btn-login:active { transform: translateY(0); }

.login-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ===== APP SHELL ===== */
.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg-dark);
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  transition: transform var(--transition);
}

.sidebar-header {
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  min-height: var(--header-height);
}
.sidebar-logo { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.sidebar-title { flex: 1; }
.sidebar-main-title { display: block; font-size: 0.85rem; font-weight: 800; color: var(--text-primary); }
.sidebar-sub-title { display: block; font-size: 0.7rem; color: var(--text-secondary); margin-top: 2px; }
.sidebar-close-btn {
  display: none;
  background: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  padding: 4px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.sidebar-close-btn:hover { color: var(--text-primary); background: var(--bg-hover); }

.sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 0;
  transition: background var(--transition), color var(--transition), padding-right var(--transition);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  cursor: pointer;
}
.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
  transform: scaleY(0);
  transition: transform var(--transition);
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); padding-right: 24px; }
.nav-item.active { background: rgba(67,97,238,0.12); color: var(--primary-light); }
.nav-item.active::before { transform: scaleY(1); }

.nav-icon { font-size: 1.2rem; flex-shrink: 0; }
.nav-label { font-size: 0.88rem; }

.sidebar-footer { padding: 16px; border-top: 1px solid var(--border); }
.btn-logout {
  width: 100%;
  padding: 11px 16px;
  background: rgba(230,57,70,0.1);
  border: 1px solid rgba(230,57,70,0.2);
  color: var(--danger);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition);
}
.btn-logout:hover { background: rgba(230,57,70,0.18); border-color: rgba(230,57,70,0.4); }

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  margin-right: var(--sidebar-width);
  min-height: 100vh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: margin-right var(--transition);
}

/* ===== HEADER ===== */
.top-header {
  height: var(--header-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-right { display: flex; align-items: center; gap: 16px; }
.header-left { display: flex; align-items: center; gap: 20px; }

.hamburger {
  background: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  padding: 6px;
  border-radius: 8px;
  display: none;
  transition: color var(--transition), background var(--transition);
}
.hamburger:hover { color: var(--text-primary); background: var(--bg-hover); }

.breadcrumb { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }

.header-date { font-size: 0.8rem; color: var(--text-secondary); }

.admin-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(67,97,238,0.1);
  border: 1px solid rgba(67,97,238,0.2);
  border-radius: 99px;
  cursor: default;
}
.admin-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
}
.admin-name { font-size: 0.82rem; font-weight: 600; color: var(--primary-light); }

/* ===== PAGES ===== */
.pages-container { flex: 1; padding: 30px; min-width: 0; overflow-x: hidden; }

.page { display: none; animation: fadeInPage 0.35s ease; }
.page.active { display: block; }

@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-title { font-size: 1.6rem; font-weight: 800; color: var(--text-primary); }
.page-subtitle { font-size: 0.9rem; color: var(--text-secondary); margin-top: 4px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(67,97,238,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(67,97,238,0.5); filter: brightness(1.1); }
.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.btn-danger {
  background: linear-gradient(135deg, var(--danger), #c1121f);
  color: #fff;
  box-shadow: 0 4px 15px rgba(230,57,70,0.3);
}
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,57,70,0.45); }
.btn-print {
  background: rgba(244,162,97,0.12);
  color: var(--warning);
  border: 1px solid rgba(244,162,97,0.25);
}
.btn-print:hover { background: rgba(244,162,97,0.2); }
.btn-edit {
  background: rgba(76,201,240,0.12);
  color: var(--accent2);
  border: 1px solid rgba(76,201,240,0.2);
  padding: 6px 14px;
  font-size: 0.8rem;
}
.btn-edit:hover { background: rgba(76,201,240,0.2); }
.btn-del {
  background: rgba(230,57,70,0.1);
  color: var(--danger);
  border: 1px solid rgba(230,57,70,0.2);
  padding: 6px 14px;
  font-size: 0.8rem;
}
.btn-del:hover { background: rgba(230,57,70,0.2); }
.btn-view {
  background: rgba(45,198,83,0.10);
  color: var(--success);
  border: 1px solid rgba(45,198,83,0.2);
  padding: 6px 14px;
  font-size: 0.8rem;
}
.btn-view:hover { background: rgba(45,198,83,0.2); }
.btn-lg { padding: 13px 28px; font-size: 0.95rem; }

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.stat-info { flex: 1; }
.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
}
.stat-label { font-size: 0.82rem; color: var(--text-secondary); margin-top: 4px; }

/* ===== CHARTS / DASHBOARD ===== */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.chart-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 18px; color: var(--text-primary); }

.recent-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.recent-list-item:last-child { border-bottom: none; }
.recent-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.recent-name { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.recent-sub { font-size: 0.76rem; color: var(--text-secondary); margin-top: 2px; }

.quick-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.quick-stat-item:last-child { border-bottom: none; }
.quick-stat-label { color: var(--text-secondary); }
.quick-stat-val { font-weight: 700; color: var(--text-primary); }

/* ===== SEARCH BAR ===== */
.search-bar-container {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search-wrapper { position: relative; flex: 1; min-width: 220px; }
.search-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 1rem; opacity: 0.5; pointer-events: none; }

.search-input {
  width: 100%;
  padding: 11px 44px 11px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(67,97,238,0.12); outline: none; }

.filter-select {
  padding: 11px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.88rem;
  cursor: pointer;
  min-width: 170px;
  transition: border-color var(--transition);
}
.filter-select:focus { border-color: var(--primary); outline: none; }
.filter-select option { background: var(--bg-card); }

/* ===== TABLE ===== */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.data-table thead { position: sticky; top: 0; }
.data-table th {
  padding: 14px 16px;
  text-align: right;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
}
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
  white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-hover); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 600;
}
.badge-male { background: rgba(67,97,238,0.15); color: var(--primary-light); }
.badge-female { background: rgba(247,37,133,0.12); color: #f72585; }
.badge-success { background: rgba(45,198,83,0.12); color: var(--success); }
.badge-warning { background: rgba(244,162,97,0.12); color: var(--warning); }
.badge-danger { background: rgba(230,57,70,0.12); color: var(--danger); }

.actions-cell { display: flex; gap: 6px; }

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary-light); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== FORM ===== */
.alumni-form { display: flex; flex-direction: column; gap: 24px; }

.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.form-section-header {
  padding: 16px 24px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 24px;
}
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group-full { grid-column: 1 / -1; }

.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(67,97,238,0.06);
  box-shadow: 0 0 0 4px rgba(67,97,238,0.12);
  outline: none;
}
.form-group select option { background: var(--bg-card); color: var(--text-primary); }

/* File Upload */
.file-upload-wrapper { display: flex; flex-direction: column; gap: 10px; }
.file-input { display: none; }
.file-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(67,97,238,0.08);
  border: 1.5px dashed rgba(67,97,238,0.4);
  border-radius: var(--radius);
  color: var(--primary-light);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  width: fit-content;
}
.file-upload-label:hover { background: rgba(67,97,238,0.15); border-color: var(--primary); }
.img-preview-container { min-height: 80px; }
.img-preview {
  max-width: 160px;
  max-height: 140px;
  border-radius: 10px;
  border: 2px solid var(--border);
  object-fit: cover;
  display: none;
}

.form-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  padding-bottom: 10px;
}

/* ===== REPORTS ===== */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.report-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
}
.report-stat-value { font-size: 2.4rem; font-weight: 900; color: var(--primary-light); }
.report-stat-label { color: var(--text-secondary); font-size: 0.85rem; margin-top: 6px; }

.report-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.report-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }

.bar-chart-container { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label { min-width: 130px; text-align: right; font-size: 0.82rem; color: var(--text-secondary); }
.bar-track { flex: 1; height: 24px; background: rgba(255,255,255,0.05); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); transition: width 0.8s cubic-bezier(.17,.67,.34,1.12); display: flex; align-items: center; justify-content: flex-end; padding-left: 10px; }
.bar-count { font-size: 0.76rem; font-weight: 700; color: #fff; }

.report-table-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  overflow: auto;
}
.report-table-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }

/* ===== PROFILE VIEW ===== */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.profile-header {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 3px solid var(--primary);
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}
.profile-meta { flex: 1; }
.profile-name { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.profile-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.profile-tag {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(67,97,238,0.12);
  color: var(--primary-light);
}

.profile-sections { display: flex; flex-direction: column; gap: 24px; }
.profile-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.profile-field { display: flex; flex-direction: column; gap: 4px; }
.profile-field-label { font-size: 0.76rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.profile-field-value { font-size: 0.92rem; color: var(--text-primary); font-weight: 500; }
.profile-field-empty { color: var(--text-muted); font-style: italic; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 9999;
  transition: transform 0.35s cubic-bezier(.17,.67,.34,1.12);
  text-align: center;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(45,198,83,0.4); background: rgba(20,50,28,0.95); }
.toast.error { border-color: rgba(230,57,70,0.4); background: rgba(50,15,15,0.95); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  animation: fadeInPage 0.25s ease;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow);
  animation: slideInUp 0.3s ease;
}
.modal-box h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; color: var(--text-primary); }
.modal-box p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.6; }
.modal-actions { display: flex; gap: 14px; justify-content: center; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-state-icon { font-size: 5rem; opacity: 0.3; margin-bottom: 16px; }
.empty-state-title { font-size: 1.2rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state-sub { font-size: 0.88rem; color: var(--text-muted); }

/* ===== SIDEBAR OVERLAY (mobile) ===== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 180;
}

/* ===== PRINT ===== */
@media print {
  @page { size: landscape; margin: 1cm; }
  body { background: #fff !important; color: #000 !important; font-family: Arial, sans-serif !important; }
  .sidebar, .top-header, .page-actions, .btn, .search-bar-container, .pagination, .actions-cell, #toast, #confirmOverlay, .sidebar-overlay, .no-results { display: none !important; }
  .main-content { margin: 0 !important; min-width: 0 !important; }
  .pages-container { padding: 0 !important; overflow: visible !important; }
  .page-header { border-bottom: 2px solid #000 !important; padding-bottom: 10px !important; margin-bottom: 16px !important; }
  .page-title { color: #000 !important; font-size: 1.4rem !important; }
  .empty-state { display: none !important; }
  .table-container { overflow: visible !important; border: none !important; }
  .report-table-section { overflow: visible !important; border: none !important; padding: 0 !important; }
  .data-table { width: 100% !important; border-collapse: collapse !important; table-layout: auto !important; }
  .data-table th, .data-table td { border: 1px solid #ccc !important; padding: 8px !important; color: #000 !important; background: #fff !important; font-size: 0.8rem !important; white-space: normal !important; word-break: break-word !important; }
  .data-table th { background: #eee !important; }
  .badge { border: 1px solid #999 !important; color: #000 !important; background: #f5f5f5 !important; }
  .profile-card { background: #fff !important; border: none !important; color: #000 !important; }
  .profile-name, .profile-field-value { color: #000 !important; }
  .profile-field-label { color: #555 !important; }
  .profile-sections { gap: 12px !important; }
  .report-section, .report-stat { background: #fff !important; border: 1px solid #ccc !important; color: #000 !important; }
  .report-table-section { background: #fff !important; border: 1px solid #ccc !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .charts-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-date { display: none; }
  .sidebar {
    transform: translateX(100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-close-btn { display: block; }
  .sidebar-overlay { display: block; }
  .main-content { margin-right: 0; }
  .hamburger { display: block; }
  .pages-container { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-card { padding: 32px 24px; }
}
