/* ===== GLOBAL STYLES ===== */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0b1c2c;
  color: #f0f0f0;
  background: linear-gradient(to bottom, #000000, #0b1c2c);
}

/* ===== NAVIGATION ===== */
.navbar {
  background-color: #000;
  padding: 1rem 2rem;
  border-bottom: 1px solid gold;
}

.navbar-nav .nav-link {
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: 600;
  margin-left: 2rem;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: #ffd700 !important;
}

/* ===== MAIN IMAGE & FOOTER ===== */
.image-section {
  text-align: center;
  margin-top: 3rem;
}

.main-image {
  max-width: 90%;
  height: auto;
  border: 2px solid gold;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.footer {
  background-color: #0b1c2c;
  color: #bbb;
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid gold;
}

/* ===== VOTING PAGE STYLES ===== */
.vote-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.vote-title {
  font-size: 2rem;
  font-family: 'Cinzel', serif;
  color: gold;
  text-align: center;
  margin-bottom: 1rem;
}

.vote-subtext {
  text-align: center;
  margin-bottom: 2rem;
  color: #ccc;
}

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

.vote-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #ffd700;
}

/* Form Fields */
.vote-form select,
.vote-form input[type="text"],
.vote-form input[type="email"],
.choices__inner,
.choices__input,
.choices__list--dropdown {
  background-color: #121a2b !important;
  color: #fff !important;
  border: 1px solid #444 !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  padding: 0.75rem !important;
  width: 100% !important;
}

.vote-form select:hover,
.vote-form input:hover {
  border-color: #ffd700 !important;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.3) !important;
}

/* Choices.js Dropdown Styling */
.choices__item--selectable {
  background-color: #121a2b !important;
  color: #fff !important;
}

.choices__item--selectable:hover {
  background-color: #1a2332 !important;
  color: #ffd700 !important;
}

.choices__placeholder {
  color: #999 !important;
}

/* Submit Button */
.submit-btn {
  background: linear-gradient(90deg, #ffd700, #e6c200);
  color: #181d2a;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: filter 0.12s;
  width: 200px;
  height: 50px;
  display: block;
  margin: 3rem auto 0 auto;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.16);
  text-align: center;
  line-height: 50px;
}

.submit-btn:hover {
  filter: brightness(1.08);
}

/* Back Link */
.back-link {
  text-align: center;
  margin-top: 2rem;
}

.back-link a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.back-link a:hover {
  color: #e6c200;
  text-decoration: none;
}

