/* Civic Tabs Navigation */
.civic-tabs {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
}

.civic-tabs::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.civic-tab {
  flex: 1;
  min-width: 100px;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.15); /* Brighter inactive background */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: #ffffff; /* Pure white for maximum contrast */
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  scroll-snap-align: start;
}

.civic-tab .tab-icon {
  font-size: 1.75rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.civic-tab .tab-label {
  font-size: 0.95rem; /* Slightly larger */
  font-weight: 700; /* Bolder */
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.civic-tab:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
}

.civic-tab.active {
  background: #ffffff; /* Stark white active tab */
  border-color: #ffffff;
  color: #1e3a8a; /* Deep blue text for active tab to pop against white */
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}

.civic-tab.active .tab-icon, 
.civic-tab.active .tab-label {
  text-shadow: none; /* No shadow on active tab text */
}

/* Tab Panels */
.civic-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.civic-panel.active {
  display: block;
}

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

/* Mobile Optimizations */
@media (max-width: 767px) {
  .civic-tab {
    min-width: 100px;
    padding: 0.5rem;
  }
  
  .civic-tab .tab-icon {
    font-size: 1.25rem;
  }
  
  .civic-tab .tab-label {
    font-size: 0.75rem;
  }
}
