/* CSS Variables */
:root {
  --primary-bg: rgba(255, 255, 255, 0.95);
  --shadow: 0 4px 15px rgba(0,0,0,0.1);
  --border-radius: 15px;
  --padding: 20px;
  --margin-vertical: 20px;
  --primary-color: #667eea;
  --good-color: rgba(76, 175, 80, 0.9);
  --caution-color: rgba(255, 152, 0, 0.5);
  --poor-color: rgba(244, 67, 54, 0.9);
  --text-color: #333;
  --light-bg: #d9dee6;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--light-bg);
  min-height: 100vh;
  padding: 20px;
}

body.overlay-active {
  overflow: hidden;
}

/* Utility Classes */
.section {
  background: var(--primary-bg);
  border-radius: var(--border-radius);
  padding: var(--padding);
  margin: var(--margin-vertical) 0;
  box-shadow: var(--shadow);
}

.btn-base {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-bg);
  border-radius: 20px;
  padding: 8px 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 2px solid var(--primary-color);
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-base:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.btn-base:focus-visible {
  outline: 3px solid rgba(102, 126, 234, 0.35);
  outline-offset: 2px;
}

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

.section-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text-color);
}

/* Legacy condition classes (for compatibility) */
.good { color: var(--good-color); }
.caution { color: var(--caution-color); }
.poor { color: var(--poor-color); }

.skip-link {
position: absolute;
top: -40px;
left: 20px;
background: #764ba2;
color: #fff;
padding: 8px 16px;
border-radius: 6px;
transition: top 0.2s ease;
z-index: 1000;
}

.skip-link:focus {
top: 20px;
}

.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}

.container {
max-width: 1200px;
margin: 0 auto;
}

.header {
text-align: center;
color: white;
margin-bottom: 30px;
}

.header h1 {
font-size: 3rem;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
margin-left: 12px;
border-radius: 999px;
font-size: 0.85rem;
font-weight: 600;
letter-spacing: 0.05em;
text-transform: uppercase;
background: rgba(255, 255, 255, 0.2);
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.35);
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
backdrop-filter: blur(4px);
}

.header p {
font-size: 1.2rem;
opacity: 0.9;
}

.site-info {
  background: var(--primary-bg);
  border-radius: var(--border-radius);
  padding: var(--padding);
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.loading {
text-align: center;
padding: 40px;
color: #666;
font-size: 1.2rem;
}

.error {
background: #ff6b6b;
color: white;
padding: 20px;
border-radius: 10px;
text-align: center;
}


.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.controls .btn,
.controls .period-select,
.controls .temp-unit-toggle,
.controls .filters-toggle-btn {
    outline: none;
}

.controls .btn:focus-visible,
.controls .period-select:focus-visible,
.controls .temp-unit-toggle:focus-visible,
.controls .filters-toggle-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.35);
    outline: none;
}


.category-filters {
  background: var(--primary-bg);
  border-radius: var(--border-radius);
  padding: var(--padding);
  margin: var(--margin-vertical) 0;
  box-shadow: var(--shadow);
}

.filters-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}

.filters-title {
font-size: 1.1rem;
font-weight: bold;
color: #333;
text-align: center;
margin-bottom: 15px;
}

.filters-toggle-btn {
display: flex;
align-items: center;
gap: 8px;
background: rgba(255, 255, 255, 0.95);
border-radius: 20px;
padding: 8px 15px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
border: 2px solid #667eea;
font-size: 0.9rem;
font-weight: bold;
color: #333;
cursor: pointer;
transition: all 0.2s;
}

.filters-toggle-btn:hover {
background: rgba(102, 126, 234, 0.1);
transform: translateY(-1px);
}

.temp-unit-toggle {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgba(255, 255, 255, 0.95);
border-radius: 20px;
padding: 8px 15px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
border: 2px solid #667eea;
}

.temp-unit-label {
font-size: 0.9rem;
font-weight: bold;
color: #333;
}

.temp-toggle-switch {
position: relative;
display: inline-flex;
align-items: center;
width: 52px;
height: 26px;
padding: 2px;
border-radius: 13px;
background: #ddd;
}

