/* Base Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

.card {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
  border: none;
}

.card-header {
  font-weight: 600;
}

.current-temp {
    font-size: 2.8rem;
    font-weight: bold;
    line-height: 1.1;
}

/* Center the weather icon */
.current-conditions .weather-icon-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.weather-icon {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}

/* Make sure the icon is centered in the card */
.current-conditions {
  text-align: center;
}

.main-temp {
  font-size: 2.5rem;
  margin: 10px 0;
  font-weight: bold;
}

/* Data Update Animation */
.data-updated {
  animation: highlightUpdate 2s;
}

@keyframes highlightUpdate {
  0% {
    color: #dc3545;
    font-weight: bold;
  }
  100% {
    color: inherit;
    font-weight: normal;
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .display-4 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .weather-icon {
    font-size: 3rem;
  }
}

/* Moon Image */
#moonImage {
  max-width: 100px;
  height: auto;
}

/* Webcam Image */
#webcamImage {
  border: 1px solid #dee2e6;
  transition: opacity 0.3s;
}

#webcamImage:hover {
  opacity: 0.9;
}

/* Trend arrow styles */
.trend-arrow {
  font-size: 1.5em;
  display: inline-block;
  transition: color 0.3s;
}

.trend-up {
  color: #28a745;
  animation: bounceUp 1s infinite alternate;
}

.trend-down {
  color: #dc3545;
  animation: bounceDown 1s infinite alternate;
}

.trend-steady {
  color: #6c757d;
}

@keyframes bounceUp {
  0% { transform: translateY(0);}
  100% { transform: translateY(-8px);}
}

@keyframes bounceDown {
  0% { transform: translateY(0);}
  100% { transform: translateY(8px);}
}

/* Bootstrap tooltip style fallback */
.simple-tooltip {
  position: absolute;
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 1000;
  pointer-events: none;
}

/* Weather Extremes Card Styling */
.extreme-item {
  margin-bottom: 0.75rem;
}

.extreme-label {
  font-weight: 600;
  margin-right: 0.25rem;
}

.extreme-value {
  font-weight: 500;
}

.extreme-location {
  color: #6c757d;
  font-size: 0.875em;
}

/* Tab styling */
.nav-tabs {
  border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
  border: none;
  color: #495057;
  padding: 0.75rem 1rem;
  transition: all 0.2s;
}

.nav-tabs .nav-link.active {
  color: #0d6efd;
  background-color: transparent;
  border-bottom: 2px solid #0d6efd;
}

.nav-tabs .nav-link:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Flag images */
.nav-tabs .nav-link img {
  vertical-align: text-top;
  margin-right: 5px;
  border: 1px solid #dee2e6;
  border-radius: 2px;
}

/* Icon colors */
.bi-thermometer-high {
  color: #dc3545;
}
.bi-thermometer-low {
  color: #0d6efd;
}
.bi-thermometer-sun {
  color: #fd7e14;
}
.bi-cloud-rain {
  color: #17a2b8;
}
.bi-brightness-high {
  color: #ffc107;
}

/* Custom Tab Styles */
.nav-tabs-borderless {
  border-bottom: none;
}

.nav-tabs-borderless .nav-link {
  border: none;
  padding: 0.5rem 1rem;
  color: #495057;
  position: relative;
}

.nav-tabs-borderless .nav-link.active {
  color: #0d6efd;
  background-color: transparent;
}

.nav-tabs-borderless .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #0d6efd;
}

.nav-tabs-borderless .nav-link img {
  border: 1px solid #dee2e6;
  border-radius: 2px;
  vertical-align: text-top;
}

/* Moon Phase Images */
.moon-phase-img {
  width: 100px;
  height: 100px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 auto;
}

/* Extremes Tab Styling */
#extremesTabs {
  margin-bottom: 1rem;
}

.extreme-item {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
}

.extreme-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.extreme-label {
  font-weight: 600;
  color: #495057;
  display: inline-block;
  width: 120px;
}

