/* ==================================================================
   ZERO GRAVITY ADMIN DASHBOARD STYLES
   ================================================================== */
:root {
  --admin-bg: var(--void);
  --admin-panel: var(--panel);
  --admin-panel-2: var(--panel-2);
  --admin-primary: var(--blue);
  --admin-success: #10B981;
  --admin-warning: var(--yellow);
  --admin-danger: var(--red);
  --admin-text: var(--white);
  --admin-muted: var(--muted);
  --admin-border: var(--line-strong);
}

body.admin-body {
  background-color: var(--admin-bg);
  color: var(--admin-text);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--admin-bg); 
}
::-webkit-scrollbar-thumb {
  background: var(--admin-border); 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--admin-muted); 
}

/* --- ADMIN LOGIN SCREEN --- */
.admin-login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.admin-login-card {
  background: var(--admin-panel);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.admin-login-logo {
  display: block;
  height: auto;
  max-height: 80px;
  max-width: 100%;
  margin: 0 auto 24px;
  filter: invert(1) brightness(1.15) contrast(1.15);
  mix-blend-mode: screen;
}

.admin-login-card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 8px;
}

.admin-login-card p {
  color: var(--admin-muted);
  margin-bottom: 32px;
  font-size: 14px;
}

.admin-form-group {
  margin-bottom: 24px;
  text-align: left;
}

.admin-form-group label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--admin-muted);
  margin-bottom: 8px;
}