.temp-toggle-input {
position: absolute;
opacity: 0;
width: 1px;
height: 1px;
}

.temp-toggle-slider {
position: relative;
width: 22px;
height: 22px;
border-radius: 50%;
background: #fff;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
transition: transform 0.3s ease, background 0.3s ease;
}

.temp-toggle-input:focus-visible + .temp-toggle-slider {
outline: 3px solid rgba(102, 126, 234, 0.5);
outline-offset: 2px;
}

.temp-toggle-switch::before {
content: '';
position: absolute;
inset: 2px;
border-radius: 11px;
background: #ddd;
transition: background 0.3s ease;
}

.temp-toggle-switch:has(.temp-toggle-input:checked)::before {
background: #667eea;
}

.temp-toggle-input:checked + .temp-toggle-slider {
transform: translateX(26px);
color: #fff;
}

.temp-unit-text {
font-size: 0.8rem;
font-weight: bold;
min-width: 15px;
transition: opacity 0.2s ease;
}

.temp-unit-text:first-of-type {
opacity: 0.6;
}

.temp-toggle-input:checked ~ .temp-unit-text:first-of-type {
opacity: 1;
}

.temp-toggle-input:checked ~ .temp-unit-text:last-of-type {
opacity: 0.6;
}

.summary-cards-section {
  background: var(--primary-bg);
  border-radius: var(--border-radius);
  padding: var(--padding);
  margin: var(--margin-vertical) 0;
  box-shadow: var(--shadow);
}

.summary-cards-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.summary-cards-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text-color);
}

.table-toggle-btn{
    padding: 4px 8px; 
    font-size: 0.9em; 
    cursor: pointer
}

.data-tables-section {
  background: var(--primary-bg);
  border-radius: var(--border-radius);
  padding: var(--padding);
  margin: var(--margin-vertical) 0;
  box-shadow: var(--shadow);
}

.data-tables-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.data-tables-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text-color);
}

.day-date {
    margin-left: 10px;
}

.data-tables-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-bg);
  border-radius: 20px;
  padding: 8px 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 2px solid var(--primary-color);
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s;
}

.data-tables-toggle-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.usace-controls {
display: flex;
align-items: center;
gap: 15px;
}

.usace-toggle-btn {
display: flex;
align-items: center;
gap: 8px;
background: rgba(255, 255, 255, 0.95);
border-radius: 20px;
padding: 8px 15px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
border: 2px solid #667eea;
font-size: 0.9rem;
font-weight: bold;
color: #333;
cursor: pointer;
transition: all 0.2s;
}

.usace-toggle-btn:hover {
background: rgba(102, 126, 234, 0.1);
transform: translateY(-1px);
}

.filters-content {
transition: all 0.3s ease;
overflow: hidden;
}

.filters-content.collapsed {
max-height: 0;
opacity: 0;
margin-bottom: 0;
}

.filters-content.expanded {
max-height: 500px;
opacity: 1;
}

.filter-controls {
display: flex;
justify-content: center;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 15px;
}

.filter-btn {
background: #f8f9fa;
border: 2px solid #dee2e6;
color: #495057;
padding: 8px 15px;
border-radius: 20px;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.2s;
}

.filter-btn:hover {
background: #e9ecef;
}

.filter-btn.active {
background: #667eea;
color: white;
border-color: #667eea;
}

.category-toggles {
display: flex;
justify-content: center;
gap: 15px;
flex-wrap: wrap;
}

.category-toggle {
display: flex;
align-items: center;
gap: 8px;
background: #f8f9fa;
padding: 10px 15px;
border-radius: 25px;
border: 2px solid #dee2e6;
cursor: pointer;
transition: all 0.2s;
font-size: 0.9rem;
}

.category-toggle:hover {
background: #e9ecef;
}

.category-toggle.active {
background: rgba(102, 126, 234, 0.1);
border-color: #667eea;
color: #667eea;
}

.category-toggle.demo {
border-color: #e74c3c;
color: #c0392b;
}

.category-toggle.demo.active {
background: rgba(231, 76, 60, 0.1);
border-color: #e74c3c;
}

