.observatory {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.observatory-header {
  text-align: center;
  margin-bottom: 3rem;
}

.observatory-header h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  color: #1a1a2e;
}

.observatory-intro {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

.last-update {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #888;
}

/* Sections */
.observatory-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.observatory-section h2 {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  color: #1a1a2e;
}

/* Indicators */
.indicators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.indicator-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border-left: 4px solid #6c757d;
  transition: transform 0.2s, box-shadow 0.2s;
}

.indicator-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.indicator-card.positive {
  border-left-color: #28a745;
}

.indicator-card.negative {
  border-left-color: #dc3545;
}

.indicator-name {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.indicator-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}

.indicator-unit {
  font-size: 0.9rem;
  font-weight: 400;
  color: #6c757d;
}

.indicator-change {
  font-size: 0.85rem;
  font-weight: 500;
}

.indicator-card.positive .indicator-change {
  color: #28a745;
}

.indicator-card.negative .indicator-change {
  color: #dc3545;
}

.indicator-updated,
.indicator-baseline {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 0.5rem;
}

/* Jurisdiction Cards */
.jurisdiction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.jurisdiction-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.jurisdiction-header {
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

.jurisdiction-card:nth-child(1) .jurisdiction-header {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

.jurisdiction-card:nth-child(2) .jurisdiction-header {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.jurisdiction-card:nth-child(3) .jurisdiction-header {
  background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.jurisdiction-body {
  padding: 1rem 1.5rem;
  background: #f8f9fa;
}

.budget-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.budget-row:last-child {
  border-bottom: none;
}

.budget-row .label {
  color: #6c757d;
}

.budget-row .value {
  font-weight: 600;
}

.budget-row.surplus .value {
  color: #28a745;
}

.budget-row.deficit .value {
  color: #dc3545;
}

.budget-row.revenues .value {
  color: #27ae60;
}

.budget-row.expenses .value {
  color: #e67e22;
}

/* Snapshot Timeline */
.snapshot-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.snapshot-point {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  text-align: center;
  min-width: 120px;
}

.snapshot-date {
  font-weight: 600;
  color: #1a1a2e;
}

.snapshot-type {
  font-size: 0.8rem;
  color: #6c757d;
}

.snapshot-count {
  font-size: 0.75rem;
  color: #aaa;
}

/* Sources Section */
.sources-section {
  background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
}

.about-content {
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.about-content li {
  margin-bottom: 0.5rem;
}

.disclaimer {
  font-size: 0.85rem;
  color: #6c757d;
  border-top: 1px solid #dee2e6;
  padding-top: 1rem;
  margin-top: 1rem;
}

.disclaimer a {
  color: #0d6efd;
}

/* Responsive */
@media (max-width: 768px) {
  .observatory {
    padding: 1rem;
  }
  
  .observatory-header h1 {
    font-size: 1.8rem;
  }
  
  .indicators-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .indicator-card {
    padding: 1rem;
  }
  
  .indicator-value {
    font-size: 1.4rem;
  }
}

/* Cycle Section */
.cycle-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.cycle-section h2 {
  color: white;
  margin-bottom: 0.5rem;
}

.cycle-info {
  text-align: center;
}

.cycle-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.cycle-dates {
  opacity: 0.9;
  font-size: 0.95rem;
}

.no-cycle {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

/* Proposals */
.proposals-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.proposal-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.25rem;
  border-left: 4px solid #667eea;
}

.proposal-header h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
}

.proposal-meta {
  font-size: 0.85rem;
  color: #6c757d;
}

.proposal-impact {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.variable-name {
  font-family: monospace;
  background: #e9ecef;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.change-value {
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.change-value.increase {
  background: #d4edda;
  color: #155724;
}

.change-value.decrease {
  background: #f8d7da;
  color: #721c24;
}

.proposal-votes {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.vote-support { color: #28a745; }
.vote-oppose { color: #dc3545; }
.vote-total { color: #6c757d; }

/* Projections */
.projections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.projection-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.projection-category {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #1a1a2e;
}

.projection-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1rem;
}

.projection-stats .stat .value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
}

.projection-stats .stat .label {
  font-size: 0.75rem;
  color: #6c757d;
}

.projection-timeline {
  font-size: 0.85rem;
  color: #6c757d;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-event {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #6c757d;
}

.timeline-event.start { border-left-color: #28a745; }
.timeline-event.end { border-left-color: #dc3545; }
.timeline-event.cycle_start { border-left-color: #28a745; }
.timeline-event.cycle_end { border-left-color: #dc3545; }

.event-date {
  font-weight: 600;
  min-width: 100px;
}

.event-type {
  font-weight: 500;
  min-width: 120px;
}

.event-detail {
  color: #6c757d;
  font-size: 0.9rem;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
  font-style: italic;
}

/* Model Accuracy Page */
.accuracy-overview {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.accuracy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.accuracy-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.accuracy-card.highlight-good {
  border: 2px solid #28a745;
}

.accuracy-card.highlight-bad {
  border: 2px solid #dc3545;
}

.accuracy-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a2e;
}

.accuracy-label {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.category-accuracy {
  margin-top: 2rem;
}

.accuracy-table {
  width: 100%;
  border-collapse: collapse;
}

.accuracy-table th,
.accuracy-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.accuracy-table th {
  background: #f8f9fa;
}

.grade {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  font-weight: 700;
  color: white;
}

.grade-a { background: #28a745; }
.grade-b { background: #5cb85c; }
.grade-c { background: #f0ad4e; }
.grade-f { background: #dc3545; }

.prediction-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prediction-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  border-left: 4px solid #6c757d;
}

.prediction-item.good {
  border-left-color: #28a745;
}

.prediction-item.bad {
  border-left-color: #dc3545;
}

.prediction-variable {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.prediction-compare {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #6c757d;
}

.prediction-error {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

.prediction-notes {
  font-size: 0.85rem;
  font-style: italic;
  color: #888;
  margin-top: 0.5rem;
}

.methodology {
  background: #f1f3f4;
}

.methodology-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.method-item h4 {
  margin: 0 0 0.5rem 0;
  color: #1a1a2e;
}

.method-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
}

.no-data {
  text-align: center;
  padding: 3rem;
  color: #6c757d;
}

/* Validation Admin */
.validation-admin {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.admin-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.validation-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.validation-table th,
.validation-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.validation-table th {
  background: #f8f9fa;
}

.validation-table tr.validated { background: #d4edda; }
.validation-table tr.partial { background: #fff3cd; }
.validation-table tr.inaccurate { background: #f8d7da; }

.actual-input {
  width: 120px;
  padding: 0.35rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.badge.good { background: #d4edda; color: #155724; }
.badge.partial { background: #fff3cd; color: #856404; }
.badge.bad { background: #f8d7da; color: #721c24; }

.over { color: #dc3545; }
.under { color: #28a745; }

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

.section-intro {
  color: #6c757d;
  margin-bottom: 1rem;
}

/* Schools Observatory */
.schools-observatory .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-card.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Leaderboard */
.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
}

.leaderboard-item.top-three {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
}

.leaderboard-item .rank {
  font-size: 1.5rem;
  font-weight: 700;
  width: 50px;
  text-align: center;
  color: #6c757d;
}

.leaderboard-item.top-three .rank {
  color: #856404;
}

.school-info {
  flex: 1;
}

.school-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.school-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #6c757d;
}

.leaderboard-item .badge {
  font-size: 1.5rem;
}

/* Activity Feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.activity-icon {
  font-size: 1.25rem;
}

.activity-content {
  flex: 1;
  font-size: 0.9rem;
}

.activity-time {
  font-size: 0.8rem;
  color: #6c757d;
}

/* Continuum Observatory */
.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.priorities-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.priority-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
}

.priority-rank {
  font-size: 1.25rem;
  font-weight: 700;
  width: 40px;
  text-align: center;
  color: #667eea;
}

.priority-info {
  flex: 1;
}

.priority-name {
  font-weight: 600;
}

.priority-category {
  font-size: 0.8rem;
  color: #6c757d;
}

.priority-stats {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
}

.proposal-count .count {
  font-weight: 600;
  font-size: 1.2rem;
}

.proposal-count .label {
  color: #6c757d;
}

.direction {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.direction.increase {
  background: #d4edda;
  color: #155724;
}

.direction.decrease {
  background: #f8d7da;
  color: #721c24;
}

/* Consensus/Contested */
.consensus-list,
.contested-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.consensus-item,
.contested-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
}

.consensus-item.increase {
  border-left: 4px solid #28a745;
}

.consensus-item.decrease {
  border-left: 4px solid #dc3545;
}

.item-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.item-votes {
  font-size: 0.85rem;
  color: #6c757d;
}

.item-direction {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.vote-bar {
  height: 8px;
  background: #f8d7da;
  border-radius: 4px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.vote-bar .support-bar {
  height: 100%;
  background: #28a745;
}

/* Geographic */
.geographic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.region-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.region-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.region-stats .stat {
  font-size: 0.85rem;
  color: #6c757d;
}

/* Transparency */
.transparency-content {
  font-size: 0.95rem;
  line-height: 1.7;
}

.transparency-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