.admin-input, .admin-select {
  width: 100%;
  background: var(--admin-panel-2);
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.admin-input:focus, .admin-select:focus {
  outline: none;
  border-color: var(--admin-primary);
}

.admin-btn {
  width: 100%;
  background: var(--admin-primary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.admin-btn.inline { width: auto; padding: 10px 20px; }
.admin-btn.small { padding: 8px 16px; font-size: 13px; }

.admin-btn:hover { opacity: 0.9; }
.admin-btn.danger { background: var(--admin-danger); }
.admin-btn.secondary {
  background: var(--admin-panel-2);
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
}

.admin-error-msg {
  color: var(--admin-danger);
  font-size: 13px;
  margin-top: 16px;
  display: none;
}

/* --- DASHBOARD LAYOUT --- */
.admin-dashboard-wrapper { display: none; min-height: 100vh; }

.admin-header {
  background: var(--admin-panel);
  border-bottom: 1px solid var(--admin-border);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header-left { display: flex; align-items: center; gap: 16px; }
.admin-header-logo { height: 64px; filter: invert(1) brightness(1.15) contrast(1.15); mix-blend-mode: screen; }
.admin-header-title { font-family: var(--font-display); font-size: 18px; letter-spacing: 1px; }

.admin-nav {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 0 32px;
  background: var(--admin-panel);
  border-bottom: 1px solid var(--admin-border);
}

.admin-nav-item, .finance-nav-item, .attendance-nav-item {
  color: var(--admin-muted);
  background: none;
  border: none;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: all 0.2s ease;
  border-radius: 8px 8px 0 0;
}

.admin-nav-item:hover, .finance-nav-item:hover, .attendance-nav-item:hover {
  color: var(--admin-text);
  background: rgba(255, 255, 255, 0.04);
}

.admin-nav-item.active, .finance-nav-item.active, .attendance-nav-item.active { 
  color: var(--admin-primary); 
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.admin-nav-item.active::after, .finance-nav-item.active::after, .attendance-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--admin-primary);
  border-radius: 3px 3px 0 0;
}

.admin-main { padding: 32px; max-width: 1400px; margin: 0 auto; }
.admin-section { display: none; animation: fadeIn 0.4s var(--ease); }
.admin-section.active { display: block; }

/* --- OVERVIEW CARDS --- */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.admin-stat-card {
  background: var(--admin-panel);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 24px;
}
.admin-stat-title {
  color: var(--admin-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.admin-stat-value { font-family: var(--font-display); font-size: 36px; color: var(--admin-text); }

/* --- TABLES --- */
.admin-table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-table-title { font-family: var(--font-display); font-size: 20px; }

.admin-table-container {
  background: var(--admin-panel);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  overflow-x: auto;
}

.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th, .admin-table td { padding: 16px 24px; border-bottom: 1px solid var(--admin-border); }
.admin-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--admin-muted); font-weight: 600; background: var(--admin-panel-2); }
.admin-table tbody tr { transition: background 0.2s; cursor: pointer; }
.admin-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.admin-badge { padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.badge-core { background: rgba(59, 130, 246, 0.2); color: #60A5FA; }
.badge-general { background: rgba(16, 185, 129, 0.2); color: #34D399; }
.badge-volunteer { background: rgba(245, 158, 11, 0.2); color: #FBBF24; }

.admin-action-btn { background: none; border: none; color: var(--admin-muted); cursor: pointer; padding: 4px; transition: color 0.2s; }
.admin-action-btn:hover { color: var(--admin-text); }
.admin-action-btn.delete:hover { color: var(--admin-danger); }

/* --- MODALS --- */
.admin-modal-overlay {
  position: fixed; inset: 0; background: rgba(8, 8, 12, 0.8); backdrop-filter: blur(4px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: 0.3s ease;
}
.admin-modal-overlay.active { opacity: 1; visibility: visible; }

.admin-modal {
  background: var(--admin-panel); border: 1px solid var(--admin-border); border-radius: 12px;
  width: 90%; max-width: 500px; padding: 32px; transform: translateY(20px); transition: 0.3s ease;
  max-height: 90vh; overflow-y: auto;
}
.admin-modal-overlay.active .admin-modal { transform: translateY(0); }

.admin-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-modal-title { font-family: var(--font-display); font-size: 20px; }
.admin-modal-close { background: none; border: none; color: var(--admin-muted); cursor: pointer; font-size: 24px; }

/* --- ATTENDANCE MARKING --- */
.attendance-event-selector { margin-bottom: 24px; }
.attendance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 24px; }
.attendance-card {
  background: var(--admin-panel-2); border: 1px solid var(--admin-border); border-radius: 8px; padding: 16px;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: 0.2s;
}
.attendance-card.present { border-color: var(--admin-success); background: rgba(16, 185, 129, 0.1); }
.attendance-card.absent { border-color: var(--admin-danger); background: rgba(239, 68, 68, 0.1); }
.att-status { font-weight: bold; font-size: 12px; text-transform: uppercase; }
.att-status.present { color: var(--admin-success); }
.att-status.absent { color: var(--admin-danger); }

/* --- UTILITIES --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.flex-row { display: flex; gap: 16px; }

.admin-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--admin-border);
  border-top-color: var(--admin-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

.admin-error-msg.visible { display: block; }

/* SPONSOR FILTERS */
.sponsor-filters { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sponsor-filters input, .sponsor-filters select { flex: 1; min-width: 200px; }
.sponsor-download-section { margin-bottom: 24px; display: flex; justify-content: flex-end; }

/* ==================================================================
   ATTENDANCE MODULE — REDESIGNED STYLES
   ================================================================== */

/* --- TODAY'S ATTENDANCE HERO CARD --- */
.att-today-card {
  background: var(--admin-panel);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.att-today-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--admin-primary), var(--admin-success));
}

.att-today-card.no-event::before {
  background: linear-gradient(90deg, var(--admin-border), var(--admin-border));
}

.att-today-card.completed::before {
  background: linear-gradient(90deg, var(--admin-success), #34D399);
}

.att-today-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.att-today-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 6px 0;
  color: var(--admin-text);
}

.att-today-info p {
  color: var(--admin-muted);
  font-size: 14px;
  margin: 0;
}

.att-today-meta {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.att-today-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.att-today-meta-item .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--admin-muted);
}

.att-today-meta-item .value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--admin-text);
}

.att-no-event {
  text-align: center;
  padding: 20px 0;
}

.att-no-event-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.att-no-event h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 8px 0;
  color: var(--admin-muted);
}

.att-no-event p {
  color: var(--admin-muted);
  font-size: 14px;
  margin: 0;
  opacity: 0.7;
}

/* --- STATUS BADGES --- */
.att-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.att-badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.att-badge-completed {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.att-badge-upcoming {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.att-badge-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.att-badge-locked {
  background: rgba(156, 163, 175, 0.1);
  color: #9CA3AF;
  border: 1px solid rgba(156, 163, 175, 0.2);
}

/* --- ATTENDANCE TYPE TOGGLE --- */
.att-type-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  background: var(--admin-panel-2);
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  padding: 4px;
  width: fit-content;
}

.att-type-btn {
  background: none;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--admin-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.att-type-btn:hover {
  color: var(--admin-text);
}

.att-type-btn.active {
  background: var(--admin-primary);
  color: #fff;
  font-weight: 600;
}

/* --- EVENT SELECTOR AREA --- */
.att-event-selector {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.att-event-selector .admin-form-group {
  flex: 1;
  min-width: 240px;
  margin-bottom: 0;
}

.att-date-display {
  background: var(--admin-panel-2);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--admin-text);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.att-date-display .lock-icon {
  color: var(--admin-muted);
  font-size: 14px;
}

/* --- LOCKED STATE --- */
.att-locked-overlay {
  background: var(--admin-panel);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-top: 24px;
}

.att-locked-overlay .lock-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.att-locked-overlay h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 8px 0;
  color: var(--admin-muted);
}

.att-locked-overlay p {
  color: var(--admin-muted);
  font-size: 14px;
  margin: 0;
  opacity: 0.7;
}

/* --- SEARCH AND FILTER BAR --- */
.att-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.att-filter-bar .admin-input,
.att-filter-bar .admin-select {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  font-size: 14px;
}

/* --- ACTION BAR --- */
.att-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.att-action-bar .att-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.att-btn-finalize {
  background: var(--admin-success) !important;
  border-color: var(--admin-success) !important;
}

.att-btn-finalize:hover {
  opacity: 0.9;
}

/* --- TABLE ROW STATES --- */
.bg-present {
  background: rgba(16, 185, 129, 0.06) !important;
}

.bg-absent {
  background: rgba(239, 68, 68, 0.06) !important;
}

/* --- CUMULATIVE STATS --- */
.att-stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.att-stat-mini {
  background: var(--admin-panel);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.att-stat-mini .stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--admin-text);
  margin-bottom: 4px;
}

.att-stat-mini .stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--admin-muted);
}

/* --- HISTORY EVENT LIST --- */
.att-event-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.att-event-row {
  background: var(--admin-panel);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s;
}

.att-event-row:hover {
  border-color: var(--admin-primary);
}

.att-event-row-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.att-event-row-date {
  background: var(--admin-panel-2);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  min-width: 60px;
  flex-shrink: 0;
}

.att-event-row-date .day {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  color: var(--admin-text);
}

.att-event-row-date .month {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--admin-muted);
  margin-top: 2px;
}

