/* ==========================================
   PREMIUM SaaS-STYLE E-BOTO ADMIN DASHBOARD
   Inspired by Stripe, Vercel, Linear, Supabase
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Core Brand Colors */
  --admin-primary: #10B981;
  --admin-primary-dark: #047857;
  --admin-primary-light: rgba(16, 185, 129, 0.12);
  --admin-secondary: #334155;
  --admin-accent: #065f46;

  /* Semantic Colors */
  --admin-success: #22C55E;
  --admin-success-bg: rgba(34, 197, 94, 0.1);
  --admin-warning: #F59E0B;
  --admin-warning-bg: rgba(245, 158, 11, 0.1);
  --admin-danger: #EF4444;
  --admin-danger-bg: rgba(239, 68, 68, 0.1);
  --admin-info: #3B82F6;
  --admin-info-bg: rgba(59, 130, 246, 0.1);

  /* Surface & Background */
  --admin-bg: #F8FAFC;
  --admin-surface: #FFFFFF;
  --admin-surface-raised: #FFFFFF;
  --admin-surface-light: rgba(248, 250, 252, 0.8);
  --admin-border: rgba(226, 232, 240, 1);
  --admin-border-hover: rgba(148, 163, 184, 0.5);

  /* Typography */
  --admin-text-primary: #0F172A;
  --admin-text-secondary: #475569;
  --admin-text-muted: #94A3B8;
  --admin-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Elevation & Effects */
  --admin-glass-bg: rgba(255, 255, 255, 0.8);
  --admin-glass-blur: blur(20px);
  --admin-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);
  --admin-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 10px 15px rgba(15, 23, 42, 0.05);
  --admin-shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.08), 0 20px 40px rgba(15, 23, 42, 0.06);
  --admin-shadow-glow: 0 0 0 3px rgba(16, 185, 129, 0.15);

  /* Spacing (8px system) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Border Radius */
  --admin-radius-sm: 8px;
  --admin-radius: 12px;
  --admin-radius-lg: 16px;
  --admin-radius-xl: 20px;
  --admin-radius-2xl: 24px;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}
