/* ========================================
   STATUS PAGE STYLES
   ======================================== */

.platform-header {
  text-align: center;
  margin-bottom: 2rem;
}

.platform-title {
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.platform-info {
  max-width: 700px;
  margin: 0 auto 2rem;
}

.description-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.description-header:hover {
  background: var(--bg-hover);
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.description-label {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.expand-platform-info {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: var(--accent-blue-light);
}

.expand-platform-info svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.expand-platform-info.expanded svg {
  transform: rotate(180deg);
}

.platform-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  margin-top: 0;
}

.platform-details.expanded {
  max-height: 500px;
  opacity: 1;
  margin-top: 1rem;
}

.description-text {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.platform-help-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  text-align: left;
}

.platform-help-section h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.platform-help-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.platform-help-section ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.platform-help-section li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.platform-help-section li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-blue-light);
  font-weight: 700;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  background: var(--accent-blue);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.platform-link:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

.status-card, .outage-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(71, 85, 105, 0.5);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  text-align: center;
}

.status-card h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.status-card .status-indicator {
  display: inline-block;
  font-size: 1rem;
  padding: 0.5rem 1.5rem;
  border-radius: 24px;
  margin: 1rem 0;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.status-card .status-report-info {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.status-card p {
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

.outage-title {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: left;
}

.outage-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.outage-item {
  background: var(--bg-secondary);
  border-left: 4px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: transform 0.2s;
  text-align: center;
}

.outage-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.outage-item:hover {
  transform: translateX(4px);
}

.outage-item a:hover .outage-message {
  color: var(--accent-blue-light);
}

.outage-item.operational {
  border-left-color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}

.outage-item.outage {
  border-left-color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.outage-item.possible-issue {
  border-left-color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
}

.outage-message {
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.outage-time {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.timeline {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.timeline-item {
  background: var(--bg-secondary);
  border-left: 4px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  transition: transform 0.2s;
}

.timeline-item:hover {
  transform: translateX(4px);
}

.timeline-item.operational {
  border-left-color: var(--success);
}

.timeline-item.outage {
  border-left-color: var(--danger);
}

.timeline-item.possible-issue {
  border-left-color: var(--warning);
}

.timeline-time {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.timeline-message {
  color: var(--text-primary);
}

.faq-link {
  color: var(--accent-blue-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-link:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  text-decoration: none;
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
}

.share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 8px;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.share-btn:hover {
  background: var(--accent-blue);
  transform: translateY(-2px);
}

/* Status Explanation Card */
.status-explanation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.status-explanation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue-light));
}

.explanation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

.explanation-icon svg {
  stroke: var(--accent-blue-light);
}

.status-explanation-card h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.status-explanation-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* Modern Vote Section */
.vote-section-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.vote-header-sleek {
  text-align: center;
  margin-bottom: 2rem;
}

.vote-header-sleek h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.vote-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.vote-form-sleek {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Custom Select Dropdown */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 56px;
}

.select-trigger:hover {
  border-color: var(--accent-blue);
  background: var(--bg-hover);
}

.custom-select.open .select-trigger {
  border-color: var(--accent-blue);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.select-placeholder {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
}

.select-arrow {
  flex-shrink: 0;
  stroke: var(--text-secondary);
  transition: transform 0.3s ease;
}

.custom-select.open .select-arrow {
  transform: rotate(180deg);
  stroke: var(--accent-blue);
}

.select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-blue);
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.custom-select.open .select-options {
  max-height: 300px;
  opacity: 1;
  overflow-y: auto;
}

.select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border-color);
}

.select-option:last-child {
  border-bottom: none;
}

.select-option:hover {
  background: var(--bg-hover);
}

.select-option.selected {
  background: rgba(59, 130, 246, 0.1);
}

.option-label {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.option-check {
  flex-shrink: 0;
  stroke: var(--accent-blue);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
}

.select-option.selected .option-check {
  opacity: 1;
  transform: scale(1);
}

/* Submit Button */
.submit-button-sleek {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  margin-top: 0.5rem;
}

.submit-button-sleek:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
  filter: brightness(1.1);
}

.submit-button-sleek:active {
  transform: translateY(0);
}

.submit-button-sleek svg {
  transition: transform 0.3s ease;
}

.submit-button-sleek:hover svg {
  transform: translateX(3px);
}

.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1rem;
  margin: 2rem 0;
  max-width: 100%;
  overflow: visible;
  min-height: 500px;
}

/* Reports Statistics Modern */
.reports-statistics-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  width: 100%;
}

.stats-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.stats-header svg {
  stroke: var(--accent-blue);
  flex-shrink: 0;
}

.stats-header h2 {
  color: var(--text-primary);
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0;
}

.stats-subtitle {
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 2rem 0;
}

.votes-chart-modern-container {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 3rem;
  padding: 1.5rem 0;
  align-items: center;
}

.votes-chart-modern-container canvas {
  max-width: 400px;
  max-height: 400px;
  width: 100%;
}

.votes-legend-modern {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 900px) {
  .votes-chart-modern-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
  }

  .votes-legend-modern {
    max-width: 500px;
  }
}

.legend-item-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.legend-item-modern:hover {
  background: var(--bg-hover);
  border-color: var(--accent-blue);
  transform: translateX(4px);
}

.legend-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legend-color-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}

.legend-label {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.legend-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.legend-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.legend-percent {
  color: var(--accent-blue);
  font-size: 1rem;
  font-weight: 700;
  min-width: 50px;
  text-align: right;
}

/* No Reports Message */
.no-reports-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 1rem;
}

