:root {
  --saudi-green: #006c35;
  --saudi-green-dark: #0b5a2a;
  --saudi-green-soft: #eaf5ee;
  --saudi-green-border: #d6e8db;
  --saudi-gold: #c7a54b;
  --bs-primary: #006c35;
  --bs-success: #006c35;
}

body {
  background: #f6f8f6;
  color: #173020;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.main-navbar {
  background: linear-gradient(135deg, #006c35 0%, #0b5a2a 68%, #084826 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-title {
  font-size: 42px;
  line-height: 1.05;
  color: #ffffff;
}

.app-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 980px;
}

.main-nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 18px;
  border-radius: 999px !important;
  padding: 0.55rem 1rem !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.card {
  border-radius: 18px;
  border: 1px solid var(--saudi-green-border);
  box-shadow: 0 10px 28px rgba(12, 54, 29, 0.06) !important;
}

.btn-primary,
.btn-success {
  background-color: var(--saudi-green) !important;
  border-color: var(--saudi-green) !important;
}

.btn-primary:hover,
.btn-success:hover {
  background-color: var(--saudi-green-dark) !important;
  border-color: var(--saudi-green-dark) !important;
}

.hero-pill {
  background: rgba(0, 108, 53, 0.1) !important;
  color: var(--saudi-green) !important;
  border: 1px solid rgba(0, 108, 53, 0.12);
  font-weight: 600;
  padding: 0.5rem 0.8rem;
}

.hero-stat-card {
  background: linear-gradient(135deg, #006c35 0%, #0b5a2a 75%, #084826 100%);
  color: #ffffff;
  overflow: hidden;
}

.hero-stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-stat-value {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
}

.hero-stat-subtext {
  color: rgba(255, 255, 255, 0.82);
}

.partner-logo-card {
  width: 185px;
  min-height: 178px;
  border: 1px solid var(--saudi-green-border);
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.partner-logo-caption {
  font-size: 0.96rem;
  font-weight: 700;
  color: #173020;
}

.partner-logo-subcaption {
  font-size: 0.76rem;
  color: #6b7c70;
  line-height: 1.35;
}

.partner-logo-fallback {
  background: var(--saudi-green-soft);
  border-radius: 12px;
  padding: 18px 10px;
  color: var(--saudi-green);
}

.organism-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.organism-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(12, 54, 29, 0.11) !important;
}

.organism-card-title {
  min-height: 52px;
  font-size: 1rem;
}

.kpi-label {
  color: #5a6d60;
  font-weight: 600;
}

.kpi-value {
  color: #173020;
  font-weight: 800;
}

.kpi-subtext {
  color: #7a8a80;
  font-size: 0.9rem;
}

.kpi-icon {
  font-size: 1.2rem;
}

.kpi-highlight-card {
  background: linear-gradient(180deg, #eef9f2 0%, #ffffff 100%);
}

.map-legend-card {
  background: linear-gradient(135deg, #006c35 0%, #0f7d46 100%);
  color: #ffffff;
}

.contact-info-card {
  background: linear-gradient(180deg, #eef9f2 0%, #ffffff 100%);
}

.Select-control,
.Select__control {
  border-radius: 12px !important;
  border-color: #dce8df !important;
  box-shadow: none !important;
}

.form-control,
.form-select,
textarea {
  border-radius: 12px !important;
  border: 1px solid #dce8df !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: rgba(0, 108, 53, 0.45) !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 108, 53, 0.12) !important;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner th {
  background: var(--saudi-green-soft) !important;
}

@media (max-width: 992px) {
  .app-title {
    font-size: 30px;
  }

  .app-subtitle {
    font-size: 17px;
  }

  .hero-stat-value {
    font-size: 3rem;
  }

  .partner-logo-card {
    width: 100%;
  }
}

.platform-summary-card {
  background: linear-gradient(135deg, #006C35 0%, #0A8F4D 100%);
  color: #ffffff;
  border-radius: 18px;
  min-height: 220px;
  overflow: hidden;
  position: relative;
  animation: summaryFadeUp 0.9s ease-out;
}

.platform-summary-card::before {
  content: "";
  position: absolute;
  top: -35px;
  right: -35px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.summary-eyebrow {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.92;
}

.summary-total {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin: 0;
  animation: summaryPulse 2.5s ease-in-out infinite;
}

.summary-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  opacity: 0.97;
}

.summary-meta {
  font-size: 0.98rem;
  opacity: 0.92;
}

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

@keyframes summaryPulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(255,255,255,0);
  }
  50% {
    transform: scale(1.04);
    text-shadow: 0 0 18px rgba(255,255,255,0.18);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(255,255,255,0);
  }
}

.platform-summary-card {
  background: linear-gradient(135deg, #006C35 0%, #0A8F4D 100%);
  color: #ffffff;
  border-radius: 18px;
  min-height: 220px;
  overflow: hidden;
  position: relative;
}

.platform-summary-card::before {
  content: "";
  position: absolute;
  top: -35px;
  right: -35px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.summary-eyebrow {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.92;
}

.summary-total {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin: 0;
}

.summary-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  opacity: 0.97;
}

.summary-meta {
  font-size: 0.98rem;
  opacity: 0.92;
}