@keyframes pulseLive {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
@keyframes spinRadar {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes scanLaser {
  0%   { top: 0%; }
  50%  { top: 100%; }
  100% { top: 0%; }
}
@keyframes progressFill {
  from { width: 0; }
}
@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* Override rules when Admin Shell is active */
body.admin-shell {
  font-family: var(--admin-font) !important;
  background: var(--admin-bg) !important;
  color: var(--admin-text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.admin-shell .surface-card,
body.admin-shell .chart-card,
body.admin-shell .result-group,
body.admin-shell .candidate-row,
body.admin-shell .voter-row,
body.admin-shell .audit-row,
body.admin-shell .position-card,
body.admin-shell .table-shell {
  background: var(--admin-surface) !important;
  border: 1px solid var(--admin-border) !important;
  color: var(--admin-text-primary) !important;
  backdrop-filter: var(--admin-glass-blur) !important;
  -webkit-backdrop-filter: var(--admin-glass-blur) !important;
  box-shadow: var(--admin-shadow) !important;
}

body.admin-shell .admin-panel {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--admin-text-primary) !important;
  padding: 0 !important;
}

body.admin-shell .surface-card h4,
body.admin-shell .surface-card h3,
body.admin-shell .result-group strong {
  color: var(--admin-text-primary) !important;
}

body.admin-shell label {
  color: var(--admin-text-secondary) !important;
}

body.admin-shell table {
  background: rgba(0, 0, 0, 0.01) !important;
  border: 1px solid var(--admin-border) !important;
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

body.admin-shell th {
  background: rgba(0, 0, 0, 0.02) !important;
  border-bottom: 1px solid var(--admin-border) !important;
  color: var(--admin-text-secondary) !important;
  text-align: left;
  padding: 0.85rem 1rem;
}

body.admin-shell td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
  color: var(--admin-text-primary) !important;
  padding: 0.85rem 1rem;
}

body.admin-shell tr:hover td {
  background: rgba(0, 0, 0, 0.02) !important;
}

body.admin-shell .table-shell {
  border-color: var(--admin-border) !important;
  overflow: auto;
  border-radius: var(--radius-lg);
}

body.admin-shell input,
body.admin-shell select,
body.admin-shell textarea {
  background: rgba(0, 0, 0, 0.02) !important;
  border: 1px solid var(--admin-border) !important;
  color: var(--admin-text-primary) !important;
  border-radius: 10px !important;
}

body.admin-shell input:focus,
body.admin-shell select:focus,
body.admin-shell textarea:focus {
  border-color: var(--admin-secondary) !important;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2) !important;
  outline: none !important;
}

/* SVG Chart Overrides under Admin Shell */
body.admin-shell .chart-title {
  fill: var(--admin-text-primary) !important;
}
body.admin-shell .chart-label,
body.admin-shell .chart-empty {
  fill: var(--admin-text-secondary) !important;
}
body.admin-shell .chart-value {
  fill: var(--admin-secondary) !important;
}

body.admin-shell .app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.admin-shell .topbar {
  display: none !important;
}

body.admin-shell .app-main {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  flex: 1;
}

body.admin-shell #adminView {
  display: block;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

body.admin-shell .admin-header,
body.admin-shell .dashboard-tabs {
  display: none !important;
}

/* Premium Admin Layout Structure */
.premium-admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: 64px 1fr;
  grid-template-areas: 
    "sidebar topbar"
    "sidebar main";
  min-height: 100vh;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-admin-shell.collapsed {
  grid-template-columns: 80px 1fr;
}

/* New Compact Top Navigation Bar */
.admin-topbar-new {
  grid-area: topbar;
  height: 64px;
  background: var(--admin-glass-bg);
  backdrop-filter: var(--admin-glass-blur);
  -webkit-backdrop-filter: var(--admin-glass-blur);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 40;
  position: sticky;
  top: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1rem;
}

.topbar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 99px;
  background: transparent;
  border: none;
  color: var(--admin-text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topbar-nav-item:hover {
  background: var(--admin-surface-light);
  color: var(--admin-text-primary);
}

.topbar-nav-item.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--admin-primary);
}

.topbar-nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-nav-icon svg {
  width: 100%;
  height: 100%;
}

.sidebar-toggle-btn {
  background: var(--admin-surface-light);
  border: 1px solid var(--admin-border);
  color: var(--admin-text-primary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--admin-border-hover);
  transform: scale(1.05);
}

.election-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 36px;
  padding: 0 1rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-sizing: border-box;
}

.election-status-badge.active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--admin-success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.election-status-badge.upcoming {
  background: rgba(245, 158, 11, 0.12);
  color: var(--admin-warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.election-status-badge.closed {
  background: rgba(239, 68, 68, 0.12);
  color: var(--admin-danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.admin-profile-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-profile-dropdown:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--admin-border-hover);
}

.admin-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--admin-primary), var(--admin-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 0.85rem;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.admin-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.admin-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--admin-text-primary);
  line-height: 1.2;
}

.admin-role {
  font-size: 0.7rem;
  color: var(--admin-text-secondary);
}

.logout-btn-new {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--admin-danger);
  height: 36px;
  padding: 0 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.logout-btn-new:hover {
  background: var(--admin-danger);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Improved Premium Sidebar - Dark Teal Theme */
.admin-sidebar-new {
  grid-area: sidebar;
  background: #004d39; /* Deep premium forest green/teal */
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ffffff;
}

.sidebar-header {
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.75rem;
  overflow: hidden;
}

.sidebar-logo-card {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00A381, #00C2A0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 194, 160, 0.3);
  flex-shrink: 0;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.sidebar-subtitle {
  font-size: 0.72rem;
  font-weight: 500;
  color: #80c2b2;
  white-space: nowrap;
}

/* User Profile card just below header */
.sidebar-profile {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.75rem;
}

.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00825f, #00c29d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.sidebar-profile-info {
  display: flex;
  flex-direction: column;
}

.sidebar-profile-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.sidebar-profile-role {
  font-size: 0.75rem;
  color: #80c2b2;
  margin-top: 2px;
}

/* Scrollable middle container */
.sidebar-scrollable-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

/* Custom Scrollbar for the sidebar */
.sidebar-scrollable-content::-webkit-scrollbar {
  width: 4px;
}
.sidebar-scrollable-content::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-scrollable-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #6da295;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1.25rem 1.25rem 0.4rem 1.25rem;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.5rem;
}