.no-reports-message svg {
  stroke: var(--accent-green, #10b981);
  opacity: 0.7;
}

.no-reports-message p {
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.no-reports-message span {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.chart-container h3 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding: 0 1.5rem;
}

.chart-container canvas {
  width: 100% !important;
  height: 450px !important;
  max-width: 100% !important;
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
}

.map-container {
  border-radius: 12px;
  height: 400px;
  margin: 2rem 0;
  border: 1px solid var(--border-color);
}

/* Status Info Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9998;
}

.custom-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  z-index: 9999;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
}

.custom-popup h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue-light);
  text-align: center;
}

.custom-popup p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.custom-popup button {
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  margin: 0 auto;
  display: inline-block;
}

.custom-popup button:hover {
  background: var(--accent-blue-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Close button (X) for status info popup */
.custom-popup button[aria-label="Close"] {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  line-height: 1;
  padding: 0.5rem;
  transition: color 0.2s;
  box-shadow: none;
  margin: 0;
}

.custom-popup button[aria-label="Close"]:hover {
  color: var(--text-primary);
  background: none;
  transform: none;
}

.status-info-description {
  text-align: center;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--text-secondary);
}

.status-popup-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.status-popup-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.status-popup-badge {
  flex-shrink: 0;
}

.status-popup-desc {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Chart Explanation Modern */
.chart-explanation-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
}

.chart-explanation-modern h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chart-explanation-modern h3 svg {
  stroke: var(--accent-blue-light);
}

.chart-intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

@media (max-width: 900px) {
  .chart-tips-grid {
    grid-template-columns: 1fr;
  }

  .chart-tip-card {
    text-align: center;
  }
}

.chart-tip-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.chart-tip-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.15);
}

.tip-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.chart-tip-card h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.chart-tip-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Troubleshooting Modern */
.troubleshooting-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
}

.troubleshooting-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.troubleshooting-header svg {
  stroke: var(--accent-blue-light);
}

.troubleshooting-header h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.troubleshooting-intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.troubleshooting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.troubleshooting-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.troubleshooting-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.15);
}

.troubleshoot-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.troubleshooting-card h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding-right: 2.5rem;
}

.troubleshooting-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.troubleshooting-note {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid var(--accent-blue);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* FAQ Section Modern */
.faq-section-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
}

.faq-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.faq-section-header svg {
  stroke: var(--accent-blue-light);
}

.faq-section-header h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item-modern {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item-modern:hover {
  border-color: var(--accent-blue);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
}

.faq-question h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.faq-toggle {
  color: var(--accent-blue-light);
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item-modern.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
}

.faq-item-modern.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Recent Reports Modern */
.recent-reports-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
  overflow: hidden;
  max-width: 100%;
}

.recent-reports-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.recent-reports-header svg {
  stroke: var(--accent-blue-light);
  flex-shrink: 0;
}

.recent-reports-header h3 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.recent-reports-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.report-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  flex: 0 1 350px;
  box-sizing: border-box;
}

.report-card.operational {
  border-left-color: #10b981;
}

.report-card.outage {
  border-left-color: #ef4444;
}

.report-card.possible-issue {
  border-left-color: #f59e0b;
}

.report-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

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

.report-time {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.9;
}

.report-card .status-indicator {
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
  flex-shrink: 0;
}

.report-reason {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.report-reason strong {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Show More Button */
.show-more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem auto 0;
  padding: 0.875rem 2rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.show-more-button:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
}

.show-more-button svg {
  transition: transform 0.3s ease;
}

.show-more-button:hover svg {
  transform: translateY(2px);
}

.show-more-button.expanded svg {
  transform: rotate(180deg);
}

.show-more-button.expanded:hover svg {
  transform: rotate(180deg) translateY(-2px);
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .vote-options-grid {
    grid-template-columns: 1fr;
  }

  .vote-option-content {
    min-height: 60px;
  }

  .share-faq-row {
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
  }

  .status-popup-card {
    flex-direction: column;
    text-align: center;
  }

  .explanation-icon {
    width: 56px;
    height: 56px;
  }

  .status-explanation-card h3 {
    font-size: 1.25rem;
  }

  .vote-header h2 {
    font-size: 1.5rem;
  }

  .recent-reports-grid {
    grid-template-columns: 1fr;
  }

  .recent-reports-header h3 {
    font-size: 1.5rem;
  }

  /* Mobile modal-style dropdown */
  .select-options {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 90vw !important;
    max-width: 400px !important;
    border: 2px solid var(--accent-blue) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
    z-index: 10001 !important;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s 0.2s;
  }

  .custom-select.open .select-options {
    max-height: 70vh !important;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
    transition: opacity 0.2s ease, visibility 0s;
  }

  .custom-select::before {
    display: none;
  }

  .custom-select.open::before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    animation: fadeIn 0.2s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .custom-select.open .select-trigger {
    border-radius: 12px;
    position: relative;
    z-index: 1;
  }

  .select-option {
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
  }

  .select-option:first-child {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }

  .select-option:last-child {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }
}

/* ========================================
   LEAFLET MAP POPUP DARK MODE
   ======================================== */

/* Dark mode styles for Leaflet popups */
[data-theme="dark"] .leaflet-popup-content-wrapper,
.dark-mode .leaflet-popup-content-wrapper {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .leaflet-popup-tip,
.dark-mode .leaflet-popup-tip {
  background-color: #1e293b !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .leaflet-popup-close-button,
.dark-mode .leaflet-popup-close-button {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .leaflet-popup-close-button:hover,
.dark-mode .leaflet-popup-close-button:hover {
  color: #cbd5e1 !important;
}

/* Light mode popup (default styling) */
.leaflet-popup-content-wrapper {
  background-color: #ffffff !important;
  color: #1e293b !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-tip {
  background-color: #ffffff !important;
}