.att-event-row-details {
  flex: 1;
  min-width: 0;
}

.att-event-row-details .name {
  font-weight: 600;
  font-size: 15px;
  color: var(--admin-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.att-event-row-details .type {
  font-size: 12px;
  color: var(--admin-muted);
  margin-top: 2px;
}

.att-event-row-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.att-event-row-stats .count {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--admin-text);
}

/* --- EMPTY / LOADING / ERROR STATES --- */
.att-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--admin-muted);
}

.att-empty-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.att-empty-state h4 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 8px 0;
  color: var(--admin-muted);
}

.att-empty-state p {
  font-size: 14px;
  margin: 0;
  opacity: 0.7;
}

.att-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  gap: 16px;
  color: var(--admin-muted);
  font-size: 14px;
}

/* --- CORRECTION MODAL --- */
.att-correction-field {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.att-correction-arrow {
  color: var(--admin-muted);
  font-size: 20px;
  flex-shrink: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .admin-header { padding: 12px 16px; gap: 8px; }
  .admin-header-logo { height: 40px; }
  .admin-header-title { display: none; }
  #adminUserEmail { display: none; }
  .admin-main { padding: 16px; }
  .admin-table-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  .att-today-card { padding: 20px; }
  .att-today-header { flex-direction: column; }
  .att-today-meta { gap: 16px; }

  .att-event-selector { flex-direction: column; }
  .att-event-selector .admin-form-group { min-width: 100%; }

  .att-action-bar { flex-direction: column; align-items: flex-start; }
  .att-action-bar .att-actions { width: 100%; }
  .att-action-bar .att-actions .admin-btn { flex: 1; }

  .att-filter-bar { flex-direction: column; }
  .att-filter-bar .admin-input,
  .att-filter-bar .admin-select { min-width: 100%; }

  .att-type-toggle { width: 100%; }
  .att-type-btn { flex: 1; text-align: center; }

  .att-event-row { flex-direction: column; align-items: flex-start; }
  .att-event-row-stats { width: 100%; justify-content: space-between; }

  .att-stats-overview {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .att-stat-mini {
    padding: 14px;
  }

  .att-stat-mini .stat-value {
    font-size: 22px;
  }
}

/* ==================================================================
   TOAST NOTIFICATION SYSTEM
   ================================================================== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--admin-panel);
  border: 1px solid var(--admin-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  max-width: 400px;
}

.toast-visible {
  transform: translateX(0);
  opacity: 1;
}

.toast-exit {
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-icon {
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.toast-success { border-left: 4px solid var(--admin-success); }
.toast-success .toast-icon { background: rgba(16, 185, 129, 0.2); color: var(--admin-success); }

.toast-error { border-left: 4px solid var(--admin-danger); }
.toast-error .toast-icon { background: rgba(239, 68, 68, 0.2); color: var(--admin-danger); }

.toast-warning { border-left: 4px solid var(--admin-warning); }
.toast-warning .toast-icon { background: rgba(245, 158, 11, 0.2); color: var(--admin-warning); }

.toast-info { border-left: 4px solid var(--admin-primary); }
.toast-info .toast-icon { background: rgba(59, 130, 246, 0.2); color: var(--admin-primary); }

/* ==================================================================
   HAMBURGER MENU
   ================================================================== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--admin-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==================================================================
   ADMIN ACTION BUTTONS (inline table actions)
   ================================================================== */
.admin-action-btn {
  background: none;
  border: none;
  color: var(--admin-muted);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  border-radius: 4px;
}

.admin-action-btn:hover {
  color: var(--admin-text);
  background: rgba(255, 255, 255, 0.05);
}

.admin-action-btn.delete:hover {
  color: var(--admin-danger);
  background: rgba(239, 68, 68, 0.1);
}

/* ==================================================================
   ADMIN BUTTON OUTLINE VARIANT
   ================================================================== */
.admin-btn-outline {
  background: transparent;
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.admin-btn-outline:hover {
  border-color: var(--admin-primary);
  background: rgba(59, 130, 246, 0.08);
}

/* ==================================================================
   MOBILE RESPONSIVE — HAMBURGER & NAV DRAWER
   ================================================================== */
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .admin-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--admin-panel);
    border-right: 1px solid var(--admin-border);
    flex-direction: column;
    gap: 0;
    padding: 72px 0 24px 0;
    z-index: 99;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    overflow-y: auto;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.3);
  }

  .admin-nav.mobile-open {
    transform: translateX(0);
    visibility: visible;
  }

  .admin-nav-item {
    border-radius: 0;
    padding: 14px 24px;
    text-align: left;
    border-bottom: 1px solid var(--admin-border);
  }

  .admin-nav-item.active::after {
    display: none;
  }

  .admin-nav-item.active {
    border-left: 3px solid var(--admin-primary);
  }

  /* Toast on mobile */
  .toast-container {
    top: auto;
    bottom: 20px;
    right: 12px;
    left: 12px;
  }

  .toast {
    max-width: none;
    width: 100%;
  }
}