.toggle-checkbox {
width: 18px;
height: 18px;
border-radius: 3px;
border: 2px solid #dee2e6;
background: white;
position: relative;
flex-shrink: 0;
}

.toggle-checkbox.checked {
background: #667eea;
border-color: #667eea;
}

.toggle-checkbox.checked.demo {
background: #e74c3c;
border-color: #e74c3c;
}

.toggle-checkbox.checked::after {
content: '✓';
position: absolute;
top: -2px;
left: 2px;
color: white;
font-size: 12px;
font-weight: bold;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 2px solid #667eea;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.35);
    outline-offset: 2px;
}

.btn:active,
.btn.active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.period-select {
    padding: 8px 36px 8px 15px;
    border-radius: 20px;
    border: 2px solid #667eea;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
    min-width: 180px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2210%22 height=%226%22 viewBox=%220 0 10 6%22%3E%3Cpath fill=%23667eea d=%22M0 0l5 6 5-6z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.period-select:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.period-select:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.35);
    outline-offset: 2px;
}

.data-table {
width: 100%;
border-collapse: collapse;
background: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
margin-bottom: 20px;
}

.data-table th,
.data-table td {
padding: 12px 15px;
text-align: left;
border-bottom: 1px solid #eee;
}

.data-table th {
background: #667eea;
color: white;
font-weight: bold;
position: sticky;
top: 0;
}

.data-table tr:hover {
background-color: #f8f9fa;
}

.data-table.demo th {
background: #e74c3c;
}

.data-table.demo tr:hover {
background-color: #ffe6e6;
}

.summary-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.summary-cards-container:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.35);
    outline-offset: 6px;
}

.summary-card {
background: rgba(255, 255, 255, 0.95);
border-radius: 15px;
padding: 20px;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 15px;
}

.summary-card.demo {
background: rgba(255, 230, 230, 0.95);
border-left: 4px solid #e74c3c;
}

.summary-info {
flex: 1;
min-width: 200px;
}

.summary-title {
font-size: 1.1rem;
font-weight: bold;
color: #333;
margin-bottom: 5px;
}

.summary-title.demo {
color: #c0392b;
}

.latest-value {
font-size: 2rem;
font-weight: bold;
color: #2c3e50;
margin-bottom: 5px;
}

.latest-value.demo {
color: #c0392b;
}

.time-since {
color: #666;
font-size: 0.9rem;
}

.trend-indicator {
display: flex;
flex-direction: column;
align-items: center;
min-width: 100px;
}

.trend-arrow {
font-size: 2rem;
margin-bottom: 5px;
}

.trend-up {
color: #e74c3c;
}

.trend-down {
color: #27ae60;
}

.trend-stable {
color: #f39c12;
}

.trend-text {
font-size: 0.8rem;
font-weight: bold;
text-transform: uppercase;
}

.rate-of-change {
font-size: 0.75rem;
margin-top: 3px;
font-weight: normal;
}

.dam-summary-card {
background: rgba(255, 255, 255, 0.95);
border-radius: 15px;
padding: 20px;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 15px;
}

.dam-info {
flex: 1;
min-width: 200px;
}

.dam-title {
font-size: 1.1rem;
font-weight: bold;
color: #333;
margin-bottom: 5px;
}

.dam-current-value {
font-size: 2rem;
font-weight: bold;
color: #2c3e50;
margin-bottom: 5px;
}

.dam-status-info {
color: #666;
font-size: 0.9rem;
}

.dam-indicator {
display: flex;
flex-direction: column;
align-items: center;
min-width: 200px;
}

.dam-changes-container {
display: flex;
gap: 15px;
justify-content: center;
width: 100%;
}

.dam-status-badge {
padding: 8px 16px;
border-radius: 20px;
font-weight: bold;
font-size: 0.9rem;
text-transform: uppercase;
margin-bottom: 8px;
}
.dam-next-change {
font-size: 0.75rem;
text-align: center;
color: #666;
flex: 1;
min-width: 80px;
}

.dam-previous-change {
font-size: 0.75rem;
text-align: center;
color: #666;
flex: 1;
min-width: 80px;
}

