/* Page Header */
.charts-page-header {
  background-color: #f5f5f5;
  padding: 20px 30px;
  margin-bottom: 30px;
  border-left: 4px solid #0074bd;
}

.charts-page-title {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.charts-page-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Global Filter Container */
.global-filter-container {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 20px 30px;
  margin-bottom: 30px;
}

.global-filter-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.filter-icon {
  font-size: 20px;
}

.filter-year-range {
  margin-left: auto;
  color: #0074bd;
  font-weight: 600;
  font-size: 16px;
}

#global-year-slider {
  margin: 20px 0;
}

.filter-help-text {
  font-size: 13px;
  color: #666;
  margin: 10px 0 0 0;
}

/* Statistics Cards */
.statistics-cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-left: 4px solid #0074bd;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-description {
  font-size: 13px;
  color: #0074bd;
}

/* Chart Containers */
.chart-full-width {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 25px 30px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chart-full-width h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #0074bd;
}

.chart-subtitle {
  font-size: 13px;
  color: #666;
  margin: 0 0 15px 0;
}

.chart-row-two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.chart-box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 25px 30px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chart-box h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #0074bd;
}

.bar-chart {
  width: 100%;
  min-height: 400px;
}

.pie-chart {
  width: 100%;
  min-height: 350px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .statistics-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .statistics-cards-container {
    grid-template-columns: 1fr;
  }
  
  .chart-row-two-column {
    grid-template-columns: 1fr;
  }
}

/* Map Styles */
html, body, #map {
  height: 100%;
  padding: 0;
  margin: 0;
}

body > div.cartodb-header {
  display: none;
  position: absolute;
  top: 0px;
  width: 298px;
  background-color: rgba(0,0,0,.7);
  font-family: 'Helvetica', Helvetica, sans-serif;
  line-height: normal;
  z-index: 99999;
}

.leaflet-top {
  top: 45px;
}

.leaflet-top-pane {
  pointer-events: none;
}

.map-container {
  clear: both;
  position: relative;
  margin-top: 50px;
  height: 600px;
}

#infowindow_template {
  display: none;
}

/* Dialog Styles */
.cases-dialog.ui-dialog {
  padding: .3em !important;
  background-color: #fff !important;
}

.cases-dialog .ui-dialog-titlebar .ui-dialog-titlebar-close {
  float: right !important;
}

.cases-dialog .ui-dialog-titlebar {
  background-color: #0074bd !important;
}

.ui-dialog-titlebar .ui-dialog-title {
  color: #fff !important;
  padding: 10px !important;
}

#cases-container ul {
  padding: 10px !important;
}

#cases-container {
  padding: 10px;
  min-height: 200px;
  max-height: 400px;
  overflow: auto;
}

.cases-dialog .ui-dialog-buttonset {
  float: right;
  margin-right: 15px;
  background: #0074bd;
  color: white;
}

/* Chart Interactions */
.chart-container {
  cursor: default;
}

.chart-container:hover {
  cursor: pointer;
}