.menu-item {
  width: 100%;
  background: transparent;
  border: none;
  color: #a7d9ce;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  position: relative;
  text-align: left;
}

.menu-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a7d9ce;
  transition: all 0.2s ease;
}

.menu-icon svg {
  width: 100%;
  height: 100%;
}

.menu-label {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Hover and Active Menu Styles */
.menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.menu-item:hover .menu-icon {
  color: #ffffff;
}

.menu-item.active {
  background: #007e5c;
  color: #ffffff;
}

.menu-item.active .menu-icon {
  color: #ffffff;
}

/* Left vertical accent bar on active tab */
.menu-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 4px;
  background-color: #00F6C9;
  border-radius: 4px;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}

.sidebar-logout-btn {
  background: transparent;
  border: none;
  color: #a7d9ce;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.6rem 0.75rem;
  width: 100%;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.sidebar-logout-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* Workspace Main Content Area */
.admin-workspace-new {
  grid-area: main;
  padding: 2rem;
  overflow-y: auto;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* === HERO WELCOME SECTION === */
.admin-hero-section {
  background: linear-gradient(135deg, var(--admin-primary-dark) 0%, #065f46 40%, #0f172a 100%);
  border-radius: var(--admin-radius-2xl);
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease both;
}

.admin-hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.admin-hero-section::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-text {
  flex: 1;
}

.hero-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0.5rem;
}

.hero-greeting {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 99px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.hero-meta-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.hero-live-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239,68,68,0.2);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 99px;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fca5a5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-live-dot {
  width: 7px;
  height: 7px;
  background: #EF4444;
  border-radius: 50%;
  animation: pulseLive 1.5s infinite;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-status-pill.active   { background: rgba(34,197,94,0.2); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.hero-status-pill.upcoming { background: rgba(245,158,11,0.2); color: #fcd34d; border: 1px solid rgba(245,158,11,0.3); }
.hero-status-pill.closed   { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }

/* Legacy welcome styles (kept for fallback) */
.admin-welcome-section {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.welcome-info h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.25rem;
}

.welcome-info p {
  color: var(--admin-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.welcome-stats-summary {
  display: flex;
  gap: 1.5rem;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 0.75rem 1.5rem;
  border-radius: var(--admin-radius-lg);
  box-shadow: var(--admin-shadow-sm);
}

.summary-stat-item {
  display: flex;
  flex-direction: column;
}

.summary-stat-label {
  font-size: 0.7rem;
  color: var(--admin-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.summary-stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-date {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

.hero-illustration {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
}

.hero-illustration svg {
  width: 100%;
  height: 100%;
}

/* Quick Actions */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.quick-action-btn:hover {
  transform: translateY(-2px);
}

.quick-action-btn.light {
  background: #ffffff;
  color: #105e46;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.quick-action-btn.dark {
  background: #105e46;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(16, 94, 70, 0.2);
}

.quick-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-icon-wrapper.light {
  background: rgba(16, 185, 129, 0.15);
  color: #105e46;
}

.quick-icon-wrapper.dark {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Stats 2x2 Grid */
.admin-stats-grid-new {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card-new {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.03);
  transition: transform 0.2s ease;
}

.stat-card-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.stat-icon-container {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--admin-text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--admin-text-secondary);
}

/* Specific Stat Icons */
.stat-card-new.registered .stat-icon-container { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }
.stat-card-new.verified .stat-icon-container { background: rgba(59, 130, 246, 0.12); color: #3B82F6; }
.stat-card-new.votes .stat-icon-container { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.stat-card-new.candidates .stat-icon-container { background: rgba(139, 92, 246, 0.12); color: #8B5CF6; }

.stat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.stat-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.stat-trend {
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
}

.stat-trend.up   { background: var(--admin-success-bg); color: var(--admin-success); }
.stat-trend.down { background: var(--admin-danger-bg);  color: var(--admin-danger); }
.stat-trend.neutral { background: var(--admin-info-bg); color: var(--admin-info); }

.stat-updated {
  font-size: 0.7rem;
  color: var(--admin-text-muted);
}

/* Specific Card Accent Colors */
.stat-card-new.registered::before { background: linear-gradient(90deg, #10B981, #34D399); }
.stat-card-new.registered .stat-icon-wrapper { background: rgba(16,185,129,0.1); color: #059669; }

.stat-card-new.verified::before { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.stat-card-new.verified .stat-icon-wrapper { background: rgba(59,130,246,0.1); color: #3B82F6; }

.stat-card-new.votes::before { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }
.stat-card-new.votes .stat-icon-wrapper { background: rgba(139,92,246,0.1); color: #8B5CF6; }

.stat-card-new.turnout::before { background: linear-gradient(90deg, #F59E0B, #FCD34D); }
.stat-card-new.turnout .stat-icon-wrapper { background: rgba(245,158,11,0.1); color: #D97706; }

.stat-card-new.candidates::before { background: linear-gradient(90deg, #EF4444, #FC8181); }
.stat-card-new.candidates .stat-icon-wrapper { background: rgba(239,68,68,0.1); color: #EF4444; }

.stat-card-new.security::before { background: linear-gradient(90deg, #0EA5E9, #38BDF8); }
.stat-card-new.security .stat-icon-wrapper { background: rgba(14,165,233,0.1); color: #0EA5E9; }

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--admin-text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
  animation: countUp 0.4s ease;
}

.stat-subtitle {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--admin-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

/* Real-Time Election Monitoring Section */
.realtime-monitoring-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: var(--admin-glass-blur);
  box-shadow: var(--admin-shadow);
}

.monitoring-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.monitoring-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.live-indicator-pulsing {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--admin-danger);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.monitoring-title h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0;
}

.monitoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.monitoring-stat-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  padding: 1.25rem;
  text-align: center;
}

.monitoring-stat-label {
  font-size: 0.8rem;
  color: var(--admin-text-secondary);
  margin-bottom: 0.35rem;
}

.monitoring-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--admin-text-primary);
}

.monitoring-progress-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-border);
  padding: 1.25rem;
  border-radius: var(--admin-radius-lg);
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--admin-text-secondary);
}

.premium-progress-bar {
  height: 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--admin-border);
}

.premium-progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--admin-primary), var(--admin-secondary), var(--admin-accent));
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
  transition: width 0.5s ease-out;
}

/* Charts and Analytics Section */
.charts-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.chart-card-new {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-xl);
  padding: 1.75rem;
  backdrop-filter: var(--admin-glass-blur);
  box-shadow: var(--admin-shadow);
  display: flex;
  flex-direction: column;
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.chart-card-header h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0;
}

.chart-container-new {
  position: relative;
  height: 250px;
  width: 100%;
}

/* Lower Section Grid: Activity and Biometrics */
.lower-sections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Recent Activity Panel */
.recent-activity-panel-new {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-xl);
  padding: 1.75rem;
  backdrop-filter: var(--admin-glass-blur);
  box-shadow: var(--admin-shadow);
}

.activity-list-new {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.activity-item-new {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--admin-border);
  transition: all 0.2s ease;
}

.activity-item-new:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--admin-border-hover);
}

.activity-dot-pulsing {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.activity-dot-pulsing.voter {
  background: var(--admin-primary);
  box-shadow: 0 0 6px var(--admin-primary);
}

.activity-dot-pulsing.candidate {
  background: var(--admin-warning);
  box-shadow: 0 0 6px var(--admin-warning);
}

.activity-dot-pulsing.vote {
  background: var(--admin-success);
  box-shadow: 0 0 6px var(--admin-success);
}

.activity-dot-pulsing.security {
  background: var(--admin-accent);
  box-shadow: 0 0 6px var(--admin-accent);
}

.activity-item-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.activity-item-text {
  font-size: 0.85rem;
  color: var(--admin-text-primary);
}

.activity-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  margin-top: 0.25rem;
}

/* Facial Verification Monitoring Card */
.facial-verification-monitoring-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-xl);
  padding: 1.75rem;
  backdrop-filter: var(--admin-glass-blur);
  box-shadow: var(--admin-shadow);
  display: flex;
  flex-direction: column;
}

.facial-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.facial-stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  padding: 0.85rem;
  text-align: center;
}

.facial-stat-box.success {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.03);
}

.facial-stat-box.fail {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.03);
}

.facial-stat-box.suspicious {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.03);
}

.facial-box-val {
  font-size: 1.5rem;
  font-weight: 800;
}

.facial-stat-box.success .facial-box-val { color: var(--admin-success); }
.facial-stat-box.fail .facial-box-val { color: var(--admin-danger); }
.facial-stat-box.suspicious .facial-box-val { color: var(--admin-warning); }

.facial-box-label {
  font-size: 0.7rem;
  color: var(--admin-text-secondary);
  font-weight: 700;
}

.facial-preview-emulator {
  flex: 1;
  background: #060913;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.biometric-radar-scan {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, rgba(16, 185, 129, 0.08) 1.5px, transparent 1.5px),
    linear-gradient(rgba(16, 185, 129, 0.04) 1px, transparent 1px);
  background-size: 16px 16px, 16px 16px;
  pointer-events: none;
}

.biometric-scanner-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--admin-secondary);
  box-shadow: 0 0 10px var(--admin-secondary);
  animation: scanLaser 3s ease-in-out infinite;
}

@keyframes scanLaser {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.biometric-node-mesh {
  position: relative;
  width: 100px;
  height: 100px;
}

.biometric-node-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(6, 185, 212, 0.5);
  border-radius: 50%;
  animation: spinRadar 10s linear infinite;
}

.biometric-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--admin-secondary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--admin-secondary);
}

.biometric-dot.d1 { top: 15%; left: 50%; transform: translateX(-50%); }
.biometric-dot.d2 { bottom: 15%; left: 50%; transform: translateX(-50%); }
.biometric-dot.d3 { top: 50%; left: 15%; transform: translateY(-50%); }
.biometric-dot.d4 { top: 50%; left: 85%; transform: translateY(-50%); }
.biometric-dot.d5 { top: 35%; left: 35%; }
.biometric-dot.d6 { top: 35%; left: 65%; }

/* Enterprise Glassmorphic Tables & UI Sheets */
.premium-card-sheet {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-xl);
  padding: 2rem;
  backdrop-filter: var(--admin-glass-blur);
  box-shadow: var(--admin-shadow);
  margin-bottom: 2rem;
}

.premium-card-sheet h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.glass-table-wrapper {
  overflow-x: auto;
  border-radius: var(--admin-radius-lg);
  border: 1px solid var(--admin-border);
}

.glass-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.glass-table th {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--admin-border);
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--admin-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.glass-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  color: var(--admin-text-primary);
  vertical-align: middle;
}