/* ===== ERROR MESSAGES - CLEAN STYLED BOXES ===== */
/* ===== ERROR MESSAGES - POLISHED STYLING ===== */
/* Remove all default error styling */
.errorlist,
.form-error {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Hide any empty or unwanted error elements */
.errorlist:empty,
.form-error:empty {
  display: none !important;
}

/* Style the main form-level errors (like duplicate players) */
.errorlist li {
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff8a8a;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  margin: 0.8rem auto;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
  display: block;
  max-width: 350px;
  border-left: 3px solid #ff6b6b;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.1);
}

.errorlist.nonfield {
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Style field-specific errors (smaller and subtler) */
.form-error {
  background: rgba(255, 107, 107, 0.06);
  border: 1px solid rgba(255, 107, 107, 0.25);
  color: #ff9999;
  font-size: 0.8rem;
  margin: 0.4rem auto;
  font-weight: 500;
  display: block;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-align: center;
  max-width: 280px;
  border-left: 2px solid #ff8a8a;
  box-shadow: 0 1px 4px rgba(255, 107, 107, 0.08);
}


/* =================================================================== */

/* ===== SUCCESS PAGE STYLES ===== */
.success-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 3rem 2rem;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  text-align: center;
}

.success-icon {
  margin-bottom: 2rem;
}

.checkmark {
  background: linear-gradient(90deg, #ffd700, #e6c200);
  color: #181d2a;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0 auto;
  animation: checkmarkPop 0.6s ease-out;
}

@keyframes checkmarkPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.success-title {
  color: #ffd700;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.success-subtitle {
  color: #ccc;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.email-info {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.email-info h3 {
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.email-info p {
  color: #eee;
  margin-bottom: 0.5rem;
}

.tips {
  margin: 1.5rem 0;
}

.tips small {
  color: #999;
}

.success-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.success-buttons .btn {
  opacity: 1 !important;
  filter: none !important;
  font-size: 1rem;
  font-weight: 600;
  min-width: 150px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.success-buttons .gold-btn {
  background: linear-gradient(90deg, #ffd700, #e6c200) !important;
  color: #181d2a !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.16);
}

.success-buttons .gold-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.success-buttons .outline-btn {
  border: 2px solid #ffd700 !important;
  color: #ffd700 !important;
  background: transparent !important;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.08);
}

.success-buttons .outline-btn:hover {
  background: #ffd700 !important;
  color: #181d2a !important;
  transform: translateY(-1px);
}

/* Override any Bootstrap dimming */
.success-buttons .btn:link,
.success-buttons .btn:visited,
.success-buttons .btn:active {
  opacity: 1 !important;
  filter: none !important;
}
/* ===== ALREADY VOTED PAGE ===== */
.already-voted-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 3rem 2rem;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  text-align: center;
}

.voted-icon {
  margin-bottom: 2rem;
}

.ballot-box {
  font-size: 4rem;
  margin: 0 auto;
}

.already-voted-title {
  color: #ffd700;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.already-voted-subtitle {
  color: #ccc;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.vote-info {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  color: #eee;
}

.already-voted-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.already-voted-buttons .btn {
  opacity: 1 !important;
  filter: none !important;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 130px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  padding: 0.4rem 1rem;
}

.already-voted-buttons .gold-btn {
  background: linear-gradient(90deg, #ffd700, #e6c200) !important;
  color: #181d2a !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.16);
}

.already-voted-buttons .gold-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.already-voted-buttons .outline-btn {
  border: 2px solid #ffd700 !important;
  color: #ffd700 !important;
  background: transparent !important;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.08);
}

.already-voted-buttons .outline-btn:hover {
  background: #ffd700 !important;
  color: #181d2a !important;
  transform: translateY(-1px);
}

.already-voted-buttons .btn:link,
.already-voted-buttons .btn:visited,
.already-voted-buttons .btn:active {
  opacity: 1 !important;
  filter: none !important;
}


/* ===== RESULTS PAGE STYLES ===== */
.results-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 2rem;
}


.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}


.results-title {
  font-size: 2.2rem;
  color: #ffd700;
  font-weight: 600;
  margin: 0;
}


.refresh-btn {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}


.refresh-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: scale(1.05);
}


/* Vote Statistics */
.vote-stats {
  text-align: left;
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}


.vote-count {
  color: #ffd700;
  font-weight: 600;
  font-size: 1rem;
  animation: pulse 3s infinite;
}



.last-updated {
  color: #999;
  font-size: 0.8rem;
  margin-left: 1rem;
}

/* Results Table */
.results-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #121a2b;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.results-table th {
  background: linear-gradient(90deg, #ffd700, #e6c200);
  color: #181d2a;
  font-weight: 600;
  padding: 1.2rem;
  text-align: left;
  font-size: 1.1rem;
}

.results-table th:first-child,
.results-table th:last-child {
  text-align: center;
}

.results-table td {
  padding: 1.2rem;
  border-bottom: 1px solid #444;
  font-size: 1rem;
  color: #fff;
}

.results-table td:first-child,
.results-table td:last-child {
  text-align: center;
  font-weight: 600;
}

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

.results-table tbody tr:hover {
  background-color: rgba(255, 215, 0, 0.05);
}

/* Top 3 Ranks - Combined */
.results-table .rank-1,
.results-table .rank-2,
.results-table .rank-3 {
  font-weight: 600;
}

.results-table .rank-1 td { color: #ffd700; text-shadow: 0 0 8px rgba(255, 215, 0, 0.4); }
.results-table .rank-2 td { color: #c0c0c0; text-shadow: 0 0 8px rgba(192, 192, 192, 0.4); }
.results-table .rank-3 td { color: #cd7f32; text-shadow: 0 0 8px rgba(205, 127, 50, 0.4); }

.results-table .rank-1 { 
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.03));
  border-left: 3px solid #ffd700;
}
.results-table .rank-2 { 
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.08), rgba(192, 192, 192, 0.03));
  border-left: 3px solid #c0c0c0;
}
.results-table .rank-3 { 
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.08), rgba(205, 127, 50, 0.03));
  border-left: 3px solid #cd7f32;
}

