/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  color: #2c3e50;
  line-height: 1.6;
}

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  animation: fadeIn 1s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes progressFill {
  from { width: 0%; }
  to { width: var(--target-width); }
}

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

/* Main Header Styles */
.main-header {
  width: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
  box-shadow: 0 2px 8px rgba(126, 170, 85, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
  animation: slideInUp 0.8s ease-out;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.header-right {
  display: flex;
  align-items: center;
  text-align: right;
  flex: 1;
  justify-content: flex-end;
}

.logo-container {
  display: flex;
  align-items: center;
}

.platform-logo {
  height: 60px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  animation: fadeIn 1s ease-in-out;
  transition: transform 0.3s ease;
}

.platform-logo:hover {
  transform: scale(1.05);
}

/* Removed .main-title and .title-icon styles */

.subtitle {
  font-size: 1rem;
  color: #7f8c8d;
  margin: 0;
  font-weight: 500;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  animation: pulse 2s infinite;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 1s infinite;
}

/* Statistics Overview */
.stats-overview {
  margin-bottom: 40px;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

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

.stat-card {
  background: #f8f9fa;
  padding: 20px 15px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(126, 170, 85, 0.1);
  border: 1px solid rgba(126, 170, 85, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.8s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

/* Removed border-top effect on hover */

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(126, 170, 85, 0.2);
}

.stat-chart-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-chart-container canvas {
  position: absolute;
  top: 0;
  left: 0;
}

.chart-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

.chart-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7EAA55, #5a8a3a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: countUp 1.5s ease-out;
}

.chart-label {
  display: block;
  font-size: 0.8rem;
  color: #7f8c8d;
  margin-top: 2px;
}

.stat-icon {
  margin-bottom: 15px;
  animation: bounce 2s infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(126, 170, 85, 0.1), rgba(90, 138, 58, 0.1));
  border-radius: 50%;
  margin: 0 auto 15px;
  transition: all 0.3s ease;
}

.stat-icon:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(126, 170, 85, 0.2), rgba(90, 138, 58, 0.2));
}

.stat-content h3 {
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 1rem;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7EAA55, #5a8a3a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  animation: countUp 1s ease-out;
}

.stat-label {
  color: #7f8c8d;
  font-size: 0.85rem;
}

/* Results Section */
.results-section {
  margin-bottom: 40px;
  animation: slideInUp 0.8s ease-out 0.4s both;
}

.section-title {
  text-align: left;
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 30px;
  font-weight: 700;
}

/* Removed icon styles - no longer needed */

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

.candidate-card {
  background: #f8f9fa;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 6px 25px rgba(126, 170, 85, 0.12);
  border: 1px solid rgba(126, 170, 85, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.8s ease-out;
}

/* Podium sizing by rank */
.candidates-grid { align-items: end; }
.candidate-card.rank-1 { min-height: 380px; padding: 36px; transform: translateY(-6px); }
.candidate-card.rank-2 { min-height: 340px; padding: 34px; }
.candidate-card.rank-3 { min-height: 320px; padding: 32px; }
.candidate-card.rank-4 { min-height: 300px; padding: 30px; }

.candidate-card.rank-1 .candidate-photo { width: 120px; height: 120px; }
.candidate-card.rank-2 .candidate-photo { width: 110px; height: 110px; }
.candidate-card.rank-3 .candidate-photo { width: 100px; height: 100px; }
.candidate-card.rank-4 .candidate-photo { width: 90px; height: 90px; }

.candidate-card.rank-1 .candidate-name { font-size: 1.6rem; }
.candidate-card.rank-2 .candidate-name { font-size: 1.5rem; }
.candidate-card.rank-3 .candidate-name { font-size: 1.4rem; }
.candidate-card.rank-4 .candidate-name { font-size: 1.3rem; }

.candidate-card.rank-1 .candidate-rank { padding: 10px 18px; }
.candidate-card.rank-2 .candidate-rank { padding: 9px 16px; }
.candidate-card.rank-3 .candidate-rank { padding: 8px 16px; }
.candidate-card.rank-4 .candidate-rank { padding: 8px 14px; }

.candidate-card.rank-1 .percentage-number { font-size: 2.4rem; }
.candidate-card.rank-2 .percentage-number { font-size: 2.2rem; }
.candidate-card.rank-3 .percentage-number { font-size: 2rem; }
.candidate-card.rank-4 .percentage-number { font-size: 1.8rem; }

/* Stronger hover for podium */
.candidate-card.rank-1:hover { transform: translateY(-14px) scale(1.025); }
.candidate-card.rank-2:hover { transform: translateY(-12px) scale(1.02); }
.candidate-card.rank-3:hover { transform: translateY(-10px) scale(1.015); }
.candidate-card.rank-4:hover { transform: translateY(-8px) scale(1.01); }

.candidate-card:nth-child(1) { animation-delay: 0.1s; }
.candidate-card:nth-child(2) { animation-delay: 0.2s; }
.candidate-card:nth-child(3) { animation-delay: 0.3s; }
.candidate-card:nth-child(4) { animation-delay: 0.4s; }

.candidate-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(126, 170, 85, 0.02), rgba(90, 138, 58, 0.02));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.candidate-card:hover::after {
  opacity: 1;
}