.glass-table tr:last-child td {
  border-bottom: none;
}

.glass-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

/* === PREMIUM INPUTS === */
.glass-input-new {
  background: var(--admin-surface) !important;
  border: 1.5px solid var(--admin-border) !important;
  color: var(--admin-text-primary) !important;
  border-radius: var(--admin-radius-sm) !important;
  padding: 0.65rem 1rem !important;
  font-size: 0.9rem !important;
  font-family: var(--admin-font) !important;
  font-weight: 500 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  width: 100%;
  min-height: 44px;
}

.glass-input-new:focus {
  border-color: var(--admin-primary) !important;
  box-shadow: var(--admin-shadow-glow) !important;
  outline: none !important;
}

.glass-input-new::placeholder {
  color: var(--admin-text-muted) !important;
}

/* === PREMIUM BUTTONS === */
.glass-button-new {
  border-radius: var(--admin-radius-sm) !important;
  font-weight: 600 !important;
  font-family: var(--admin-font) !important;
  padding: 0.6rem 1.25rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  font-size: 0.875rem !important;
  border: 1.5px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1) !important;
  position: relative !important;
  overflow: hidden !important;
  min-height: 44px !important;
  letter-spacing: -0.01em !important;
}

/* Ripple effect on button click */
.glass-button-new::after {
  content: '' !important;
  position: absolute !important;
  width: 60px !important;
  height: 60px !important;
  background: rgba(255,255,255,0.3) !important;
  border-radius: 50% !important;
  transform: scale(0) !important;
  opacity: 1 !important;
  pointer-events: none !important;
  transition: transform 0.4s ease, opacity 0.4s ease !important;
}

