* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #1a1a2e;
  color: #eee;
}

/* Header */
.header-bar {
  background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content h1 {
  font-size: 1.5rem;
}

.header-nav {
  display: flex;
  gap: 1rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  transition: all 0.3s;
  background: rgba(255,255,255,0.1);
}

.nav-link:hover {
  background: rgba(255,255,255,0.2);
}

.nav-link.active {
  background: rgba(255,255,255,0.3);
  font-weight: bold;
}

/* Vote Status Banner */
.vote-status-banner {
  background: #2ecc71;
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: bold;
}

.vote-status-banner.already-voted {
  background: #3498db;
}

/* Voting Container */
.voting-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.voting-header {
  text-align: center;
  margin-bottom: 2rem;
}

.voting-header h2 {
  color: #667eea;
  margin-bottom: 0.5rem;
}

.voting-header p {
  color: #666;
}

/* Map Legend */
.map-legend {
  margin-top: 1rem;
  padding: 1rem;
  background: #2d2d44;
  border-radius: 0 0 12px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.map-legend strong {
  font-size: 1.1rem;
  color: #4ecca3;
  width: 100%;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #ddd;
}

.legend-color {
  width: 40px;
  height: 25px;
  border-radius: 6px;
  border: 2px solid #555;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

.modal.show {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.3s;
}

.modal-large {
  max-width: 900px;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2,
.modal-header h3 {
  color: #667eea;
  margin: 0;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 2px solid #f0f0f0;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-close {
  background: #ff4757;
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.btn-close:hover {
  background: #ff3838;
  transform: rotate(90deg);
}

/* Candidates Grid */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.candidate-card {
  border: 3px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}

.candidate-card:hover {
  border-color: #667eea;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  transform: translateY(-5px);
}

.candidate-card.voted {
  border-color: #2ecc71;
  background: #f0fff4;
  cursor: default;
}

.candidate-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.candidate-card.disabled:hover {
  transform: none;
  box-shadow: none;
}

.candidate-number {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.candidate-name {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.candidate-party {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.voted-badge {
  background: #2ecc71;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  display: inline-block;
  margin-top: 0.5rem;
}

/* Buttons */
.btn {
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #e0e0e0;
  color: #333;
}

.btn-secondary:hover {
  background: #d0d0d0;
}

/* Results Page */
.stats-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  font-size: 3rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.3rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
}

.results-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  gap: 2rem;
}

.results-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #667eea;
}

.section-header h2 {
  color: #667eea;
  font-size: 1.5rem;
}

.btn-refresh {
  background: #667eea;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-refresh:hover {
  background: #5568d3;
  transform: rotate(180deg);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.9rem;
  color: #666;
}

.filter-group select {
  padding: 0.5rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s;
}

.result-item:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.result-rank {
  font-size: 2rem;
  font-weight: bold;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.result-rank.rank-1 {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: white;
}

.result-rank.rank-2 {
  background: linear-gradient(135deg, #C0C0C0, #808080);
  color: white;
}

.result-rank.rank-3 {
  background: linear-gradient(135deg, #CD7F32, #8B4513);
  color: white;
}

.result-rank:not(.rank-1):not(.rank-2):not(.rank-3) {
  background: #f0f0f0;
  color: #667eea;
}

.result-info {
  flex: 1;
}

.result-name {
  font-weight: bold;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.result-detail {
  font-size: 0.95rem;
  color: #666;
}

.result-bar {
  flex: 2;
  height: 40px;
  background: #f0f0f0;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.result-bar-fill {
  height: 100%;
  border-radius: 20px;
  transition: width 0.8s ease-out;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 15px;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Loading */
.loading {
  text-align: center;
  padding: 3rem;
  color: #666;
  font-size: 1.1rem;
}

.loading::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #999;
}

.empty-state-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .header-content h1 {
    font-size: 1.2rem;
  }
  
  .candidates-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .result-item {
    flex-wrap: wrap;
  }
  
  .result-bar {
    width: 100%;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}


/* Loading Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #2196f3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes scaleIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Party Card Styles */
.party-card {
  transition: all 0.2s ease;
  background: white;
}

.party-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.party-card:active {
  transform: translateX(5px) scale(0.98);
}

/* Disable pointer events when submitting */
.modal.submitting {
  pointer-events: none;
}

.modal.submitting .modal-content {
  opacity: 0.8;
}

/* Button disabled state */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Success animation */
.success-checkmark {
  animation: scaleIn 0.5s ease-out;
}

/* Dual Maps Layout */
.dual-maps-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.map-section {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.map-title {
  background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
  color: white;
  padding: 1rem;
  text-align: center;
}

.map-title h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.map-title p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.map-half {
  width: 100%;
  height: 500px;
  background: white;
}

/* Responsive */
@media (max-width: 1024px) {
  .dual-maps-container {
    grid-template-columns: 1fr;
  }
  
  .map-half {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .map-half {
    height: 300px;
  }
  
  .map-title h3 {
    font-size: 1rem;
  }
  
  .map-title p {
    font-size: 0.8rem;
  }
}

/* Tabs */
.tabs-container {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 1rem 0;
}

.tabs {
  display: flex;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  background: white;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  transition: all 0.3s;
  white-space: nowrap;
}

.tab-btn:hover {
  background: #f5f5f5;
  color: #333;
}

.tab-btn.active {
  color: #667eea;
  border-bottom-color: #667eea;
  background: #f9f9ff;
}

.tab-content-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Zones Grid */
.zones-grid-container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.zones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.zone-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.zone-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.zone-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.zone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.zone-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.zone-progress {
  font-size: 0.9rem;
  color: #667eea;
  font-weight: 600;
}

.zone-candidates {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.zone-candidate {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.zone-candidate:hover {
  background: #f9f9f9;
  transform: translateX(5px);
}

.candidate-rank {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 0.9rem;
}

.candidate-rank.rank-1 {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.candidate-rank.rank-2 {
  background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
}

.candidate-rank.rank-3 {
  background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
}

.candidate-info {
  flex: 1;
}

.candidate-name {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.candidate-party {
  font-size: 0.85rem;
  color: #666;
}

.candidate-votes {
  text-align: right;
}

.vote-count {
  font-weight: bold;
  color: #667eea;
  font-size: 1rem;
}

.vote-percentage {
  font-size: 0.85rem;
  color: #999;
}

/* Zone Detail Modal */
.zone-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.zone-detail-section {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 12px;
}

.zone-detail-section h3 {
  margin-bottom: 1rem;
  color: #667eea;
}

.detail-candidate {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.detail-candidate-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.detail-candidate-info {
  flex: 1;
}

.detail-candidate-name {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.detail-candidate-party {
  color: #666;
  font-size: 0.9rem;
}

.detail-candidate-votes {
  text-align: right;
}

.detail-vote-count {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
}

.detail-vote-percentage {
  color: #999;
  font-size: 0.9rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #666;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .zones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .zone-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .zones-grid {
    grid-template-columns: 1fr;
  }
  
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .tab-btn {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
}

/* Zones Section */
.zones-section {
  background: #2d2d44;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0;
  color: #4ecca3;
  font-size: 1.5rem;
}

.btn-refresh {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #4ecca3 0%, #0f3460 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.btn-refresh:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(78, 204, 163, 0.4);
}

.zones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.zone-card {
  background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.zone-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(78, 204, 163, 0.3);
}

.zone-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4ecca3 0%, #0f3460 100%);
}

.zone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.zone-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #4ecca3;
}

.zone-progress {
  font-size: 0.9rem;
  color: #4ecca3;
  font-weight: 600;
  background: rgba(78, 204, 163, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}

.zone-candidates {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.zone-candidate {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.zone-candidate:hover {
  background: white;
  transform: translateX(5px);
}

.candidate-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.candidate-rank.rank-1 {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.candidate-rank.rank-2 {
  background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
  box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.candidate-rank.rank-3 {
  background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
  box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

.candidate-info {
  flex: 1;
  min-width: 0;
}

.candidate-name {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-party {
  font-size: 0.85rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-votes {
  text-align: right;
  flex-shrink: 0;
}

.vote-count {
  font-weight: bold;
  color: #4ecca3;
  font-size: 1rem;
}

.vote-percentage {
  font-size: 0.85rem;
  color: #999;
}

/* Reserved Section */
.reserved-section {
  background: #2d2d44;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state h3 {
  font-size: 1.3rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #777;
  font-size: 1rem;
}

/* Concurrent Users Badge */
.concurrent-users {
  position: fixed;
  top: 80px;
  right: 20px;
  background: linear-gradient(135deg, #4ecca3 0%, #0f3460 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-weight: bold;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: pulse 2s infinite;
}

.concurrent-users .icon {
  font-size: 1.2rem;
}

.concurrent-users .count {
  font-size: 1.1rem;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Province Summary Blocks */
.province-summary-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.province-summary-block {
  background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border: 1px solid rgba(78, 204, 163, 0.2);
}

.summary-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #4ecca3;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.summary-header h3 {
  margin: 0;
  color: #4ecca3;
  font-size: 1.4rem;
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(78, 204, 163, 0.3);
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: none;
  overflow-y: visible;
  padding-right: 0.5rem;
}

/* Custom Scrollbar */
.summary-list::-webkit-scrollbar {
  width: 8px;
}

.summary-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.summary-list::-webkit-scrollbar-thumb {
  background: #4ecca3;
  border-radius: 4px;
}

.summary-list::-webkit-scrollbar-thumb:hover {
  background: #3dbb8f;
}

/* Zone Summary Item */
.zone-summary-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid rgba(78, 204, 163, 0.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.zone-summary-item:hover {
  border-color: rgba(78, 204, 163, 0.5);
  box-shadow: 0 6px 20px rgba(78, 204, 163, 0.2);
  transform: translateY(-2px);
}

.zone-summary-item.expanded {
  background: linear-gradient(135deg, rgba(78, 204, 163, 0.15) 0%, rgba(78, 204, 163, 0.08) 100%);
  border-color: #4ecca3;
}

/* Animation for score/rank changes */
.zone-summary-item.animate-change {
  animation: highlightChange 1s ease;
}

@keyframes highlightChange {
  0%, 100% {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
  }
  50% {
    background: linear-gradient(135deg, rgba(78, 204, 163, 0.3) 0%, rgba(78, 204, 163, 0.2) 100%);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(78, 204, 163, 0.4);
  }
}

.zone-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(0, 0, 0, 0.1);
}

.zone-summary-header:hover {
  background: rgba(78, 204, 163, 0.1);
}

.zone-summary-main {
  flex: 1;
  min-width: 0;
}

.zone-summary-zone {
  font-size: 1.2rem;
  font-weight: bold;
  color: #4ecca3;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.zone-summary-winner {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.zone-summary-item.animate-change .zone-summary-winner {
  animation: slideInWinner 0.5s ease;
}

@keyframes slideInWinner {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.zone-summary-stats {
  font-size: 0.9rem;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zone-summary-stats::before {
  content: '📍';
  font-size: 1rem;
}

.zone-summary-votes {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-left: 1rem;
}

.zone-summary-votes-number {
  font-size: 1.8rem;
  font-weight: bold;
  color: #4ecca3;
  transition: all 0.3s ease;
  text-shadow: 0 2px 8px rgba(78, 204, 163, 0.5);
}

.zone-summary-item.animate-change .zone-summary-votes-number {
  animation: pulseVotes 0.6s ease;
}

@keyframes pulseVotes {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
    color: #FFD700;
    text-shadow: 0 4px 16px rgba(255, 215, 0, 0.8);
  }
}

.zone-summary-expand-icon {
  font-size: 1.2rem;
  color: #4ecca3;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.zone-summary-item.expanded .zone-summary-expand-icon {
  transform: rotate(180deg);
  opacity: 1;
}

.zone-summary-detail {
  border-top: 2px solid rgba(78, 204, 163, 0.3);
  padding: 0 1.5rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.3s ease;
}

.zone-summary-item.expanded .zone-summary-detail {
  padding: 1.5rem;
  max-height: 2000px;
  opacity: 1;
}

/* Top 3 Container */
.top3-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.top3-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 16px;
  position: relative;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.top3-item:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.top3-item.rank-1 {
  border-color: #FFD700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

.top3-item.rank-1:hover {
  box-shadow: 0 12px 32px rgba(255, 215, 0, 0.5);
}

.top3-item.rank-2 {
  border-color: #C0C0C0;
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.2) 0%, rgba(192, 192, 192, 0.1) 100%);
  box-shadow: 0 8px 24px rgba(192, 192, 192, 0.3);
}

.top3-item.rank-2:hover {
  box-shadow: 0 12px 32px rgba(192, 192, 192, 0.5);
}

.top3-item.rank-3 {
  border-color: #CD7F32;
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.2) 0%, rgba(205, 127, 50, 0.1) 100%);
  box-shadow: 0 8px 24px rgba(205, 127, 50, 0.3);
}

.top3-item.rank-3:hover {
  box-shadow: 0 12px 32px rgba(205, 127, 50, 0.5);
}

.top3-rank {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.top3-item.rank-1 .top3-rank {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  animation: goldShine 2s infinite;
}

@keyframes goldShine {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.8);
  }
}

.top3-item.rank-2 .top3-rank {
  background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
}

.top3-item.rank-3 .top3-rank {
  background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
}

.top3-image {
  width: 140px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin: 1rem 0 1rem 0;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}

.top3-item:hover .top3-image {
  transform: scale(1.05);
  border-color: rgba(78, 204, 163, 0.6);
  box-shadow: 0 12px 32px rgba(78, 204, 163, 0.4);
}

.top3-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.top3-image-placeholder {
  width: 140px;
  height: 180px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  color: white;
  margin: 1rem 0 1rem 0;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}

.top3-item:hover .top3-image-placeholder {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}

.top3-info {
  text-align: center;
  width: 100%;
}

.top3-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.top3-detail {
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.top3-votes {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4ecca3;
  text-shadow: 0 2px 8px rgba(78, 204, 163, 0.5);
}

@media (max-width: 768px) {
  .top3-container {
    grid-template-columns: 1fr;
  }
  
  .top3-image,
  .top3-image-placeholder {
    width: 120px;
    height: 160px;
  }
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.2s;
  border-left: 4px solid transparent;
}

.summary-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.summary-item.rank-1 {
  border-left-color: #FFD700;
  background: rgba(255, 215, 0, 0.1);
}

.summary-item.rank-2 {
  border-left-color: #C0C0C0;
  background: rgba(192, 192, 192, 0.1);
}

.summary-item.rank-3 {
  border-left-color: #CD7F32;
  background: rgba(205, 127, 50, 0.1);
}

.summary-rank {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
}

.summary-rank.rank-1 {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.summary-rank.rank-2 {
  background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
}

.summary-rank.rank-3 {
  background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
}

.summary-rank:not(.rank-1):not(.rank-2):not(.rank-3) {
  background: #555;
}

.summary-info {
  flex: 1;
  min-width: 0;
}

.summary-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-detail {
  font-size: 0.9rem;
  color: #aaa;
}

.summary-votes {
  text-align: right;
  flex-shrink: 0;
}

.summary-votes-number {
  font-size: 1.3rem;
  font-weight: bold;
  color: #4ecca3;
}

.summary-votes-label {
  font-size: 0.85rem;
  color: #888;
}

.summary-stats {
  font-size: 0.85rem;
  color: #999;
  margin-top: 0.25rem;
}

.summary-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.summary-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease-out;
}

@media (max-width: 1024px) {
  .province-summary-container {
    grid-template-columns: 1fr;
  }
}

/* Zone Detail Modal */
.zone-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.zone-detail-section {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 12px;
}

.zone-detail-section h3 {
  margin-bottom: 1rem;
  color: #667eea;
}

.detail-candidate {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.detail-candidate-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

.detail-candidate-info {
  flex: 1;
}

.detail-candidate-name {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.detail-candidate-party {
  color: #666;
  font-size: 0.9rem;
}

.detail-candidate-votes {
  text-align: right;
}

.detail-vote-count {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
}

.detail-vote-percentage {
  color: #999;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .zones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .zone-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .zones-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .btn-refresh {
    width: 100%;
  }
}