.candidate-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(126, 170, 85, 0.25);
}

/* Removed border-top effect */

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(126, 170, 85, 0.3); }
  50% { box-shadow: 0 0 20px rgba(126, 170, 85, 0.6); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

.candidate-photo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.candidate-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
}

.candidate-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.candidate-party {
  font-size: 1rem;
  color: #7f8c8d;
  margin: 0;
  font-weight: 500;
}

.candidate-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(126, 170, 85, 0.3);
  position: relative;
  border: 4px solid rgba(126, 170, 85, 0.2);
  transition: all 0.3s ease;
}

.candidate-photo:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(126, 170, 85, 0.4);
  border-color: #7EAA55;
  animation: glow 2s infinite;
}

.candidate-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.candidate-image:hover {
  transform: scale(1.1);
}

.candidate-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Green gradient for Outros placeholder */
.candidate-card[data-candidate="outros"] .candidate-placeholder {
  background: linear-gradient(135deg, #7EAA55, #5a8a3a);
}

/* Removed old candidate-info styles */

.candidate-rank {
  background: linear-gradient(135deg, #7EAA55, #5a8a3a);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(126, 170, 85, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  align-self: center;
}

.vote-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.vote-count, .vote-percentage {
  text-align: center;
}

.count-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7EAA55, #5a8a3a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: countUp 1.5s ease-out;
}

.percentage-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7EAA55, #5a8a3a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: countUp 1.5s ease-out;
}

.count-label, .percentage-label {
  font-size: 0.9rem;
  color: #7f8c8d;
}

.progress-container {
  margin-top: 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #ecf0f1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7EAA55, #5a8a3a, #4a7c2a);
  border-radius: 10px;
  transition: width 2s ease-in-out;
  position: relative;
  animation: progressFill 2s ease-out;
  box-shadow: 0 2px 8px rgba(126, 170, 85, 0.3);
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

/* Charts Section */
.charts-section {
  margin-bottom: 40px;
  animation: slideInUp 0.8s ease-out 0.6s both;
}

.chart-container-full {
  background: #f8f9fa;
  padding: 35px;
  border-radius: 24px;
  box-shadow: 0 6px 25px rgba(126, 170, 85, 0.12);
  border: 1px solid rgba(126, 170, 85, 0.15);
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.chart-left, .chart-right {
  flex: 1;
  min-width: 0;
}

.chart-left h3, .chart-right h3 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 25px;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pie-chart {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pie-slice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease;
}

.pie-slice:hover {
  transform: translateX(15px) scale(1.05);
  background: rgba(126, 170, 85, 0.05);
  border-radius: 8px;
}

.slice-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.slice-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slice-label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.1rem;
}

.slice-percentage {
  font-weight: 700;
  color: #7EAA55;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #7EAA55, #5a8a3a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.line-chart {
  position: relative;
  height: 300px;
  width: 100%;
}

#resultsChart {
  width: 100% !important;
  height: 100% !important;
}

/* Results Table Section */
.results-table-section {
  margin-bottom: 40px;
  animation: slideInUp 0.8s ease-out 0.8s both;
}