.glass-button-new:active::after {
  transform: scale(6) !important;
  opacity: 0 !important;
}

.glass-button-new.primary {
  background: var(--admin-primary) !important;
  color: white !important;
  border-color: var(--admin-primary) !important;
  box-shadow: 0 1px 2px rgba(16,185,129,0.2), 0 4px 12px rgba(16,185,129,0.15) !important;
}

.glass-button-new.primary:hover {
  background: var(--admin-primary-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(16,185,129,0.35) !important;
}

.glass-button-new.secondary {
  background: var(--admin-surface) !important;
  border-color: var(--admin-border) !important;
  color: var(--admin-text-secondary) !important;
}

.glass-button-new.secondary:hover {
  background: var(--admin-surface-light) !important;
  border-color: var(--admin-border-hover) !important;
  color: var(--admin-text-primary) !important;
}

.glass-button-new.danger {
  background: var(--admin-surface) !important;
  border-color: rgba(239,68,68,0.3) !important;
  color: var(--admin-danger) !important;
}

.glass-button-new.danger:hover {
  background: var(--admin-danger) !important;
  border-color: var(--admin-danger) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(239,68,68,0.25) !important;
}

/* === STATUS BADGES === */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-badge.primary  { background: rgba(16,185,129,0.12); color: var(--admin-primary-dark); border: 1px solid rgba(16,185,129,0.2); }
.admin-badge.success  { background: var(--admin-success-bg); color: var(--admin-success); border: 1px solid rgba(34,197,94,0.2); }
.admin-badge.warning  { background: var(--admin-warning-bg); color: var(--admin-warning); border: 1px solid rgba(245,158,11,0.2); }
.admin-badge.danger   { background: var(--admin-danger-bg);  color: var(--admin-danger);  border: 1px solid rgba(239,68,68,0.2); }
.admin-badge.info     { background: var(--admin-info-bg);    color: var(--admin-info);    border: 1px solid rgba(59,130,246,0.2); }

/* === TABLE IMPROVEMENTS === */
.glass-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.glass-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.glass-table th {
  background: #F8FAFC;
  border-bottom: 1.5px solid var(--admin-border);
  padding: 0.9rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.glass-table th:first-child { border-radius: var(--admin-radius-sm) 0 0 0; }
.glass-table th:last-child  { border-radius: 0 var(--admin-radius-sm) 0 0; }

.glass-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--admin-border);
  font-size: 0.875rem;
  color: var(--admin-text-primary);
  vertical-align: middle;
  transition: background 0.15s ease;
}

