/**
 * ============================================================================
 * DASHBOARD COMPONENTS STYLESHEET
 * ============================================================================
 * 
 * Styles for:
 * - KPI Cards
 * - Filter controls
 * - Panel layouts
 * - Chart containers
 * - Modern dashboard elements
 * - Responsive design
 */

/* ===== KPI CARDS ===== */
.kpi-card {
  background: white;
  border: 2px solid rgba(0, 102, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all 0.3s ease;
  cursor: default;
}

.kpi-card:hover {
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.15);
  border-color: rgba(0, 102, 255, 0.3);
  transform: translateY(-2px);
}

.kpi-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.kpi-content {
  flex: 1;
  min-width: 0;
}

.kpi-label {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0066ff;
  line-height: 1.2;
  word-break: break-word;
}

.kpi-value.karbon-metric {
  font-size: 1.85rem;
}

.kpi-unit {
  font-size: 0.75rem;
  color: #999;
  font-weight: 500;
  margin-top: 2px;
}

/* ===== FILTER CONTROLS ===== */
.filter-group {
  margin-bottom: 16px;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0066ff;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.5px;
}

.filter-select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid rgba(0, 102, 255, 0.15);
  border-radius: 8px;
  background: white;
  color: #333;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.filter-select:hover {
  border-color: rgba(0, 102, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.08);
}

.filter-select:focus {
  border-color: #0066ff;
  box-shadow: 0 2px 12px rgba(0, 102, 255, 0.15);
  outline: none;
}

.filter-select:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ===== PREMIUM STREAM & TABLE STYLES ===== */
.stock-exchange-panel {
  margin-top: 24px;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(255, 255, 255, 0.95));
  border-radius: 18px;
  border: 1px solid rgba(0, 102, 255, 0.12);
  box-shadow: 0 18px 36px rgba(0, 102, 255, 0.06);
}

.ticker-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0d3b66;
  margin-bottom: 12px;
}

.ticker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 102, 255, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: #10375c;
  font-size: 0.85rem;
  font-weight: 600;
}

.ticker-positive {
  background: rgba(23, 162, 184, 0.12);
  border-color: rgba(23, 162, 184, 0.2);
  color: #0b7285;
}

.ticker-negative {
  background: rgba(220, 53, 69, 0.12);
  border-color: rgba(220, 53, 69, 0.2);
  color: #b02a37;
}

.zona-callout {
  padding: 18px 20px;
  background: rgba(0, 102, 255, 0.08);
  border-radius: 18px;
  border: 1px solid rgba(0, 102, 255, 0.14);
  margin-bottom: 22px;
}

.zona-note {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1d3557;
}

.zona-summary-panel {
  background: white;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(0, 102, 255, 0.12);
  box-shadow: 0 18px 42px rgba(0, 102, 255, 0.05);
}

.zona-summary-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.zona-badge {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4ecdc4, #1a7a6c);
  color: white;
  font-size: 1.3rem;
}

.zona-summary-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.zona-summary-table thead tr {
  background: transparent;
}

.zona-summary-table th,
.zona-summary-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.92rem;
}

.zona-summary-table th {
  color: #1a472a;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.zona-summary-table tbody tr {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.03);
}

.zona-summary-table tbody tr:hover {
  background: rgba(78, 205, 196, 0.08);
}

.zona-summary-table td {
  color: #3b4a62;
}

.zona-summary-table td strong {
  color: #0d3b66;
}

.zona-konservasi-row td:first-child {
  color: #117a65;
}

.zona-rehabilitasi-row td:first-child {
  color: #b36b00;
}

.zona-summary-table-wrapper {
  overflow: hidden;
  border-radius: 20px;
  background: #f8fbfb;
}

.karbon-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.karbon-summary-card {
  background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 100%);
  border-radius: 18px;
  border: 1px solid rgba(0, 102, 255, 0.12);
  padding: 20px;
  box-shadow: 0 14px 28px rgba(0, 102, 255, 0.05);
}

.karbon-summary-card h4 {
  margin: 0 0 8px;
  color: #0d3b66;
  font-size: 1rem;
}

.karbon-summary-card p {
  margin: 6px 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #42526e;
}

.karbon-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.karbon-table thead tr {
  background: linear-gradient(135deg, #e8f1ff 0%, #ffffff 100%);
}

.karbon-table th,
.karbon-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.92rem;
}

.karbon-table th {
  color: #0d3b66;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 2px solid rgba(0, 102, 255, 0.12);
}

.karbon-table tbody tr {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.25s ease;
}

.karbon-table tbody tr:hover {
  background: rgba(0, 102, 255, 0.06);
}