.results-table-section h3 {
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-container {
  position: relative;
  overflow: hidden;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Filters Bar */
.filters-bar {
  margin: 0 0 16px 0;
}

.filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-item label {
  font-size: 0.85rem;
  color: #7f8c8d;
  font-weight: 600;
}

.filter-item select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #ffffff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%237f8c8d" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 10px center;
  background-size: 12px 12px;
  border: 1px solid #e1e6ea;
  border-radius: 10px;
  padding: 10px 34px 10px 12px;
  min-width: 220px;
  font-size: 0.95rem;
  color: #2c3e50;
  box-shadow: 0 2px 10px rgba(126, 170, 85, 0.08);
}

.filter-item select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.results-table thead {
  background: linear-gradient(135deg, #7EAA55, #5a8a3a);
  color: white;
}

.results-table th {
  padding: 20px 15px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.results-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.3s ease;
}

.results-table tbody tr:hover {
  background-color: rgba(126, 170, 85, 0.05);
}

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

.results-table td {
  padding: 18px 15px;
  text-align: center;
  font-size: 0.95rem;
}

.region-name {
  font-weight: 700;
  color: #2c3e50;
  text-align: left !important;
  background: linear-gradient(135deg, rgba(126, 170, 85, 0.1), rgba(90, 138, 58, 0.1));
}

.candidate-score {
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  text-align: center;
}

.score-percentage {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}

.score-votes {
  font-weight: 500;
  font-size: 0.75rem;
  opacity: 0.8;
  color: inherit;
}

.candidate-score.embalo {
  color: #7EAA55;
  background: rgba(126, 170, 85, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 60px;
}

.candidate-score.pereira {
  color: #4ECDC4;
  background: rgba(78, 205, 196, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 60px;
}

.candidate-score.nabiam {
  color: #45B7D1;
  background: rgba(69, 183, 209, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 60px;
}

.candidate-score.outros {
  color: #96CEB4;
  background: rgba(150, 206, 180, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 60px;
}

.winner-cell {
  text-align: center;
}

.winner-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
}

.winner-badge.embalo {
  background: linear-gradient(135deg, #7EAA55, #5a8a3a);
}

.winner-badge.pereira {
  background: linear-gradient(135deg, #4ECDC4, #3bb5b0);
}

.winner-badge.nabiam {
  background: linear-gradient(135deg, #45B7D1, #2a9fd1);
}

.winner-badge.outros {
  background: linear-gradient(135deg, #96CEB4, #7fb069);
}

/* Leaflet Map Custom Styles */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  border: 2px solid rgba(126, 170, 85, 0.2) !important;
}

.leaflet-popup-content {
  margin: 15px !important;
  line-height: 1.4 !important;
}

.leaflet-popup-tip {
  background: white !important;
  border: 2px solid rgba(126, 170, 85, 0.2) !important;
}

.leaflet-control-zoom {
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom a {
  background: #7EAA55 !important;
  color: white !important;
  border: none !important;
  font-weight: bold !important;
}

.leaflet-control-zoom a:hover {
  background: #5a8a3a !important;
}

/* Custom marker animations */
.leaflet-marker-icon {
  transition: all 0.3s ease !important;
}

.leaflet-marker-icon:hover {
  transform: scale(1.2) !important;
  z-index: 1000 !important;
}

/* Alert Section - Removed */

/* Footer */
.dashboard-footer {
  text-align: center;
  color: #7f8c8d;
  padding: 20px;
  animation: slideInUp 0.8s ease-out 1.2s both;
}

.dashboard-footer p {
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 12px 20px;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .header-left, .header-center, .header-right {
    justify-content: center;
    text-align: center;
  }
  
  .platform-logo {
    height: 50px;
  }
  
  .dashboard-container {
    padding: 10px;
  }
  
  .candidates-grid {
    grid-template-columns: 1fr;
  }

  /* Normalize podium on small screens */
  .candidate-card.rank-1,
  .candidate-card.rank-2,
  .candidate-card.rank-3,
  .candidate-card.rank-4 {
    min-height: auto;
    padding: 28px;
    transform: none;
  }
  .candidate-card.rank-1 .candidate-photo,
  .candidate-card.rank-2 .candidate-photo,
  .candidate-card.rank-3 .candidate-photo,
  .candidate-card.rank-4 .candidate-photo { width: 90px; height: 90px; }
  .candidate-card.rank-1 .candidate-name,
  .candidate-card.rank-2 .candidate-name,
  .candidate-card.rank-3 .candidate-name,
  .candidate-card.rank-4 .candidate-name { font-size: 1.3rem; }
  .candidate-card.rank-1 .percentage-number,
  .candidate-card.rank-2 .percentage-number,
  .candidate-card.rank-3 .percentage-number,
  .candidate-card.rank-4 .percentage-number { font-size: 1.8rem; }
  
  .candidate-photo {
    width: 80px;
    height: 80px;
  }
  
  .candidate-name {
    font-size: 1.2rem;
  }
  
  .candidate-image {
    font-size: 1.2rem;
  }
  
  .chart-container-full {
    flex-direction: column;
    gap: 30px;
  }
  
  .line-chart {
    height: 250px;
  }
  
  .table-container {
    padding: 20px;
  }
  
  .results-table {
    font-size: 0.85rem;
  }

  .filter-item select {
    min-width: 180px;
  }
  
  .results-table th,
  .results-table td {
    padding: 12px 8px;
  }
  
  .candidate-score {
    padding: 6px 8px !important;
    min-width: 50px !important;
    font-size: 0.9rem;
  }
  
  .score-percentage {
    font-size: 0.9rem;
  }
  
  .score-votes {
    font-size: 0.7rem;
  }
  
  .winner-badge {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  
  .alert-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 10px 15px;
  }
  
  .platform-logo {
    height: 45px;
  }
  
  .subtitle {
    font-size: 0.9rem;
  }
  
  .map-placeholder {
    grid-template-columns: 1fr;
  }
  
  .candidate-photo {
    width: 70px;
    height: 70px;
  }
  
  .candidate-name {
    font-size: 1.1rem;
  }
  
  .candidate-image {
    font-size: 1rem;
  }
  
  .vote-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .leaflet-map {
    height: 250px;
  }
  
  .legend-items {
    flex-direction: column;
    gap: 10px;
  }
  
  .legend-item {
    min-width: auto;
  }
  
  .line-chart {
    height: 200px;
  }
  
  .results-table {
    font-size: 0.8rem;
  }
  
  .results-table th,
  .results-table td {
    padding: 10px 6px;
  }
  
  .candidate-score {
    padding: 4px 6px !important;
    min-width: 45px !important;
    font-size: 0.8rem;
  }
  
  .score-percentage {
    font-size: 0.8rem;
  }
  
  .score-votes {
    font-size: 0.65rem;
  }
  
  .winner-badge {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
}