.extreme-value {
  font-weight: 500;
  color: #212529;
  margin-right: 5px;
}

.extreme-location {
  color: #6c757d;
  font-size: 0.85em;
}

/* Forecast Day/Night Sections */
.forecast-section {
  transition: all 0.3s ease;
}

.day-section {
  background-color: rgba(13, 110, 253, 0.1);
}

.night-section {
  background-color: rgba(33, 37, 41, 0.8);
}

/* Environmental Indicators */
.indicator-badge {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  font-weight: bold;
  font-size: 0.8rem;
}

.uv-indicator {
  background-color: rgba(13, 110, 253, 0.2);
  color: #0d6efd;
}

.pollution-indicator {
  background-color: rgba(25, 135, 84, 0.2);
  color: #198754;
}

.pollen-indicator {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.weather-icon-sm {
  width: 48px;
  height: 48px;
}

.weather-symbol {
  height: 64px;
}

/* Temperature Badges */
.temperature-badge {
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  min-width: 3rem;
  text-align: center;
}

/* Warning Sections */
.warning-yellow {
  background-color: #ffe923;
}

.warning-amber {
  background-color: #ff9900;
}

.warning-red {
  background-color: #cc0033;
}

/* Warning Card Styling */
.card-header.bg-danger {
  background-color: #dc3545 !important;
}

/* UV Index Colors */
.uv-high-bg {
  background-color: #fd7e14;
}
.uv-vhigh-bg {
  background-color: #dc3545;
}

/* Alert Boxes */
.uv-box,
.pollen-box,
.aqi-box {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  margin-right: 10px;
}

/* Time Period Icons */
.bi-sun::before {
  content: "\f1e3";
}
.bi-moon::before {
  content: "\f308";
}
.bi-sunrise::before {
  content: "\f321";
}

/* Met Office Credit */
.met-office-credit {
  border-top: 1px solid #eee;
  padding-top: 0.75rem;
  margin-top: 1rem;
}

/* Navbar Dropdown Fixes */
.navbar-dark .navbar-nav .dropdown-menu {
  background-color: #343a40;
}

.navbar-dark .navbar-nav .dropdown-item {
  color: rgba(255, 255, 255, 0.75);
}

.navbar-dark .navbar-nav .dropdown-item:hover,
.navbar-dark .navbar-nav .dropdown-item:focus {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .navbar-nav .dropdown-item.active,
.navbar-dark .navbar-nav .dropdown-item:active {
  color: #fff;
  background-color: #0d6efd;
}

/* Ensure dropdown stays open when hovering */
@media (min-width: 992px) {
  .navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Weather value boxes */
.weather-value {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: bold;
  min-width: 40px;
  text-align: center;
  margin: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  
}

.weather-value.text-dark { color: #212529 !important; }
.weather-value.text-white { color: #fff !important; }

.current-temp-oval {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 72px;
    padding: 0 0.7em;    
    font-size: 2.0rem;
    font-weight: bold;
    line-height: 1.1;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.3s, color 0.3s;
    text-align: center;
    white-space: nowrap;
}

.temp-trend-arrow {
    font-size: 2.0rem;      /* Match or slightly less than your temp font size */
    margin-left: 0.3em;
    vertical-align: middle;
    line-height: 1;
    display: inline-block;
}

.trend-arrow {
    font-size: 1.2em;
    margin-left: 0.3em;
    vertical-align: middle;
    display: inline-block;
    transition: color 0.3s;
}
.trend-up { color: #388e3c; }
.trend-down { color: #d32f2f; }
.trend-steady { color: #888; }
.trend-bounce {
    animation: bounce 0.5s;
}
@keyframes bounce {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-10px); }
    50%  { transform: translateY(0); }
    70%  { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* UV Index colors */
.uv-low {
  background-color: #4caf50;
}
.uv-moderate {
  background-color: #ffc107;
  color: black;
}
.uv-high {
  background-color: #ff9800;
}
.uv-veryhigh {
  background-color: #f44336;
}
.uv-extreme {
  background-color: #9c27b0;
}

/* Temperature colors */
.temp-50 { background-color: #100002 !important; color: #fff !important; }
.temp-45 { background-color: #1f0007 !important; color: #fff !important; }
.temp-40 { background-color: #3a000e !important; color: #fff !important; }
.temp-35 { background-color: #70001c !important; color: #fff !important; }
.temp-30 { background-color: #c30031 !important; color: #fff !important; }
.temp-27 { background-color: #e13d32 !important; color: #fff !important; }
.temp-24 { background-color: #f67639 !important; color: black !important; }
.temp-22 { background-color: #fc9f46 !important; color: black !important; }
.temp-20 { background-color: #ffb34c !important; color: black !important; }
.temp-18 { background-color: #ffc261 !important; color: black !important; }
.temp-16 { background-color: #ffc96c !important; color: black !important; }
.temp-14 { background-color: #ffd881 !important; color: black !important; }
.temp-12 { background-color: #ffe796 !important; color: black !important; }
.temp-10 { background-color: #ffeea1 !important; color: black !important; }
.temp-8  { background-color: #e3ecab !important; color: black !important; }
.temp-6  { background-color: #cfebb2 !important; color: black !important; }
.temp-4  { background-color: #b6e3b7 !important; color: black !important; }
.temp-2  { background-color: #91d5ba !important; color: black !important; }
.temp-0  { background-color: #7fcebc !important; color: black !important; }
.temp--2 { background-color: #60c3c1 !important; color: #fff !important; }
.temp--4 { background-color: #38aec4 !important; color: #fff !important; }
.temp--6 { background-color: #1d92c1 !important; color: #fff !important; }
.temp--8 { background-color: #3075ac !important; color: #fff !important; }
.temp--10 { background-color: #435897 !important; color: #fff !important; }
.temp--15 { background-color: #082376 !important; color: #fff !important; }
.temp--20 { background-color: #02154f !important; color: #fff !important; }
.temp--30 { background-color: #020f39 !important; color: #fff !important; }
.temp--40 { background-color: #01081e !important; color: #fff !important; }

/* Wind speed colors */
.wind-0   { background-color: #e8f5e9 !important; color: black !important; }
.wind-10  { background-color: #c8e6c9 !important; color: black !important; }
.wind-20  { background-color: #a5d6a7 !important; color: black !important; }
.wind-30  { background-color: #81c784 !important; color: black !important; }
.wind-40  { background-color: #66bb6a !important; color: #fff !important; }
.wind-50  { background-color: #4caf50 !important; color: #fff !important; }
.wind-60  { background-color: #43a047 !important; color: #fff !important; }
.wind-70  { background-color: #388e3c !important; color: #fff !important; }
.wind-80  { background-color: #2e7d32 !important; color: #fff !important; }
.wind-90  { background-color: #1b5e20 !important; color: #fff !important; }
.wind-100 { background-color: #0d3e10 !important; color: #fff !important; }

/* Rain colors */
.rain-0  { background-color: #e3f2fd !important; color: black !important; }
.rain-2  { background-color: #bbdefb !important; color: black !important; }
.rain-5  { background-color: #90caf9 !important; color: black !important; }
.rain-10 { background-color: #64b5f6 !important; color: #fff !important; }
.rain-20 { background-color: #42a5f5 !important; color: #fff !important; }
.rain-30 { background-color: #1e88e5 !important; color: #fff !important; }

/* Comparison indicators */
.comparison-higher {
  color: #dc3545;
  font-weight: bold;
}
.comparison-lower {
  color: #198754;
  font-weight: bold;
}
.comparison-equal {
  color: #0dcaf0;
  font-weight: bold;
}

/* Circular indicators */
.value-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: bold;
  margin: 0 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: white;
}

/* Add to styles.css */
.card-header .bi {
  float: right;
  margin-left: 10px;
}

/* Table row hover effects */
.table-hover-effect tbody tr {
  transition: all 0.2s ease;
}

.table-hover-effect tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
}

.table-hover-effect tbody td {
  position: relative;
}

.table-hover-effect tbody tr:hover td::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(13, 110, 253, 0.3) 0%,
    rgba(13, 110, 253, 0.8) 50%,
    rgba(13, 110, 253, 0.3) 100%
  );
}

/* Update animation */
.data-updated {
  animation: highlightUpdate 1s;
}

@keyframes highlightUpdate {
  0% {
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.5);
    transform: scale(1.01);
  }
  100% {
    box-shadow: none;
    transform: scale(1);
  }
}

/* Table row hover effects */
.table-hover tbody tr {
  transition: all 0.2s ease;
}

.table-hover tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
}

.table-hover tbody td {
  position: relative;
}

.table-hover tbody tr:hover td::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(13, 110, 253, 0.3) 0%,
    rgba(13, 110, 253, 0.8) 50%,
    rgba(13, 110, 253, 0.3) 100%
  );
}

/* Current conditions styling */
.current-conditions .weather-value {
  display: inline-block;
  min-width: 60px;
  text-align: center;
  padding: 2px 5px;
  border-radius: 4px;
  margin-top: 2px;
}

/* Current Conditions */
.current-conditions {
  padding: 0 15px;
}

/* Weather value boxes */
.weather-value {
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: bold;
  min-width: 40px;
  text-align: center;
  margin: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: white !important;
  display: inline-block;
}

/* Ensure text is visible on colored backgrounds */
.temp-24,
.temp-22,
.temp-20,
.temp-18,
.temp-16,
.temp-14,
.temp-12,
.temp-10,
.temp-8,
.temp-6,
.temp-4,
.temp-2,
.temp-0,
.uv-moderate {
  color: black !important;
}

/* Add to weather-summary.php specific styles */
.trend-item span:last-child {
  font-weight: bold;
}

/* Consistent table styles */
.table-hover-effect tbody tr {
  transition: all 0.2s ease;
}

.table-hover-effect tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
}

.table-hover-effect tbody td {
  position: relative;
}

.table-hover-effect tbody tr:hover td::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(13, 110, 253, 0.3) 0%,
    rgba(13, 110, 253, 0.8) 50%,
    rgba(13, 110, 253, 0.3) 100%
  );
}

/* Loading states */
.ajax-loading {
  opacity: 0.7;
}

/* Error states */
.ajax-error {
  border-left: 4px solid #dc3545;
}

/* AJAX Update Animation */
.updated-value {
  background: #ffe066;
  color: #292123;
  border-radius: 0.3em;
  padding: 0 0.4em;
  animation: popOut 0.7s;
}

@keyframes popOut {
  0% { box-shadow: 0 0 0 0 #ffe066; transform: scale(1);}
  50% { box-shadow: 0 0 10px 4px #ffe066; transform: scale(1.15);}
  100% { box-shadow: 0 0 0 0 #ffe066; transform: scale(1);}
}

/* Add to your stylesheet */
.ajax-loading {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.updated-value {
  animation: highlightUpdate 2s ease;
  background-color: rgba(255, 255, 0, 0.2);
  border-radius: 3px;
  padding: 0 3px;
}

@keyframes highlightUpdate {
  0% {
    background-color: rgba(10, 239, 44, 0.5);
  }
  100% {
    background-color: transparent;
  }
}

/* Style for missing data */
.null-value {
  color: #6c757d;
  font-style: italic;
}

/* UV index badge styling */
.uv-index {
  display: inline-block;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
}

/* Consistent card styling */
.weather-card {
  padding: 10px;
  min-height: 300px; /* Fixed height for all cards */
}

/* Fixed width for labels and values */
.weather-detail {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 10px;
}

.weather-detail i {
  width: 24px; /* Fixed width for icons */
  text-align: center;
  margin-right: 8px;
}

.detail-label {
  width: 100px; /* Fixed width for labels */
  font-weight: 500;
  margin-right: 8px;
}

.detail-value {
  flex: 1;
  min-width: 60px; /* Minimum width for values */
  text-align: right;
  font-family: "Courier New", monospace; /* Monospace for consistent width */
}

/* Current conditions specific styling */
.current-conditions {
  padding: 10px;
  text-align: center;
}

.current-conditions .main-temp {
  font-size: 2.5rem;
  margin: 10px 0;
}

/* Wind compass styling */
.wind-direction {
  padding: 10px;
  text-align: center;
}

/* Compass Styles */
.compass-wrapper {
  width: 120px;
  height: 120px;
  position: relative;
  margin: 0 auto;
}

.compass-wrapper svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
  transition: transform 0.5s ease-out;
}

.compass-needle {
  transform-origin: 50% 50%;
  transform-box: fill-box;
}

.wind-direction-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.wind-data {
  flex: 1;
}

.wind-data p {
  margin-bottom: 5px;
}

/* UV index colors */
.uv-index {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: bold;
  color: white;
  min-width: 30px;
  text-align: center;
}

.uv-low {
  background-color: #a3cf62;
}
.uv-moderate {
  background-color: #ffdb5c;
  color: #333;
}
.uv-high {
  background-color: #fd9841;
}
.uv-veryhigh {
  background-color: #f1605d;
}

/* Beaufort scale background colors */
.bg-beaufort-1 {
  background-color: #e6f7ff;
}
.bg-beaufort-2 {
  background-color: #b3e6ff;
}
.bg-beaufort-3 {
  background-color: #80d4ff;
}
.bg-beaufort-4 {
  background-color: #4dc3ff;
}
.bg-beaufort-5 {
  background-color: #1ab2ff;
}
.bg-beaufort-6 {
  background-color: #0099e6;
}
.bg-beaufort-7 {
  background-color: #0080cc;
}
.bg-beaufort-8 {
  background-color: #006699;
}
.bg-beaufort-9 {
  background-color: #004d80;
}
.bg-beaufort-10 {
  background-color: #003366;
}
.bg-beaufort-11 {
  background-color: #001a33;
}
.bg-beaufort-12 {
  background-color: #000000;
  color: white;
}

/* Rain intensity colors */
.text-rain-light {
  color: #4da6ff;
}
.text-rain-moderate {
  color: #0066cc;
}
.text-rain-heavy {
  color: #004080;
}
.text-rain-violent {
  color: #001a33;
}

@keyframes pulse-up {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes pulse-down {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Add to your CSS */
.tooltip {
  pointer-events: none;
}

.trend-container {
  display: inline-block;
}

/* Fix for Bootstrap tooltips */
.tooltip-inner {
  max-width: 300px;
  padding: 8px;
}

/* LED dot for badge */
.station-led-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.24em 1em; /* more horizontal padding for space around inner badge */
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.85rem;
    background: #888;
    color: #4e4848;
    box-shadow: none;
    transition: background 0.3s, box-shadow 0.3s;
    vertical-align: middle;
    gap: 0.5em; /* more gap between elements */
    min-height: 1.6em;
}
.station-led-dot {
  display: inline-block;
  width: 0.60em;
  height: 0.63em;
  border-radius: 50%;
  background: #aaa;
  box-shadow: 0 0 4px #aaa;
  margin-left: 0.4em;
  margin-right: 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.station-led-badge.online {
  background: #338a33;
  color: #cfc7c7;
  box-shadow: 0 0 8px #28e728, 0 0 12px #28e728;
}
.station-led-badge.online .station-led-dot {
  background: #00ff00;
  box-shadow: 0 0 8px #00ff00, 0 0 16px #00ff00;
}
.station-led-badge.offline {
  background: #e72c2c;
  color: #fff;
  box-shadow: 0 0 8px #e72c2c, 0 0 12px #e72c2c;
  animation: led-flash 1s infinite alternate;
}
.station-led-badge.offline .station-led-dot {
  background: #ff0000;
  box-shadow: 0 0 8px #ff0000, 0 0 16px #ff0000;
  animation: led-flash 1s infinite alternate;
}
.station-led-badge.unknown {
  background: #ffc107;
  color: #333;
  box-shadow: 0 0 8px #ffc107, 0 0 12px #ffc107;
}
.station-led-badge.unknown .station-led-dot {
  background: #ffc107;
  box-shadow: 0 0 8px #ffc107, 0 0 16px #ffc107;
}
@keyframes led-flash {
  from { opacity: 1; }
  to { opacity: 0.4; }
}

#currentConditionsContainer {
  min-height: 120px; /* or whatever fits your content */
  padding-top: 2em;  /* ensures the pill doesn't overlap the spinner */
}

.station-led-badge,
.station-led-dot,
.station-led-badge.online,
.station-led-badge.online .station-led-dot,
.station-led-badge.offline,
.station-led-badge.offline .station-led-dot,
.station-led-badge.unknown,
.station-led-badge.unknown .station-led-dot {
    box-shadow: none !important;
}

/* Default: white text for dark backgrounds */
.current-temp-oval {
  color: #fff;
}

/* Override to black for light backgrounds */
.current-temp-oval.temp-24,
.current-temp-oval.temp-22,
.current-temp-oval.temp-20,
.current-temp-oval.temp-18,
.current-temp-oval.temp-16,
.current-temp-oval.temp-14,
.current-temp-oval.temp-12,
.current-temp-oval.temp-10,
.current-temp-oval.temp-8,
.current-temp-oval.temp-6,
.current-temp-oval.temp-4,
.current-temp-oval.temp-2,
.current-temp-oval.temp-0 {
  color: #222 !important;
}

.aqi-box, .pollen-box {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 4px;
}

.uv-box, .pollen-box, .aqi-box {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1rem;
}
.pollen-vhigh-bg { background-color: #a259d9 !important; } /* Purple for Very High */
.pollen-box.text-purple, .pollen-box.pollen-vhigh-bg { background-color: #a259d9 !important; }
.small, .card-body.small, .card-body .small { font-size: 0.95em; }
.text-orange { color: #fd7e14 !important; }

/* Compact, flat, color-coded weather tables */
.weather-table {
    table-layout: fixed;
    width: 100%;
    font-size: 0.95em;
}
.weather-table th,
.weather-table td {
    padding: 0.25rem !important;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    min-width: 40px;
    max-width: 60px;
    border: 1px solid #dee2e6;
}
.weather-table th {
    background: #222;
    color: #fff;
}

.collapse.show + .text-end .bi-chevron-down,
[data-bs-toggle="collapse"][aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.chevron-icon {
    transition: transform 0.2s;
}
.rotate-180 {
    transform: rotate(180deg);
}

/* Navbar styles */
.navbar-nav .nav-link {
  transition: color 0.2s, background 0.2s;
  border-radius: 0.3rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  background: #0d6efd;
  color: #fff !important;
}

.navbar-nav .dropdown-menu {
  background: #f8fafc;
  border-radius: 0.5rem;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.navbar-nav .dropdown-item {
  transition: background 0.2s, color 0.2s;
  border-radius: 0.3rem;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
  background: #0d6efd;
  color: #fff;
}

.alert-yellow {
        background-color: #ffe923 !important;
        color: #856404;
        border-color: #ffe923;
    }
    .alert-amber {
        background-color: #ff9900 !important;
        color: #fff;
        border-color: #ff9900;
    }
    .alert-red {
        background-color: #cc0033 !important;
        color: #fff;
                border-color: #cc0033;
        }

.weather-card .card-body p.mb-1 {
    line-height: 2;
}

.ticker-badge {
    background: linear-gradient(90deg, #e0f7fa 60%, #b2ebf2 100%) !important;
    color: lch(34.94% 0.75 74.9) !important;
    border-radius: 1.5rem;
    font-weight: 500;
}

.record-ticker .record-item {
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s;
    width: 100%;
    margin-bottom: 0.25rem;
}
@media (min-width: 576px) {
    .record-ticker .record-item {
        width: auto;
    }
}

.extreme-item { min-height: 2.2rem; }

/* Dark Theme Overrides */
body.theme-dark {
  background: #181a1b !important;
  color: #e0e0e0 !important;
}
body.theme-dark .card,
body.theme-dark .weather-card {
  background: #23272b !important;
  color: #e0e0e0 !important;
  border: none !important;
}
body.theme-dark .card-header,
body.theme-dark .card-header.bg-primary,
body.theme-dark .card-header.bg-secondary {
  background: #222831 !important;
  color: #fff !important;
}
body.theme-dark .table,
body.theme-dark .weather-card .table {
  color: #e0e0e0 !important;
  background-color: #23272b !important;
}
body.theme-dark .table thead,
body.theme-dark .table-light th,
body.theme-dark .table-light td {
  background: #23272b !important;
  color: #b0b8c1 !important;
}
body.theme-dark .table-bordered td, 
body.theme-dark .table-bordered th {
  border-color: #444 !important;
}
body.theme-dark .site-footer {
  background: #181a1b !important;
  color: #e0e0e0 !important;
  border-top: 1px solid #333 !important;
}
body.theme-dark .bg-warning,
body.theme-dark .alert-warning {
  background-color: #ffe066 !important;
  color: #111 !important;
}
body.theme-dark .bg-warning a,
body.theme-dark .alert-warning a {
  color: #000000 !important;
  text-decoration: underline;
}

body.theme-dark .weather-card.weather-extremes-card .card-body {
  color: #fff !important;
  background: #23272b !important;
}
body.theme-dark .weather-card.weather-extremes-card .extreme-label,
body.theme-dark .weather-card.weather-extremes-card .extreme-value {
  color: #fff !important;
}
body.theme-dark .weather-card.weather-extremes-card .extreme-location {
  color: #b0b8c1 !important;
}
body.theme-dark .weather-card.today-vs-yesterday-card .card-body,
body.theme-dark .weather-card.station-status-card .card-body {
  background: #23272b !important;
  color: #fff !important;
}
body.theme-dark .weather-card.today-vs-yesterday-card .table,
body.theme-dark .weather-card.station-status-card .table {
  color: #fff !important;
  background: #23272b !important;
}
body.theme-dark .weather-card.today-vs-yesterday-card .table th,
body.theme-dark .weather-card.today-vs-yesterday-card .table td,
body.theme-dark .weather-card.station-status-card .table th,
body.theme-dark .weather-card.station-status-card .table td {
  border-color: #444 !important;
}
body.theme-dark .text-muted,
body.theme-dark .small,
body.theme-dark .card-footer {
  color: #828890 !important;
}
body.theme-dark .navbar-nav .nav-link,
body.theme-dark .navbar-nav .nav-link:visited {
  color: #fff !important;
}

body.theme-dark .navbar-nav .nav-link:hover,
body.theme-dark .navbar-nav .nav-link:focus {
  color: #81d4fa !important; /* or #fff for pure white */
}

body.theme-dark a, body.theme-dark a:visited {
  color: #6e6868 !important;
}
body.theme-dark a:hover {
  color: #c2c2c2 !important;
}

.navbar-brand,
.navbar-brand:visited {
    color: #0d6efd !important; /* Bootstrap 5 primary */
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: #0a58ca !important; /* Bootstrap 5 primary darken */
}