.results-table .rank-1:hover,
.results-table .rank-2:hover,
.results-table .rank-3:hover {
  transform: translateX(2px);
}

/* Top 3 Separator */
.separator-row {
  background: none !important;
  border: none !important;
}

.separator-row td {
  padding: 1rem 0 !important;
  border: none !important;
}

.top3-separator {
  text-align: center;
  color: #ffd700;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.7;
  position: relative;
}

.top3-separator::before,
.top3-separator::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: linear-gradient(to right, transparent, #ffd700, transparent);
}

.top3-separator::before { left: 0; }
.top3-separator::after { right: 0; }

/* Action Buttons - Uses existing .btn, .gold-btn, .outline-btn classes */
.results-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.results-actions .btn {
  opacity: 1 !important;
  filter: none !important;
  font-size: 1rem;
  font-weight: 600;
  min-width: 160px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.results-actions .gold-btn {
  background: linear-gradient(90deg, #ffd700, #e6c200) !important;
  color: #181d2a !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.16);
}

.results-actions .gold-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.results-actions .outline-btn {
  border: 2px solid #ffd700 !important;
  color: #ffd700 !important;
  background: transparent !important;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.08);
}

.results-actions .outline-btn:hover {
  background: #ffd700 !important;
  color: #181d2a !important;
  transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .results-page { padding: 0 1rem; }
  .results-header { flex-direction: column; gap: 1rem; text-align: center; }
  .results-table th, .results-table td { padding: 0.8rem 0.5rem; font-size: 0.9rem; }
  .results-actions { flex-direction: column; align-items: center; }
  .results-actions .btn { width: 100%; max-width: 280px; }
}


/* ===== DETAIL PAGES STYLES ===== */
/* ===== CANDIDATE DETAIL STYLES ===== */
.candidate-detail-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.candidate-header {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
  padding: 3rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.candidate-image {
  width: 200px;
  height: 200px;
  border-radius: 15px;
  object-fit: cover;
  border: 3px solid #ffd700;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.candidate-image-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #ffd700;
  border: 3px solid #ffd700;
}

.candidate-name {
  color: #ffd700;
  font-size: 3rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.candidate-year {
  color: #ccc;
  font-size: 1.2rem;
  margin: 0 0 1.5rem 0;
  font-weight: 400;
}

.candidate-details {
  margin-bottom: 2rem;
}

.detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.detail-icon.club-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-right: 0.8rem;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.detail-emoji {
  font-size: 1.2rem;
  margin-right: 0.8rem;
  width: 20px;
  text-align: center;
}

.detail-text {
  color: #eee;
  font-size: 1.1rem;
  font-weight: 500;
}

.candidate-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  justify-content: flex-start;
}

.candidate-actions .btn {
  min-width: 200px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.candidate-actions .gold-btn {
  background: linear-gradient(90deg, #ffd700, #e6c200) !important;
  color: #181d2a !important;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.16);
}

.candidate-actions .gold-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
  color: #181d2a !important;
  text-decoration: none !important;
}

.candidate-actions .outline-btn {
  border: 2px solid #ffd700 !important;
  color: #ffd700 !important;
  background: transparent !important;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.08);
}

.candidate-actions .outline-btn:hover {
  background: #ffd700 !important;
  color: #181d2a !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
  text-decoration: none !important;
}

.candidate-actions .btn:link,
.candidate-actions .btn:visited,
.candidate-actions .btn:active,
.candidate-actions .btn:focus {
  opacity: 1 !important;
  filter: none !important;
  text-decoration: none !important;
}

.stats-section,
.voting-section {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 15px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.stats-section h3,
.voting-section h3 {
  color: #ffd700;
  margin-bottom: 2rem;
  font-size: 1.6rem;
  text-align: center;
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.03));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.stat-card.highlight {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
  border-color: #ffd700;
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: #ccc;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.stat-extra {
  display: block;
  font-size: 0.75rem;
  color: #999;
  font-style: italic;
}

.voting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}

.vote-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease;
}

.vote-card:hover {
  transform: translateY(-2px);
}