.glass-table tr:last-child td { border-bottom: none; }

/* Zebra rows */
.glass-table tbody tr:nth-child(even) td {
  background: rgba(248,250,252,0.5);
}

.glass-table tbody tr:hover td {
  background: rgba(16,185,129,0.04);
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 1280px) {
  .admin-stats-grid-new {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .premium-admin-shell {
    grid-template-columns: 80px 1fr;
  }
  .sidebar-title,
  .menu-label,
  .sidebar-profile-info,
  .sidebar-section-label,
  .sidebar-logout-btn span,
  .sidebar-footer-text {
    display: none !important;
  }
  .menu-item {
    justify-content: center;
    padding: 0.8rem;
  }
  .sidebar-header {
    justify-content: center;
    padding: 0;
  }
  .sidebar-profile {
    padding: 1.25rem 0.5rem;
    justify-content: center;
  }
  .sidebar-logout-btn {
    justify-content: center;
    padding: 0.6rem 0;
  }
  .sidebar-footer {
    align-items: center;
  }
  .admin-info {
    display: none !important;
  }
  .admin-profile-dropdown {
    padding: 0.3rem !important;
    border-radius: 50% !important;
  }
  .logout-btn-new span {
    display: none !important;
  }
  .logout-btn-new {
    padding: 0 !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .admin-stats-grid-new {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Collapsed Sidebar overrides (Only applies to Desktop viewports) */
@media (min-width: 1025px) {
  .premium-admin-shell.collapsed .sidebar-title,
  .premium-admin-shell.collapsed .menu-label,
  .premium-admin-shell.collapsed .sidebar-profile-info,
  .premium-admin-shell.collapsed .sidebar-section-label,
  .premium-admin-shell.collapsed .sidebar-logout-btn span,
  .premium-admin-shell.collapsed .sidebar-footer-text {
    display: none !important;
  }

  .premium-admin-shell.collapsed .menu-item {
    justify-content: center;
    padding: 0.8rem;
  }

  .premium-admin-shell.collapsed .sidebar-header {
    justify-content: center;
    padding: 0;
  }

  .premium-admin-shell.collapsed .sidebar-profile {
    padding: 1.25rem 0.5rem;
    justify-content: center;
  }

  .premium-admin-shell.collapsed .sidebar-logout-btn {
    justify-content: center;
    padding: 0.6rem 0;
  }

  .premium-admin-shell.collapsed .sidebar-footer {
    align-items: center;
  }
}

@media (max-width: 1024px) {
  .premium-admin-shell {
    grid-template-columns: 1fr !important;
    grid-template-rows: 64px 1fr !important;
    grid-template-areas: 
      "topbar"
      "main" !important;
  }
  


  .admin-topbar-new {
    padding: 0 1rem !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #FFFFFF !important;
  }

  .election-status-badge {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 0.85rem !important;
    box-sizing: border-box !important;
  }

  .admin-info {
    display: none !important;
  }

  .admin-profile-dropdown {
    display: none !important;
  }

  .logout-btn-new span {
    display: none !important;
  }

  .logout-btn-new {
    padding: 0 !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .admin-workspace-new {
    padding: 1rem !important;
  }
  
  .admin-stats-grid-new {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .stat-card-new {
    padding: 1rem !important;
    min-height: 120px !important;
  }

  .stat-value {
    font-size: 1.75rem !important;
  }

  .stat-icon-wrapper {
    width: 38px !important;
    height: 38px !important;
  }

  .stat-icon-wrapper svg {
    width: 18px !important;
    height: 18px !important;
  }

  .admin-hero-section {
    padding: 1.5rem !important;
    border-radius: var(--admin-radius-lg) !important;
  }

  .hero-title {
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
  }

  .hero-meta {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
  }

  .hero-meta-item,
  .hero-status-pill {
    font-size: 0.72rem !important;
    padding: 0.3rem 0.65rem !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .hero-live-badge {
    padding: 0.3rem 0.65rem !important;
    font-size: 0.68rem !important;
    margin: 0 !important;
  }

  .realtime-monitoring-card {
    padding: 1.25rem !important;
  }

  .monitoring-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }

  .monitoring-stat-value {
    font-size: 1.35rem !important;
  }

  .charts-grid-new {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .chart-card-new {
    padding: 1.25rem !important;
  }

  .premium-card-sheet {
    padding: 1.25rem !important;
  }

  .admin-welcome-section {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
  }

  .welcome-info h2 {
    font-size: 1.35rem !important;
  }

  .welcome-stats-summary {
    width: 100% !important;
    padding: 0.6rem 1rem !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
  }

  .lower-sections-grid {
    grid-template-columns: 1fr !important;
  }

  .glass-table-wrapper {
    -webkit-overflow-scrolling: touch;
  }

  /* Settings and other 2-column flex or grid layouts override for mobile */
  .premium-card-sheet > div[style*="display: grid; grid-template-columns: 1fr 1.5fr;"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Touch-friendly buttons */
  .glass-button-new {
    min-height: 44px !important;
    font-size: 0.9rem !important;
  }
}
@media print { body.admin-shell .admin-sidebar-new, body.admin-shell .admin-topbar-new, body.admin-shell .results-toolbar, body.admin-shell .toast-region, body.admin-shell button { display: none !important; } body.admin-shell .admin-workspace-new { padding: 0; margin: 0; } body.admin-shell .premium-admin-shell { display: block; } }

/* ============================================================
   OFFICER HORIZONTAL NAV BAR & NO SIDEBAR STYLES
   ============================================================ */
.premium-admin-shell.no-sidebar {
  grid-template-columns: 1fr !important;
  grid-template-rows: 64px 1fr !important;
  grid-template-areas: 
    "topbar"
    "main" !important;
}

.premium-admin-shell.no-sidebar .admin-workspace-new {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.officer-topbar {
  padding: 0 2rem;
}

.officer-topbar .topbar-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand .brand-check {
  background: var(--admin-primary);
  color: white;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.8rem;
}

.nav-brand .brand-name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--admin-text-primary);
}

.officer-horizontal-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-item-horizontal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: var(--admin-text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.menu-item-horizontal .menu-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.menu-item-horizontal:hover {
  background: var(--admin-surface-light);
  color: var(--admin-primary);
}

.menu-item-horizontal.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--admin-primary);
}

/* Helper Classes for responsive navigation */
.mobile-only-nav {
  display: none !important;
}
.desktop-only-nav {
  display: flex !important;
}

/* ============================================================
   MOBILE & TABLET RESPONSIVENESS
   ============================================================ */
@media (max-width: 1024px) {
  /* Prevent bottom nav from covering content */
  body.admin-shell {
    padding-bottom: 90px !important;
  }

  .premium-admin-shell {
    grid-template-columns: 1fr !important;
    grid-template-areas: 
      "topbar"
      "main" !important;
  }

  /* Hide Desktop Nav on Mobile */
  .topbar-primary-nav {
    display: none !important;
  }

  .mobile-only-nav {
    display: flex !important;
  }
  .desktop-only-nav {
    display: none !important;
  }

  /* Proper Off-Canvas Sidebar */
  .admin-sidebar-new {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: -300px !important;
    width: 260px !important;
    max-width: 80vw !important;
    height: 100vh !important;
    background: #004d39 !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 0 !important;
    z-index: 9999 !important;
    transition: left 0.3s ease !important;
    transform: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  
  .premium-admin-shell.collapsed .admin-sidebar-new {
    left: 0 !important;
    transform: none !important;
  }

  .premium-admin-shell.collapsed .sidebar-overlay {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Mobile bottom navigation bar (if rendered in JS) */
  .bottom-mobile-nav {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 32px) !important;
    max-width: 400px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.15) !important;
    border-radius: 24px !important;
    padding: 8px !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    z-index: 9995 !important;
    gap: 0 !important;
  }

  .bottom-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 8px 4px !important;
    border-radius: 16px !important;
    background: transparent !important;
    color: var(--admin-text-secondary) !important;
    flex: 1 !important;
    min-height: 48px !important; 
    border: none !important;
    cursor: pointer;
    transition: all 0.25s ease;
  }

  .bottom-nav-icon {
    width: 24px !important;
    height: 24px !important;
    color: inherit !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .bottom-nav-icon svg {
    width: 100% !important;
    height: 100% !important;
  }

  .bottom-nav-label {
    display: block !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    color: inherit !important;
  }

  .bottom-nav-item.active {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--admin-primary) !important;
  }
  
  .admin-workspace-new {
    padding: 1rem !important;
  }

  /* Make horizontal nav a floating bar at the bottom center of the screen */
  .officer-horizontal-nav {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 400px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12) !important;
    border-radius: 24px !important;
    padding: 8px 12px !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    z-index: 9999 !important;
    gap: 0 !important;
  }

  .menu-item-horizontal {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 8px 12px !important;
    border-radius: 16px !important;
    background: transparent !important;
    color: var(--admin-text-secondary) !important;
    flex: 1 !important;
    max-width: 80px !important;
  }

  .menu-item-horizontal .menu-icon {
    width: 24px !important;
    height: 24px !important;
    color: inherit !important;
  }

  .menu-item-horizontal .menu-label {
    display: block !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: capitalize !important;
    letter-spacing: normal !important;
  }

  /* Active state has a soft green pill background */
  .menu-item-horizontal.active {
    background: rgba(4, 120, 87, 0.12) !important;
    color: var(--admin-primary) !important;
  }
}

/* Elections Grid Layout styling */
.elections-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
}

.elections-grid-layout > div {
  min-width: 0;
}

@media (max-width: 1200px) {
  .elections-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}