.karbon-table tbody td {
  color: #3c4a63;
}

.karbon-table tbody tr:nth-child(odd) {
  background: rgba(246, 248, 255, 0.9);
}

.karbon-table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  .karbon-table {
    min-width: 100%;
  }
  
  .zona-summary-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  
  .karbon-table {
    overflow: visible;
  }
}

.filter-select option {
  padding: 10px;
  background: white;
  color: #333;
}

/* ===== YEAR TOGGLE BUTTONS ===== */
.year-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.year-btn {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid rgba(0, 102, 255, 0.2);
  background: white;
  color: #0066ff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.year-btn:hover {
  border-color: #0066ff;
  background: rgba(0, 102, 255, 0.05);
}

.year-btn.active {
  background: #0066ff;
  color: white;
  border-color: #0066ff;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* ===== PANEL TABS ===== */
.panel-tabs {
  display: flex;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid rgba(0, 102, 255, 0.1);
  background: #fafbff;
}

.panel-tab {
  flex: 1;
  padding: 14px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 600;
  color: #666;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  position: relative;
  font-family: 'Poppins', sans-serif;
}

.panel-tab:hover {
  color: #0066ff;
  background: rgba(0, 102, 255, 0.02);
}

.panel-tab.active {
  color: #0066ff;
  border-bottom-color: #0066ff;
  background: rgba(0, 102, 255, 0.02);
}

.panel-tab i {
  margin-right: 6px;
}

/* ===== TAB PANES ===== */
.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

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

/* ===== CHART CONTAINERS ===== */
.chart-container {
  background: white;
  border: 1px solid rgba(0, 102, 255, 0.1);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.chart-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0066ff;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chart-wrapper {
  position: relative;
  height: auto;
}

canvas {
  max-height: 300px;
}

/* ===== STAT ROWS ===== */
.stat-row {
  background: white;
  border: 1px solid rgba(0, 102, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.stat-row:hover {
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.08);
  transform: translateX(2px);
}

.stat-label {
  font-weight: 600;
  color: #333;
  flex: 1;
  padding: 0 12px 0 0;
}

.stat-value {
  font-weight: 700;
  color: #0066ff;
  font-size: 0.95rem;
  text-align: right;
}

/* ===== BADGES & INDICATORS ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: rgba(0, 179, 0, 0.1);
  color: #00b300;
}

.badge-warning {
  background: rgba(255, 170, 0, 0.1);
  color: #ffaa00;
}

.badge-danger {
  background: rgba(255, 51, 51, 0.1);
  color: #ff3333;
}

.badge-info {
  background: rgba(0, 102, 255, 0.1);
  color: #0066ff;
}

/* ===== TREND INDICATORS ===== */
.trend-up {
  color: #00b300;
}

.trend-down {
  color: #ff3333;
}

.trend-stable {
  color: #ffaa00;
}

/* ===== SCROLLBAR STYLING ===== */
.panel-content::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.panel-content::-webkit-scrollbar-track {
  background: rgba(0, 102, 255, 0.05);
  border-radius: 10px;
}

.panel-content::-webkit-scrollbar-thumb {
  background: rgba(0, 102, 255, 0.25);
  border-radius: 3px;
}

.panel-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 102, 255, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .kpi-card {
    padding: 12px;
    gap: 10px;
  }
  
  .kpi-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  
  .kpi-value {
    font-size: 1.3rem;
  }
}

@media (max-width: 992px) {
  .kpi-card {
    padding: 10px;
  }
  
  .kpi-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .kpi-value {
    font-size: 1.1rem;
  }
  
  .kpi-label {
    font-size: 0.7rem;
  }
  
  .panel-tab {
    padding: 12px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .kpi-card {
    padding: 8px;
    gap: 8px;
  }
  
  .kpi-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .kpi-value {
    font-size: 1rem;
  }
  
  .kpi-label {
    font-size: 0.65rem;
  }
  
  .kpi-unit {
    font-size: 0.7rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes slideIn {
  from {
    transform: translateX(-10px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

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

.fade-in-up {
  animation: fadeInUp 0.3s ease-out;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: #999;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.uppercase {
  text-transform: uppercase;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-12 {
  margin-bottom: 12px;
}

.mb-16 {
  margin-bottom: 16px;
}

.p-12 {
  padding: 12px;
}

.p-16 {
  padding: 16px;
}

.br-8 {
  border-radius: 8px;
}

.br-10 {
  border-radius: 10px;
}

.br-12 {
  border-radius: 12px;
}

/* ===== GRID LAYOUT ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== FLEX UTILITIES ===== */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-around {
  justify-content: space-around;
}

/* ===== FOREST RATE CARDS ===== */
.forest-rate-dashboard {
  padding: 20px;
}

.forest-rate-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.forest-rate-card {
  background: white;
  border: 2px solid rgba(0, 102, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.forest-rate-card:hover {
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
  transform: translateY(-4px);
  border-color: rgba(0, 102, 255, 0.3);
}

.card-header {
  padding: 16px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 180, 216, 0.05));
}

.card-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.metric {
  background: #fafbff;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.metric-label {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0066ff;
  line-height: 1.2;
  margin-bottom: 2px;
}

.metric-unit {
  font-size: 0.7rem;
  color: #999;
  font-weight: 500;
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: pulse 2s ease-in-out infinite;
}

.detail-btn {
  background: linear-gradient(135deg, #0066ff, #00b4d8);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  margin-top: auto;
}

.detail-btn:hover {
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
  transform: translateY(-2px);
}

.detail-btn:active {
  transform: translateY(0);
}

.sort-controls {
  display: flex;
  gap: 8px;
}

.sort-btn {
  padding: 8px 12px;
  border: 2px solid rgba(0, 102, 255, 0.2);
  background: white;
  color: #0066ff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sort-btn:hover {
  border-color: #0066ff;
  background: rgba(0, 102, 255, 0.05);
}

.sort-btn.active {
  background: #0066ff;
  color: white;
  border-color: #0066ff;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.pagination-btn {
  padding: 10px 16px;
  border: 2px solid rgba(0, 102, 255, 0.2);
  background: white;
  color: #0066ff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-btn:hover:not(.disabled) {
  background: rgba(0, 102, 255, 0.05);
  border-color: #0066ff;
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== RESPONSIVE CARDS ===== */
@media (max-width: 1400px) {
  .forest-rate-cards {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 992px) {
  .forest-rate-cards {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .sort-controls {
    flex-wrap: wrap;
  }
  
  .sort-btn {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}

@media (max-width: 768px) {
  .forest-rate-cards {
    grid-template-columns: 1fr;
  }
  
  .metric-row {
    grid-template-columns: 1fr;
  }
  
  .sort-controls {
    width: 100%;
    margin-top: 10px;
  }
}

/* ===== ZONE DASHBOARD ===== */
.zone-dashboard {
  padding: 20px;
}

.zone-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zone-summary-card {
  animation: slideIn 0.3s ease-out;
}

.zone-regency-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.zone-regency-item {
  animation: fadeInUp 0.3s ease-out;
}

/* ===== CARBON STOCK DASHBOARD ===== */
.carbon-dashboard {
  padding: 20px;
}

.metric-card {
  border-radius: 12px;
  padding: 16px;
  animation: slideIn 0.3s ease-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.detail-level-selector {
  display: flex;
  gap: 8px;
}

.level-btn {
  padding: 8px 12px;
  border: 2px solid rgba(0, 102, 255, 0.2);
  background: white;
  color: #0066ff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.level-btn:hover {
  border-color: #0066ff;
  background: rgba(0, 102, 255, 0.05);
}

.level-btn.active {
  background: #0066ff;
  color: white;
  border-color: #0066ff;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* ===== RESPONSIVE GRID ===== */
@media (max-width: 1200px) {
  .zone-regency-breakdown {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 992px) {
  .zone-regency-breakdown {
    grid-template-columns: 1fr;
  }
  
  .detail-level-selector {
    margin-top: 12px;
    width: 100%;
  }
  
  .level-btn {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .zone-dashboard,
  .carbon-dashboard {
    padding: 12px;
  }
  
  .stock-exchange-panel {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
  }
  
  .ticker-header {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
  
  .ticker-chip {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .zona-callout {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
  }
  
  .zona-note {
    font-size: 0.9rem;
  }
  
  .zona-summary-panel {
    padding: 16px;
    border-radius: 16px;
  }
  
  .zona-summary-head {
    gap: 10px;
    margin-bottom: 14px;
  }
  
  .zona-badge {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .zona-summary-table th,
  .zona-summary-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  
  .karbon-summary-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
  }
  
  .karbon-summary-card {
    padding: 16px;
    border-radius: 14px;
  }
  
  .karbon-summary-card h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
  
  .karbon-summary-card p {
    font-size: 0.82rem;
  }
  
  .filter-group {
    margin-bottom: 12px;
  }
  
  .filter-label {
    font-size: 0.7rem;
    margin-bottom: 4px;
  }
  
  .filter-select {
    padding: 8px 10px;
    font-size: 0.85rem;
    border-radius: 6px;
  }
  
  .year-btn {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  
  .panel-tab {
    padding: 10px 8px;
    font-size: 0.8rem;
  }
  
  .chart-container {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
  }
  
  .chart-title {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }
  
  .stat-row {
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .stat-value {
    font-size: 0.9rem;
  }
  
  .metric-row {
    gap: 8px;
    margin-bottom: 10px;
  }
  
  .metric {
    padding: 10px;
    border-radius: 6px;
  }
  
  .metric-label {
    font-size: 0.65rem;
    margin-bottom: 2px;
  }
  
  .metric-value {
    font-size: 1.1rem;
  }
  
  .metric-unit {
    font-size: 0.65rem;
  }
  
  .card-header {
    padding: 12px;
  }
  
  .card-content {
    padding: 12px;
  }
}

@media (max-width: 600px) {
  .stock-exchange-panel {
    margin-top: 12px;
    padding: 12px 14px;
  }
  
  .ticker-header {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }
  
  .ticker-row {
    gap: 8px;
  }
  
  .ticker-chip {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  
  .zona-callout {
    padding: 12px 14px;
    margin-bottom: 12px;
  }
  
  .zona-note {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  .zona-summary-panel {
    padding: 14px;
    border-radius: 12px;
  }
  
  .zona-summary-head {
    gap: 8px;
    margin-bottom: 12px;
  }
  
  .zona-badge {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .zona-summary-table {
    border-spacing: 0 8px;
  }
  
  .zona-summary-table th,
  .zona-summary-table td {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  
  .karbon-summary-cards {
    margin-top: 12px;
    gap: 10px;
  }
  
  .karbon-summary-card {
    padding: 12px;
  }
  
  .karbon-summary-card h4 {
    font-size: 0.9rem;
  }
  
  .karbon-summary-card p {
    font-size: 0.8rem;
  }
  
  .filter-select {
    padding: 6px 8px;
    font-size: 0.8rem;
  }
  
  .year-btn {
    padding: 6px 8px;
    font-size: 0.75rem;
  }
  
  .panel-tab {
    padding: 8px 6px;
    font-size: 0.75rem;
  }
  
  .chart-container {
    padding: 10px;
    margin-bottom: 10px;
  }
  
  .chart-title {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }
  
  .stat-row {
    padding: 8px;
    margin-bottom: 6px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .stat-label {
    font-size: 0.75rem;
    margin-bottom: 2px;
  }
  
  .stat-value {
    font-size: 0.85rem;
    text-align: left;
  }
  
  .metric-row {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 8px;
  }
  
  .metric {
    padding: 8px;
  }
  
  .metric-label {
    font-size: 0.6rem;
  }
  
  .metric-value {
    font-size: 1rem;
  }
  
  .card-header {
    padding: 10px;
  }
  
  .card-content {
    padding: 10px;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .kpi-card {
    flex-direction: column;
    padding: 6px;
    gap: 6px;
  }
  
  .kpi-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .kpi-value {
    font-size: 0.9rem;
  }
  
  .kpi-label {
    font-size: 0.6rem;
  }
  
  .kpi-unit {
    font-size: 0.65rem;
  }
  
  .stock-exchange-panel {
    padding: 10px 12px;
  }
  
  .ticker-header {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
  
  .ticker-chip {
    padding: 5px 8px;
    font-size: 0.7rem;
  }
  
  .zona-callout {
    padding: 10px 12px;
    margin-bottom: 10px;
  }
  
  .zona-summary-panel {
    padding: 12px;
  }
  
  .zona-summary-table th,
  .zona-summary-table td {
    padding: 6px 8px;
    font-size: 0.75rem;
  }
  
  .karbon-summary-card {
    padding: 10px;
  }
  
  .filter-select {
    padding: 5px 6px;
    font-size: 0.75rem;
  }
  
  .chart-container {
    padding: 8px;
    margin-bottom: 8px;
  }
  
  .chart-title {
    font-size: 0.7rem;
  }
  
  .year-btn {
    padding: 5px 6px;
    font-size: 0.7rem;
  }
}

@media (max-width: 390px) {
  .kpi-card {
    padding: 4px;
  }
  
  .kpi-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .filter-select {
    font-size: 0.7rem;
  }
  
  .zona-summary-table th,
  .zona-summary-table td {
    padding: 5px 6px;
    font-size: 0.7rem;
  }
}

@media (max-width: 360px) {
  .stock-exchange-panel {
    margin-top: 8px;
    padding: 8px 10px;
  }
  
  .ticker-chip {
    padding: 4px 6px;
    font-size: 0.65rem;
  }
  
  .zona-callout {
    padding: 8px 10px;
  }
  
  .filter-select {
    padding: 4px 5px;
    font-size: 0.65rem;
  }
}