.usace-section {
background: rgba(255, 255, 255, 0.95);
border-radius: 15px;
padding: 25px;
margin: 20px 0;
box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.usace-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
flex-wrap: wrap;
gap: 10px;
}

.usace-title {
font-size: 1.5rem;
font-weight: bold;
color: #2c3e50;
}

.usace-subtitle {
color: #666;
font-size: 0.9rem;
margin-top: 5px;
}

.generation-status {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 20px;
border-radius: 25px;
font-weight: bold;
font-size: 0.9rem;
}

.status-base {
background: rgba(40, 167, 69, 0.1);
color: #28a745;
border: 2px solid #28a745;
}

.status-peak {
background: rgba(220, 53, 69, 0.1);
color: #dc3545;
border: 2px solid #dc3545;
}

.status-intermediate {
background: rgba(255, 193, 7, 0.1);
color: #ffc107;
border: 2px solid #ffc107;
}

.generation-tables {
display: flex;
flex-direction: column;
gap: 20px;
margin-top: 20px;
}

.day-table-title {
font-size: 1.2rem;
font-weight: bold;
color: #2c3e50;
margin-bottom: 15px;
display: flex;
justify-content: space-between;
align-items: center;
}

.day-date {
color: #666;
font-size: 0.9rem;
font-weight: normal;
}

.generation-table {
width: 100%;
border-collapse: collapse;
background: white;
border-radius: 8px;
overflow: hidden;
}

.generation-table th {
background: #667eea;
color: white;
padding: 12px 15px;
text-align: left;
font-weight: bold;
}

.generation-table td {
padding: 10px 15px;
border-bottom: 1px solid #eee;
}

.generation-table tr:hover {
background-color: #f8f9fa;
}

.generation-table tr.current-hour {
background-color: rgba(102, 126, 234, 0.1);
font-weight: bold;
}

.generation-table tr.current-hour td {
border-left: 4px solid #667eea;
}

.status-cell {
text-transform: uppercase;
font-weight: bold;
font-size: 0.8rem;
padding: 4px 8px;
border-radius: 12px;
text-align: center;
}

.status-cell.base {
background: rgba(40, 167, 69, 0.1);
color: #28a745;
}

.status-cell.peak {
background: rgba(220, 53, 69, 0.1);
color: #dc3545;
}

.status-cell.intermediate {
background: rgba(255, 193, 7, 0.1);
color: #856404;
}

.mw-value {
font-weight: bold;
font-size: 1.1rem;
}

.usace-info {
background: rgba(23, 162, 184, 0.1);
border: 1px solid #17a2b8;
border-radius: 8px;
padding: 15px;
margin-top: 20px;
}

.usace-info h4 {
color: #17a2b8;
margin-bottom: 10px;
}

.table-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow-x: auto;
    position: relative;
}

.table-container-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(102, 126, 234, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    pointer-events: none;
    position: absolute;
    bottom: 12px;
    right: 20px;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.table-container.scrollable .table-container-scroll-hint {
    opacity: 1;
    transform: translateX(0);
    animation: hint-pulse 2.4s ease-in-out infinite 1.2s;
}

@keyframes hint-pulse {
    0% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(-6px); opacity: 0.75; }
    100% { transform: translateX(0); opacity: 1; }
}

.last-updated {
text-align: center;
color: #666;
font-size: 0.9rem;
margin-top: 20px;
padding: 10px;
}

.legal-disclaimer {
background: rgba(248, 249, 250, 0.95);
border: 1px solid #dee2e6;
border-radius: 8px;
padding: 15px;
margin: 20px 0 10px 0;
font-size: 0.85rem;
color: #495057;
line-height: 1.4;
}

.legal-disclaimer p {
margin: 0;
}

.legal-disclaimer strong {
color: #212529;
}

.proxy-attribution {
background: rgba(255, 255, 255, 0.85);
border-radius: 8px;
padding: 12px 15px;
font-size: 0.8rem;
color: #333;
line-height: 1.4;
}

.proxy-attribution a {
color: #4c6ef5;
text-decoration: underline;
}