.vote-card.first { border-color: #ffd700; }
.vote-card.second { border-color: #c0c0c0; }
.vote-card.third { border-color: #cd7f32; }
.vote-card.total { 
  border-color: #ffd700; 
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
}

.vote-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.vote-card.first .vote-number { color: #ffd700; }
.vote-card.second .vote-number { color: #c0c0c0; }
.vote-card.third .vote-number { color: #cd7f32; }
.vote-card.total .vote-number { color: #ffd700; }

.vote-label {
  display: block;
  font-size: 0.9rem;
  color: #ccc;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.vote-points {
  display: block;
  font-size: 0.8rem;
  color: #999;
}

.info-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.info-card {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.info-card h4 {
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.info-card p {
  color: #eee;
  line-height: 1.6;
  margin: 0;
}

.other-candidates-section {
  margin-bottom: 3rem;
}

.other-candidates-section h3 {
  color: #ffd700;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 600;
}

.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.candidate-card {
  background: linear-gradient(145deg, #191919 80%, #1e1e10 100%);
  border: 1.5px solid #27251f;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.candidate-card:hover {
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.2);
  transform: translateY(-5px);
  border-color: rgba(255, 215, 0, 0.4);
}

.candidate-card a {
  text-decoration: none;
  color: inherit;
}

.candidate-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.8rem;
  border: 2px solid #ffd700;
}

.candidate-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 0.8rem auto;
  border: 2px solid #ffd700;
}

.candidate-card h5 {
  color: #ffd700;
  margin: 0.5rem 0 0.3rem 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.candidate-card p {
  color: #ccc;
  margin: 0;
  font-size: 0.8rem;
}

.navigation-section {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  margin-top: 3rem;
}

.navigation-section .btn {
  min-width: 220px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.navigation-section .outline-btn {
  border: 2px solid #ffd700 !important;
  color: #ffd700 !important;
  background: transparent !important;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.08);
}

.navigation-section .outline-btn:hover {
  background: #ffd700 !important;
  color: #181d2a !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
  text-decoration: none !important;
}

.navigation-section .btn:link,
.navigation-section .btn:visited,
.navigation-section .btn:active,
.navigation-section .btn:focus {
  opacity: 1 !important;
  filter: none !important;
  text-decoration: none !important;
}

/* Mobile Responsive -Candidate Page */
@media (max-width: 768px) {
  .candidate-header {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 2rem;
  }
  
  .candidate-image,
  .candidate-image-placeholder {
    width: 150px;
    height: 150px;
  }
  
  .candidate-name {
    font-size: 2.2rem;
  }
  
  .candidate-actions {
    justify-content: center;
  }
  
  .stats-grid,
  .voting-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .info-sections {
    grid-template-columns: 1fr;
  }
  
  .candidates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}



/* Voting Closed Page Styles */
.voting-closed-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem;
}

.voting-closed-card {
  background: linear-gradient(145deg, #191919 80%, #1e1e10 100%);
  border: 2px solid #ffd700;
  border-radius: 15px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 600px;
  box-shadow: 
    0 8px 30px rgba(255, 215, 0, 0.3),
    0 0 0 1px rgba(255, 215, 0, 0.1);
  position: relative;
}

/* Add golden glow like winner card */
.voting-closed-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #ffd700, #e6c200, #ffd700);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.6;
  animation: golden-glow 3s ease-in-out infinite alternate;
}

.voting-closed-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.voting-closed-title {
  color: #ffd700 !important;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.voting-closed-subtitle {
  color: #eee !important;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.voting-closed-info {
  background: rgba(255, 215, 0, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 3px solid #ffd700;
}

.voting-closed-info p {
  color: #eee !important;
  margin: 0.5rem 0;
  line-height: 1.5;
  font-size: 1rem;
}

.voting-closed-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.voting-closed-actions .btn {
  min-width: 160px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.voting-closed-actions .gold-btn {
  background: linear-gradient(90deg, #ffd700, #e6c200) !important;
  color: #181d2a !important;
  border: none;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.16);
}

.voting-closed-actions .gold-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #181d2a !important;
  text-decoration: none !important;
}

.voting-closed-actions .outline-btn {
  background: transparent !important;
  border: 2px solid #ffd700 !important;
  color: #ffd700 !important;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.08);
}

.voting-closed-actions .outline-btn:hover {
  background: #ffd700 !important;
  color: #181d2a !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

.next-year-message {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.next-year-message p {
  color: #ffd700 !important;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  font-style: italic;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .voting-closed-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .voting-closed-title {
    font-size: 2rem;
  }
  
  .voting-closed-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .voting-closed-actions .btn {
    width: 100%;
    max-width: 250px;
  }
}