/* PPRI Data Observatory & Policy Simulator Styles */

.dc-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.dc-tab-btn {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.dc-tab-btn:hover {
  color: #073c3a;
  background: #e2e8f0;
}

.dc-tab-btn.active {
  color: #ffffff;
  background: #073c3a;
  box-shadow: 0 2px 4px rgba(7, 60, 58, 0.2);
}

.dc-tab-pane {
  display: none;
}

.dc-tab-pane.active {
  display: block;
}

/* Simulator Grid */
.nfc-sim-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.nfc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 20px;
}

@media (max-width: 860px) {
  .nfc-grid {
    grid-template-columns: 1fr;
  }
}

.nfc-slider-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nfc-slider-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
}

.nfc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.nfc-slider-header label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #073c3a;
}

.nfc-slider-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #12645d;
  background: #e6f4f2;
  padding: 2px 10px;
  border-radius: 12px;
}

.nfc-range {
  width: 100%;
  accent-color: #073c3a;
  cursor: pointer;
}

.nfc-slider-desc {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 6px;
}

.nfc-pool-input {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.nfc-pool-input label {
  font-weight: 700;
  color: #166534;
  font-size: 0.9rem;
}

.nfc-pool-input input {
  padding: 8px 12px;
  border: 1px solid #86efac;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #073c3a;
  width: 160px;
}

.nfc-total-weight-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.nfc-total-weight-badge.valid {
  background: #dcfce7;
  color: #15803d;
}

.nfc-total-weight-badge.warning {
  background: #fef3c7;
  color: #92400e;
}

.nfc-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.nfc-results-table th {
  background: #073c3a;
  color: #ffffff;
  padding: 10px 12px;
  text-align: left;
}

.nfc-results-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.nfc-results-table tr:hover {
  background: #f8fafc;
}

/* District Explorer */
.district-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.district-search-input {
  flex: 1 1 240px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
}

.district-filter-select {
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #ffffff;
}

.dc-btn-export {
  padding: 9px 16px;
  background: #12645d;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.dc-btn-export:hover {
  background: #073c3a;
}

.dc-btn-reset {
  padding: 9px 16px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.dc-btn-reset:hover {
  background: #e2e8f0;
}

/* Institutional Distance Cards */
.distance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.distance-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #073c3a;
  border-radius: 8px;
  padding: 16px;
}

.distance-card h4 {
  margin: 0 0 6px;
  color: #073c3a;
  font-size: 1rem;
}

.distance-card .dist-stat {
  font-size: 1.4rem;
  font-weight: 800;
  color: #b91c1c;
  display: block;
  margin: 4px 0;
}

.distance-card p {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}

/* Fail-safe backup for Data Centre Hero */
.dc-hero {
  background-color: #072e27 !important;
  background: #072e27 radial-gradient(circle at 85% 15%, rgba(168, 224, 106, 0.12) 0%, transparent 45%),
              linear-gradient(135deg, #072e27 0%, #0e443c 55%, #051d19 100%) !important;
  color: #ffffff !important;
}
.dc-hero-title {
  color: #ffffff !important;
}
.dc-hero-title span {
  color: #a8e06a !important;
}
.dc-hero-lead {
  color: #e2f0e8 !important;
}