.site-footer {
margin-top: 20px;
display: grid;
gap: 16px;
}

.skeleton-container {
display: grid;
gap: 16px;
}

.skeleton-card {
background: rgba(255, 255, 255, 0.8);
padding: 20px;
border-radius: 15px;
box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
display: grid;
gap: 10px;
}

.skeleton {
background: #d5d9df;
background-size: 200% 100%;
animation: shimmer 1.2s ease-in-out infinite;
border-radius: 6px;
}

.skeleton-title {
height: 16px;
width: 60%;
}

.skeleton-value {
height: 24px;
width: 40%;
}

.skeleton-subtext {
height: 12px;
width: 70%;
}

.table-skeleton {
display: grid;
gap: 12px;
margin: 20px 0;
}

.table-skeleton .skeleton-row {
height: 18px;
border-radius: 8px;
}

@keyframes shimmer {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}

/* Custom tooltip styling */
[title] {
position: relative;
text-transform: none;
}

[title]:hover::after {
content: attr(title);
position: absolute;
bottom: 125%;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.9);
color: white;
padding: 8px 12px;
border-radius: 6px;
font-size: 0.85rem;
white-space: nowrap;
z-index: 1000;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
pointer-events: none;
opacity: 0;
animation: tooltipFadeIn 0.2s ease-out forwards;
}

[title]:hover::before {
content: '';
position: absolute;
bottom: 115%;
left: 50%;
transform: translateX(-50%);
border: 5px solid transparent;
border-top-color: rgba(0, 0, 0, 0.9);
z-index: 1000;
pointer-events: none;
opacity: 0;
animation: tooltipFadeIn 0.2s ease-out forwards;
}

@keyframes tooltipFadeIn {
from {
opacity: 0;
transform: translateX(-50%) translateY(5px);
}
to {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
}

/* Responsive tooltip positioning */
@media (max-width: 768px) {
[title]:hover::after {
font-size: 0.8rem;
padding: 6px 10px;
max-width: 200px;
white-space: normal;
word-wrap: break-word;
}
}

@media (max-width: 1024px) {
.container {
padding: 0 16px;
}

.controls {
gap: 10px;
}

.summary-cards-container {
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
}

@media (max-width: 768px) {
    [title]:hover::after {
        font-size: 0.8rem;
        padding: 6px 10px;
        max-width: 200px;
        white-space: normal;
        word-wrap: break-word;
    }

    .controls {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .controls .btn,
    .controls .period-select,
    .controls .filters-toggle-btn {
        width: 100%;
    }

    .header h1 {
        font-size: 2rem;
    }

    .summary-cards-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .summary-card {
        flex-direction: column;
        text-align: center;
    }

    .summary-info {
        min-width: auto;
        margin-bottom: 10px;
    }

    .table-container-scroll-hint {
        right: 12px;
        bottom: 18px;
    }

    .data-table,
    .generation-table {
        -webkit-overflow-scrolling: touch;
    }

    .temp-unit-toggle {
        align-self: stretch;
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    body {
        padding: 16px 10px;
    }

    .table-container {
        padding: 20px 15px;
    }

    .data-table th,
    .data-table td,
    .generation-table th,
    .generation-table td {
        padding: 10px 12px;
    }
}
.good {color: rgba(76, 175, 80, 0.9);}
.caution {color: rgba(255, 152, 0, 0.5);}
.poor, .error {color: rgba(244, 67, 54, 0.9);}

.fishing-good { background: rgba(76, 175, 80, 0.5); transition: background 1s ease-in-out; }
.fishing-caution { background: rgba(255, 152, 0, 0.5); transition: background 1s ease-in-out; }
.fishing-poor { background: rgba(244, 67, 54, 0.5); transition: background 1s ease-in-out; }

.fishing-conditions-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: slideIn 0.5s ease-out;
}

.fishing-conditions-indicator-good { background: rgba(76, 175, 80, 0.9); }
.fishing-conditions-indicator-caution { background: rgba(255, 152, 0, 0.9); }
.fishing-conditions-indicator-poor { background: rgba(244, 67, 54, 0.9); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
