/* index.css - Global Stylesheet & Design System for MUSYDA IPM Metro */

:root {
  /* HSL Tailored Colors */
  --bg-primary: #0f172a;       /* Deep slate background */
  --bg-secondary: #1e293b;     /* Darker slate card background */
  --bg-card: rgba(30, 41, 59, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  
  --primary: #10b981;          /* Vibrant Emerald Green */
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.15);
  
  --secondary: #eab308;        /* Golden Yellow */
  --secondary-hover: #ca8a04;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Status Colors */
  --status-pending-bg: rgba(249, 115, 22, 0.15);
  --status-pending-text: #fb923c;
  --status-approved-bg: rgba(16, 185, 129, 0.15);
  --status-approved-text: #34d399;
  --status-rejected-bg: rgba(239, 68, 68, 0.15);
  --status-rejected-text: #f87171;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(234, 179, 8, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Initial Loader */
.initial-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* App Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main.content {
  flex: 1;
  padding: 2rem 1rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Glassmorphism Card styling */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 12px 35px -8px rgba(16, 185, 129, 0.08);
}

/* Typography Gradients */
.gradient-text {
  background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
  color: #0f172a;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--text-secondary);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.2);
}

/* Navigation */
.navbar {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
}

.nav-logo-icon {
  color: var(--primary);
  width: 2rem;
  height: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* File Upload Controls */
.upload-container {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.upload-container:hover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.02);
}

.upload-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.upload-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.upload-highlight {
  color: var(--primary);
  font-weight: 600;
}

.upload-preview {
  margin-top: 1rem;
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  object-fit: contain;
}

/* Badge Status Styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  gap: 0.25rem;
}

.badge-pending {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
}

.badge-approved {
  background: var(--status-approved-bg);
  color: var(--status-approved-text);
}

.badge-rejected {
  background: var(--status-rejected-bg);
  color: var(--status-rejected-text);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Footer */
.footer {
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid var(--border-color);
  padding: 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-social-link:hover {
  color: var(--primary);
}

/* Alert Boxes */
.alert {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* Modal Overlay & Card */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-card {
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Home CSS Details */
.hero-section {
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.feature-icon-wrapper {
  width: 4rem;
  height: 4rem;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Steps / Infographics */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-top: 4rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.steps-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.step-node {
  position: relative;
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.4);
}

.step-num {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: #0f172a;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.step-title {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Dashboard Styles */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  padding: 1.5rem;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.stat-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.table-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-input {
  padding-left: 2.75rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 1.25rem;
  height: 1.25rem;
}

.filter-group {
  display: flex;
  gap: 0.75rem;
}

/* Responsive Table Container */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.data-table th {
  background: rgba(15, 23, 42, 0.4);
  padding: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  background: rgba(30, 41, 59, 0.2);
}

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

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Detail Modal Styles */
.modal-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
}

.detail-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.detail-section-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding-bottom: 0.25rem;
}

.detail-item {
  margin-bottom: 1rem;
}

.detail-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.detail-value {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.detail-image-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  background: rgba(15, 23, 42, 0.5);
  text-align: center;
}

.detail-image {
  max-width: 100%;
  max-height: 250px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

/* Tabs */
.tabs-header {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

/* Login Page Styles */
.login-container {
  max-width: 400px;
  margin: 4rem auto;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .steps-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Navbar */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    z-index: 99;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-link {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
  }
  .nav-link.active::after { display: none; }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .navbar { position: relative; }
  .nav-container { padding: 0.75rem 1rem; }

  /* Content */
  main.content { padding: 1.25rem 0.75rem; }

  /* Hero */
  .hero-section { padding: 2.5rem 0.5rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .hero-actions .btn { width: 100%; max-width: 340px; }
  .hero-badges { gap: 0.5rem; }
  .hero-badge { font-size: 0.8rem; padding: 0.4rem 0.75rem; }

  /* Grids */
  .grid-2, .grid-3, .stats-grid, .detail-grid, .features-grid {
    grid-template-columns: 1fr;
  }

  /* Stats */
  .stats-grid { gap: 0.75rem; margin-bottom: 1.5rem; }
  .stat-value { font-size: 1.5rem; }

  /* Steps */
  .steps-timeline { grid-template-columns: 1fr; }
  .section-title { font-size: 1.5rem; }

  /* Glass Card */
  .glass-card { padding: 1.25rem; }

  /* Table header */
  .table-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .search-wrapper { max-width: 100%; }
  .filter-group { flex-wrap: wrap; }
  .filter-group select { flex: 1; min-width: 120px; }

  /* Table */
  .data-table th, .data-table td { padding: 0.7rem 0.6rem; font-size: 0.85rem; }

  /* Modal — slide up from bottom on mobile */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-card {
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .modal-actions { flex-wrap: wrap; }
  .modal-actions .btn { flex: 1; min-width: 120px; }
  .detail-grid { grid-template-columns: 1fr; }

  /* Tabs */
  .tabs-header { overflow-x: auto; padding-bottom: 2px; }
  .tab-btn { padding: 0.6rem 1rem; font-size: 0.85rem; white-space: nowrap; }

  /* Ballot bar */
  .ballot-selection-bar { padding: 1rem; }
  .ballot-selection-container { flex-direction: column; align-items: stretch; }
  .ballot-selection-container .btn { width: 100%; }

  /* Login */
  .login-container { margin: 2rem auto; padding: 0 0.75rem; }

  /* Footer */
  .footer { margin-top: 2rem; padding: 1.5rem 1rem; }
  .footer-content { flex-direction: column; text-align: center; gap: 1rem; }
  .footer-socials { justify-content: center; flex-direction: column; align-items: center; gap: 0.6rem; }
  .footer-social-link { margin-left: 0 !important; }
}

@keyframes modalSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Extra small: phones under 480px */
@media (max-width: 480px) {
  .hero-subtitle { font-size: 0.95rem; }
  .btn { font-size: 0.9rem; padding: 0.65rem 1.25rem; }
  .glass-card { padding: 1rem; border-radius: var(--radius-md); }
  .modal-card { max-height: 96vh; }
  .stat-card { padding: 1rem; }
  .data-table th, .data-table td { padding: 0.6rem 0.5rem; font-size: 0.8rem; }
  .nav-logo { font-size: 1rem; }
  .section-title { font-size: 1.3rem; }
  .modal-title { font-size: 1.2rem; }
}

/* E-Voting Ballot CSS */
.candidate-ballot-card {
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.candidate-ballot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 25px -5px rgba(16, 185, 129, 0.1);
}

.candidate-ballot-card.selected {
  border-color: var(--primary) !important;
  background: rgba(16, 185, 129, 0.08) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15) !important;
}

.ballot-selection-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 1.25rem 2rem;
  z-index: 90;
  margin-top: 3rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.ballot-selection-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ─── Print & ID Card Utilities ──────────────────────────────────────────── */
.no-print { }

@media print {
  .navbar,
  .footer,
  .no-print {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .content {
    padding: 20px !important;
    max-width: 100% !important;
  }

  .print-area {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    align-items: flex-start !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    padding: 20px !important;
    break-inside: avoid;
  }

  /* Force white background on ID card inner elements for print */
  .print-area > div {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
