Original CSS .foo {
  color: #ff0000;
}
.bar {
  color: rgba(255, 0, 0, 1);
}
@keyframes record-flash {
  0% {
    opacity: 1;
  }

  to {
    opacity: 0.2;
  }
}

@keyframes bounce {
  0%,
  50%,
  to {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-10px);
  }

  70% {
    transform: translateY(-5px);
  }
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-100%);
  }
}

@keyframes led-flash {
  0%,
  50% {
    opacity: 1;
  }

  51%,
  to {
    opacity: 0.2;
  }
}

body,
html {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  color: #333;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
}

footer .container {
  background: 0 0 !important;
}

@media (max-width: 992px) {
  .display-4 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .weather-icon {
    font-size: 3rem;
  }
}

@media (max-width: 576px) {
  .card-title {
    font-size: 1.1rem !important;
  }

  #station-status-text,
  #station-update-time {
    display: none !important;
  }

  #station-led-dot {
    margin-right: 0 !important;
  }
}

#wind-compass circle.outer-compass {
  stroke: #000;
}

body.theme-dark #wind-compass circle.outer-compass {
  stroke: #fff;
}

.theme-dark .table tbody tr:hover {
  background-color: #2c3136 !important;
}

.theme-dark .today-vs-yesterday-card .table-bordered > :not(caption) > * > * {
  border: 0 !important;
  border-width: 0 !important;
}

.today-vs-yesterday-card .table thead tr th {
  border-bottom: 2px solid #dee2e6 !important;
}

.theme-dark .today-vs-yesterday-card .table thead tr th {
  border-bottom: 2px solid #81d4fa !important;
}

.today-vs-yesterday-card .table td:nth-child(2),
.today-vs-yesterday-card .table th:nth-child(2) {
  border-right: 2px solid #dee2e6 !important;
}

.today-vs-yesterday-card .table td:first-child,
.today-vs-yesterday-card .table th:first-child {
  border-right: 2px solid #dee2e6 !important;
}

.theme-dark .today-vs-yesterday-card .table-bordered thead th {
  background-color: #23272b !important;
  color: #f8f9fa !important;
  border-color: #444 !important;
}

.table-hover tbody tr,
.table-hover-effect tbody tr {
  transition: all 0.2s ease;
}

.table-hover tbody td,
.table-hover-effect tbody td {
  position: relative;
}

.table-hover tbody tr:hover td::after,
.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%
  );
}

@media (max-width: 600px) {
  .weather-ticker-inner {
    font-size: 0.95rem;
  }
}

.record-led {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.4em;
  border-radius: 50%;
  background: #ffeb3b;
  box-shadow: 0 0 8px 2px #ffeb3b;
  animation: record-flash 1s infinite alternate;
  vertical-align: middle;
}

.jqstooltip {
  font-size: 1.2em !important;
  background: #222 !important;
  pointer-events: none;
  opacity: 0.98;
  max-width: 400px !important;
  white-space: pre !important;
  min-width: 60px !important;
  min-height: 24px !important;
  display: block !important;
}

.theme-light html,
body.theme-light {
  background: #f8f9fa !important;
  color: #222;
}

.theme-dark html,
body.theme-dark {
  background: #181a1b !important;
  color: #e0e0e0 !important;
}

.weather-value.rain-20,
.weather-value.rain-30,
.weather-value.temp--10,
.weather-value.temp--15,
.weather-value.temp--20,
.weather-value.temp--30,
.weather-value.temp-30,
.weather-value.temp-35,
.weather-value.temp-40,
.weather-value.temp-45,
.weather-value.temp-50,
.weather-value.uv-extreme,
.weather-value.uv-high,
.weather-value.uv-veryhigh,
.weather-value.wind-100,
.weather-value.wind-40,
.weather-value.wind-50,
.weather-value.wind-60,
.weather-value.wind-70,
.weather-value.wind-80,
.weather-value.wind-90 {
  color: #fff !important;
}

.weather-value.rain-0,
.weather-value.rain-10,
.weather-value.rain-2,
.weather-value.rain-5,
.weather-value.temp-0,
.weather-value.temp-10,
.weather-value.temp-12,
.weather-value.temp-14,
.weather-value.temp-16,
.weather-value.temp-18,
.weather-value.temp-2,
.weather-value.temp-20,
.weather-value.temp-22,
.weather-value.temp-24,
.weather-value.temp-4,
.weather-value.temp-6,
.weather-value.temp-8,
.weather-value.uv-low,
.weather-value.uv-moderate,
.weather-value.wind-0,
.weather-value.wind-10,
.weather-value.wind-20,
.weather-value.wind-30 {
  color: #212529 !important;
}

.theme-light header .text-white,
.theme-light nav .text-white {
  color: #111 !important;
}

.card,
.sidebar-card,
.station-status-card,
.weather-card {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
  border: 0;
  background: #fff;
  color: #222;
}

.theme-dark .card {
  border: 1px solid #292d31 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.theme-dark .sidebar-card {
  color: #f8f9fa !important;
}

.theme-dark .sidebar-card,
.theme-dark .station-status-card,
.theme-dark .weather-card {
  background: #23272b !important;
  border: 1px solid #292d31 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.theme-dark .card-header,
.theme-dark .card-header.bg-primary,
.theme-dark .card-header.bg-secondary {
  background: #222831 !important;
}

.theme-light .card {
  background: #fff;
  color: #222;
}

.theme-light .card-header,
.theme-light .navbar {
  background: #dbd8d8b7 !important;
  color: #222 !important;
}

.theme-light .site-footer {
  background: #e3f2fd;
  color: #222;
  border-top: 1px solid #b0b8c1;
}

.theme-dark .site-footer {
  background: #181a1b !important;
  color: #e0e0e0 !important;
  border-top: 1px solid #16638c !important;
}

.weather-icon {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}

.current-temp {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
}

.main-temp {
  font-size: 2.5rem;
  margin: 10px 0;
  font-weight: 700;
}

.current-temp-oval {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 72px;
  padding: 0 0.7em;
  font-size: 2rem;
  font-weight: 700;
  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;
}

.weather-value {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
  margin: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: inherit;
}

.weather-value.bg-danger,
.weather-value.bg-dark,
.weather-value.bg-primary,
.weather-value.bg-secondary {
  color: #fff !important;
}

.weather-value.bg-info,
.weather-value.bg-light,
.weather-value.bg-warning,
.weather-value.bg-white {
  color: #212529 !important;
}

.trend-arrow {
  font-size: 1.2em;
  margin-left: 0.3em;
  vertical-align: middle;
  display: inline-block;
  transition: color 0.3s;
}

.trend-bounce {
  animation: bounce 0.5s;
}

.temp-trend-arrow {
  font-size: 2rem;
  margin-left: 0.3em;
  vertical-align: middle;
  line-height: 1;
  display: inline-block;
}

.uv-index {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  min-width: 30px;
  text-align: center;
}

.uv-low {
  background-color: #4caf50;
}

.uv-moderate {
  background-color: #ffc107;
  color: #000;
}

.uv-high {
  background-color: #ff9800;
}

.uv-veryhigh {
  background-color: #f44336;
}

.uv-extreme {
  background-color: #9c27b0;
}

.card-header {
  font-weight: 600;
}

.card-header .bi {
  float: right;
  margin-left: 10px;
}

.theme-dark .table,
.theme-dark .weather-card .table {
  background-color: #23272b !important;
}

.theme-dark .weather-card .table {
  color: #e0e0e0 !important;
}

.theme-dark .table thead,
.theme-dark .table-light td,
.theme-dark .table-light th {
  background: #23272b !important;
}

.theme-dark .table-light td {
  color: #b0b8c1 !important;
}

.theme-dark .table-bordered td,
.theme-dark .table-bordered th {
  border-color: #444 !important;
}

.navbar-nav .nav-link {
  transition: color 0.2s, background 0.2s;
  border-radius: 0.3rem;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:hover {
  background: #0d6efd;
  color: #fff !important;
}

.theme-dark .navbar-nav .nav-link,
.theme-dark .navbar-nav .nav-link:visited {
  color: #fff !important;
}

.theme-dark .dropdown-menu {
  background-color: #23272b !important;
  color: #0d63ba !important;
  border-color: #c2c6c9 !important;
}

.theme-dark .dropdown-menu .dropdown-item {
  color: #5888c6 !important;
}

.theme-dark .dropdown-menu .dropdown-item:focus,
.theme-dark .dropdown-menu .dropdown-item:hover {
  background-color: #343a40 !important;
  color: #fff6f6 !important;
}

.navbar-dark .dropdown-menu {
  background-color: #706f6ff7;
}

.navbar-dark .dropdown-menu .dropdown-item {
  color: #fff;
}

.navbar-dark .dropdown-menu .dropdown-item:focus,
.navbar-dark .dropdown-menu .dropdown-item:hover {
  background-color: #003cff9d;
  color: #fff;
}

.theme-dark .navbar-nav .nav-link:focus,
.theme-dark .navbar-nav .nav-link:hover {
  background-color: #ffffff7a !important;
  color: #fff !important;
}

.site-footer,
footer {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  background: inherit !important;
  border: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 992px) {
  .display-4 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .weather-icon {
    font-size: 3rem;
  }
}

@media (max-width: 576px) {
  .card-title {
    font-size: 1.1rem !important;
  }

  #station-status-text,
  #station-update-time {
    display: none !important;
  }

  #station-led-dot {
    margin-right: 0 !important;
  }
}

.theme-dark .alert-warning,
.theme-dark .bg-warning {
  background-color: #ffe066 !important;
  color: #111 !important;
}

.theme-dark .alert-warning a,
.theme-dark .bg-warning a {
  color: #000 !important;
  text-decoration: underline;
}

.theme-dark a,
.theme-dark a:visited {
  color: #6e6868 !important;
}

.theme-dark a:hover {
  color: #c2c2c2 !important;
}

.main-content {
  margin-top: 20px;
  margin-bottom: 20px;
}

.station-led-badge,
.station-led-dot {
  transition: background 0.3s, box-shadow 0.3s;
}

.station-led-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.24em 1em;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.85rem;
  background: #fff;
  color: #000;
  box-shadow: none;
  vertical-align: middle;
  gap: 0.5em;
  min-height: 1.6em;
  margin-bottom: 20px;
}

.station-led-badge.station-status-dark {
  background: #23272b !important;
  color: #f8f9fa !important;
  border-radius: 8px;
  padding: 0.25em 0.75em;
  display: inline-block;
}

.station-led-dot {
  display: inline-block;
  width: 0.6em;
  height: 0.63em;
  border-radius: 50%;
  background: #ffffff00;
  box-shadow: 0 0 4px #aaa;
  margin-left: 0.4em;
  margin-right: 0;
}

.theme-light .station-led-badge.online {
  background: #fff;
  color: #000;
  box-shadow: 0 0 5px #28e728, 0 0 8px #28e728;
}

.theme-light .station-led-badge.online .station-led-dot {
  background: #37ff00;
  animation: led-flash 1s infinite alternate;
}

.theme-light .station-led-badge.offline {
  background: #e72c2c;
  color: #fff;
  box-shadow: 0 0 8px #e72c2c, 0 0 12px #e72c2c;
  animation: led-flash 1s infinite alternate;
}

.theme-light .station-led-badge.offline .station-led-dot {
  background: red !important;
  box-shadow: 0 0 8px red, 0 0 16px red !important;
  animation: led-flash 1s infinite alternate !important;
}

.theme-light .station-led-badge.unknown {
  background: #ffc107;
  color: #333;
  box-shadow: 0 0 8px #ffc107, 0 0 12px #ffc107;
}

.theme-light .station-led-badge.unknown .station-led-dot {
  background: #ffc107;
  box-shadow: 0 0 8px #ffc107, 0 0 16px #ffc107;
}

.theme-dark .station-led-badge.online {
  background: #23272b;
  color: #fff;
  box-shadow: 0 0 8px #37ff00, 0 0 12px #37ff00;
}

.theme-dark .station-led-badge.online .station-led-dot {
  background: #37ff00;
  animation: led-flash 1s infinite alternate;
}

.theme-dark .station-led-badge.offline {
  background: #23272b;
  color: #ff6b6b;
  box-shadow: 0 0 8px #ff6b6b, 0 0 12px #ff6b6b;
  animation: led-flash 1s infinite alternate;
}

.theme-dark .station-led-badge.offline .station-led-dot {
  background: red !important;
  box-shadow: 0 0 8px red, 0 0 16px red !important;
  animation: led-flash 1s infinite alternate !important;
}

.theme-dark .station-led-badge.unknown {
  background: #23272b;
  color: #ffc107;
  box-shadow: 0 0 8px #ffc107, 0 0 12px #ffc107;
}

.theme-dark .station-led-badge.unknown .station-led-dot {
  background: #ffc107;
  box-shadow: 0 0 8px #ffc107, 0 0 16px #ffc107;
}

.station-led-badge.station-status-dark .station-update-badge {
  color: #adb5bd !important;
}

.station-led-badge.station-status-dark .station-led-dot {
  border-color: #f8f9fa !important;
}

body.theme-dark #wind-compass text {
  fill: #fff;
}

body:not(.theme-dark) #wind-compass text {
  fill: #222;
}

.updated-flash {
  animation: highlightUpdateRed 3s ease;
  color: #dc3545 !important;
  font-weight: 400 !important;
}

.theme-light .navbar-brand span,
.theme-light a.text-info {
  color: #0d6efd !important;
}

.theme-dark .navbar-brand span {
  color: #0dcaf0 !important;
}

.theme-dark .table thead,
.theme-dark .table-light th {
  background-color: #181a1b !important;
  color: #81d4fa !important;
}

.theme-dark .table tbody tr {
  background-color: #23272b !important;
}

.theme-dark .small,
.theme-dark .table .text-muted,
.theme-dark .text-muted {
  color: #b0b8c1 !important;
}

.theme-dark .today-vs-yesterday-card .table-bordered td:not([class]),
.theme-dark .today-vs-yesterday-card .table-bordered th:not([class]) {
  background-color: #23272b !important;
  color: #f8f9fa !important;
  border-color: #444 !important;
}

.theme-dark .today-vs-yesterday-card .table,
.theme-dark .today-vs-yesterday-card .table-bordered {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.theme-dark .today-vs-yesterday-card .table,
.theme-dark .today-vs-yesterday-card .table td,
.theme-dark .today-vs-yesterday-card .table th,
.theme-dark .today-vs-yesterday-card .table-bordered,
.theme-dark .today-vs-yesterday-card .table-bordered td,
.theme-dark .today-vs-yesterday-card .table-bordered th {
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  box-shadow: none !important;
}

.theme-dark .today-vs-yesterday-card .table td:first-child,
.theme-dark .today-vs-yesterday-card .table th:first-child {
  border-right: 2px solid #444 !important;
}

.theme-dark .card {
  background-color: #23272b !important;
}

.theme-dark .card-header {
  border-color: #444 !important;
}

.theme-dark .station-status-card,
.theme-dark .weather-card {
  background-color: #23272b !important;
  color: #f8f9fa !important;
  border-color: #444 !important;
}

.theme-dark .card-header {
  color: #fff !important;
}

.theme-dark .card-header,
.theme-dark .card-header.bg-dark {
  background-color: #181a1b !important;
  border-bottom: 1px solid #444 !important;
}

.theme-dark .card-footer {
  background-color: #181a1b !important;
  border-top: 1px solid #444 !important;
}

.theme-dark .list-group-item {
  background-color: #23272b !important;
  color: #f8f9fa !important;
  border-color: #444 !important;
}

.theme-dark .list-group-item .badge.bg-success {
  background-color: #388e3c !important;
  color: #fff !important;
}

.theme-dark .list-group-item .badge.bg-warning {
  background-color: #ffc107 !important;
  color: #222 !important;
}

.theme-dark .list-group-item .badge.bg-secondary {
  background-color: #444 !important;
  color: #fff !important;
}

.theme-dark .list-group-item .badge.iss-battery-badge {
  background-color: #ffc107 !important;
  color: #222 !important;
}

.theme-dark .bi-clock-history,
.theme-dark .text-secondary {
  color: #81d4fa !important;
}

.ajax-red-normal {
  color: #dc3545 !important;
  font-weight: 400 !important;
}

.card-body,
.theme-dark .card-body {
  line-height: 2;
}

#extremesContainer,
#extremesContainer .extreme-item {
  line-height: 2;
  margin-bottom: 1.2em !important;
}

.theme-dark .card-header.bg-primary {
  background: #0d6efd !important;
  color: #fff !important;
}

.theme-dark .card-header.bg-info {
  background: #0dcaf0 !important;
  color: #fff !important;
}

.theme-dark .card-header.bg-success {
  background: #198754 !important;
  color: #fff !important;
}

.theme-dark .card-header.bg-secondary {
  background: #6c757d !important;
  color: #fff !important;
}

.theme-dark .card-header.bg-danger {
  background: #dc3545 !important;
  color: #fff !important;
}

.theme-dark .card-header.bg-warning {
  background: #ffc107 !important;
  color: #fff !important;
}

.theme-dark .card-header.bg-light {
  background: #f8f9fa !important;
  color: #fff !important;
}

.theme-dark .card-header.bg-dark {
  background: #212529 !important;
  color: #fff !important;
}

.theme-light .card-header.bg-primary {
  background: #0d6efd !important;
  color: #fff !important;
}

.theme-light .card-header.bg-info {
  background: #0dcaf0 !important;
  color: #fff !important;
}

.theme-light .card-header.bg-success {
  background: #198754 !important;
  color: #fff !important;
}

.theme-light .card-header.bg-secondary {
  background: #6c757d !important;
  color: #fff !important;
}

.theme-light .card-header.bg-danger {
  background: #dc3545 !important;
  color: #fff !important;
}

.theme-light .card-header.bg-warning {
  background: #ffc107 !important;
  color: #222 !important;
}

.theme-light .card-header.bg-light {
  background: #f8f9fa !important;
  color: #222 !important;
}

.theme-light .card-header.bg-dark {
  background: #212529 !important;
  color: #fff !important;
}

.warning-yellow {
  background-color: #ffe923;
}

.warning-amber {
  background-color: #f90;
}

.warning-red {
  background-color: #c03;
}

.card-header.bg-danger {
  background-color: #dc3545 !important;
}

.weather-value.text-dark {
  color: #212529 !important;
}

.weather-value.text-white {
  color: #fff !important;
}

td.temp-50,
th.temp-50 {
  background-color: #100002 !important;
  color: #fff !important;
}

td.temp-45,
th.temp-45 {
  background-color: #1f0007 !important;
  color: #fff !important;
}

td.temp-40,
th.temp-40 {
  background-color: #3a000e !important;
  color: #fff !important;
}

td.temp-35,
th.temp-35 {
  background-color: #70001c !important;
  color: #fff !important;
}

td.temp-30,
th.temp-30 {
  background-color: #c30031 !important;
  color: #fff !important;
}

td.temp-27,
th.temp-27 {
  background-color: #e13d32 !important;
  color: #fff !important;
}

td.temp-24,
th.temp-24 {
  background-color: #f67639 !important;
  color: #000 !important;
}

td.temp-22,
th.temp-22 {
  background-color: #fc9f46 !important;
  color: #000 !important;
}

td.temp-20,
th.temp-20 {
  background-color: #ffb34c !important;
  color: #000 !important;
}

td.temp-18,
th.temp-18 {
  background-color: #ffc261 !important;
  color: #000 !important;
}

td.temp-16,
th.temp-16 {
  background-color: #ffc96c !important;
  color: #000 !important;
}

td.temp-14,
th.temp-14 {
  background-color: #ffd881 !important;
  color: #000 !important;
}

td.temp-12,
th.temp-12 {
  background-color: #ffe796 !important;
  color: #000 !important;
}

td.temp-10,
td.temp-8,
th.temp-10,
th.temp-8 {
  background-color: #ffeea1 !important;
  color: #000 !important;
}

td.temp-8,
th.temp-8 {
  background-color: #e3ecab !important;
}

td.temp-4,
td.temp-6,
th.temp-4,
th.temp-6 {
  background-color: #cfebb2 !important;
  color: #000 !important;
}

td.temp-4,
th.temp-4 {
  background-color: #b6e3b7 !important;
}

td.temp-0,
td.temp-2,
th.temp-0,
th.temp-2 {
  background-color: #91d5ba !important;
  color: #000 !important;
}

td.temp-0,
th.temp-0 {
  background-color: #7fcebc !important;
}

td.temp--2,
th.temp--2 {
  background-color: #60c3c1 !important;
  color: #fff !important;
}

td.temp--4,
th.temp--4 {
  background-color: #38aec4 !important;
  color: #fff !important;
}

td.temp--6,
th.temp--6 {
  background-color: #1d92c1 !important;
  color: #fff !important;
}

td.temp--8,
th.temp--8 {
  background-color: #3075ac !important;
  color: #fff !important;
}

td.temp--10,
th.temp--10 {
  background-color: #435897 !important;
  color: #fff !important;
}

td.temp--15,
th.temp--15 {
  background-color: #082376 !important;
  color: #fff !important;
}

td.temp--20,
th.temp--20 {
  background-color: #02154f !important;
  color: #fff !important;
}

td.temp--30,
th.temp--30 {
  background-color: #020f39 !important;
  color: #fff !important;
}

td.temp--40,
th.temp--40 {
  background-color: #01081e !important;
  color: #fff !important;
}

td.wind-0,
th.wind-0 {
  background-color: #e8f5e9 !important;
  color: #000 !important;
}

td.wind-10,
th.wind-10 {
  background-color: #c8e6c9 !important;
  color: #000 !important;
}

td.wind-20,
th.wind-20 {
  background-color: #a5d6a7 !important;
  color: #000 !important;
}

td.wind-30,
th.wind-30 {
  background-color: #81c784 !important;
  color: #000 !important;
}

td.wind-40,
th.wind-40 {
  background-color: #66bb6a !important;
  color: #fff !important;
}

td.wind-50,
th.wind-50 {
  background-color: #4caf50 !important;
  color: #fff !important;
}

td.wind-60,
th.wind-60 {
  background-color: #43a047 !important;
  color: #fff !important;
}

td.wind-70,
th.wind-70 {
  background-color: #388e3c !important;
  color: #fff !important;
}

td.wind-80,
th.wind-80 {
  background-color: #2e7d32 !important;
  color: #fff !important;
}

td.wind-90,
th.wind-90 {
  background-color: #1b5e20 !important;
  color: #fff !important;
}

td.wind-100,
th.wind-100 {
  background-color: #0d3e10 !important;
  color: #fff !important;
}

td.rain-0,
th.rain-0 {
  background-color: #e3f2fd !important;
  color: #000 !important;
}

td.rain-2,
td.rain-5,
th.rain-2,
th.rain-5 {
  background-color: #bbdefb !important;
  color: #000 !important;
}

td.rain-5,
th.rain-5 {
  background-color: #90caf9 !important;
}

td.rain-10,
th.rain-10 {
  background-color: #64b5f6 !important;
  color: #fff !important;
}

td.rain-20,
th.rain-20 {
  background-color: #42a5f5 !important;
  color: #fff !important;
}

td.rain-30,
th.rain-30 {
  background-color: #1e88e5 !important;
  color: #fff !important;
}

.comparison-higher {
  color: #dc3545;
  font-weight: 700;
}

.comparison-lower {
  color: #198754;
  font-weight: 700;
}

.comparison-equal,
.value-circle {
  color: #0dcaf0;
  font-weight: 700;
}

.value-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin: 0 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #fff;
}

.table-hover tbody tr:hover,
.table-hover-effect tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
}

.weather-metric-label .weather-icon {
  margin-right: 0.5em;
}

.current-conditions .weather-value {
  display: inline-block;
  min-width: 60px;
  text-align: center;
  padding: 2px 5px;
  border-radius: 4px;
  margin-top: 2px;
}

.current-conditions {
  padding: 10px;
  text-align: center;
}

.current-conditions .main-temp {
  font-size: 2.5rem;
  margin: 10px 0;
}

.current-temp-oval {
  color: #fff;
}

.current-temp-oval.temp-0,
.current-temp-oval.temp-10,
.current-temp-oval.temp-12,
.current-temp-oval.temp-14,
.current-temp-oval.temp-16,
.current-temp-oval.temp-18,
.current-temp-oval.temp-2,
.current-temp-oval.temp-20,
.current-temp-oval.temp-22,
.current-temp-oval.temp-24,
.current-temp-oval.temp-4,
.current-temp-oval.temp-6,
.current-temp-oval.temp-8 {
  color: #222 !important;
}

.trend-item span:last-child {
  font-weight: 700;
}

.forecast-section-dark {
  border-left: 4px solid #0d6efd;
}

.forecast-section-dark,
.theme-dark .forecast-section-dark {
  background: #23272b !important;
  color: #fff !important;
}

.temp-40,
.temp-45,
.temp-50 {
  background-color: #100002 !important;
  color: #fff !important;
}

.temp-40,
.temp-45 {
  background-color: #1f0007 !important;
}

.temp-40 {
  background-color: #3a000e !important;
}

.temp-27,
.temp-30,
.temp-35 {
  background-color: #70001c !important;
  color: #fff !important;
}

.temp-27,
.temp-30 {
  background-color: #c30031 !important;
}

.temp-27 {
  background-color: #e13d32 !important;
}

.temp-24 {
  background-color: #f67639 !important;
  color: #000 !important;
}

.temp-18,
.temp-20,
.temp-22 {
  background-color: #fc9f46 !important;
  color: #000 !important;
}

.temp-18,
.temp-20 {
  background-color: #ffb34c !important;
}

.temp-18 {
  background-color: #ffc261 !important;
}

.temp-12,
.temp-14,
.temp-16 {
  background-color: #ffc96c !important;
  color: #000 !important;
}

.temp-12,
.temp-14 {
  background-color: #ffd881 !important;
}

.temp-12 {
  background-color: #ffe796 !important;
}

.temp-10,
.temp-6,
.temp-8 {
  background-color: #ffeea1 !important;
  color: #000 !important;
}

.temp-6,
.temp-8 {
  background-color: #e3ecab !important;
}

.temp-6 {
  background-color: #cfebb2 !important;
}

.temp-0,
.temp-2,
.temp-4 {
  background-color: #b6e3b7 !important;
  color: #000 !important;
}

.temp-0,
.temp-2 {
  background-color: #91d5ba !important;
}

.temp-0 {
  background-color: #7fcebc !important;
}

.temp--2,
.temp--4,
.temp--6 {
  background-color: #60c3c1 !important;
  color: #fff !important;
}

.temp--4,
.temp--6 {
  background-color: #38aec4 !important;
}

.temp--6 {
  background-color: #1d92c1 !important;
}

.temp--10,
.temp--15,
.temp--8 {
  background-color: #3075ac !important;
  color: #fff !important;
}

.temp--10,
.temp--15 {
  background-color: #435897 !important;
}

.temp--15 {
  background-color: #082376 !important;
}

.temp--20,
.temp--30,
.temp--40 {
  background-color: #02154f !important;
  color: #fff !important;
}

.temp--30,
.temp--40 {
  background-color: #020f39 !important;
}

.temp--40 {
  background-color: #01081e !important;
}

.wind-0 {
  background-color: #e8f5e9 !important;
  color: #000 !important;
}

.wind-10,
.wind-20,
.wind-30 {
  background-color: #c8e6c9 !important;
  color: #000 !important;
}

.wind-20,
.wind-30 {
  background-color: #a5d6a7 !important;
}

.wind-30 {
  background-color: #81c784 !important;
}

.wind-40 {
  background-color: #66bb6a !important;
  color: #fff !important;
}

.wind-50,
.wind-60,
.wind-70 {
  background-color: #4caf50 !important;
  color: #fff !important;
}

.wind-60,
.wind-70 {
  background-color: #43a047 !important;
}

.wind-70 {
  background-color: #388e3c !important;
}

.wind-100,
.wind-80,
.wind-90 {
  background-color: #2e7d32 !important;
  color: #fff !important;
}

.wind-100,
.wind-90 {
  background-color: #1b5e20 !important;
}

.wind-100 {
  background-color: #0d3e10 !important;
}

.rain-0,
.rain-2,
.rain-5 {
  background-color: #e3f2fd !important;
  color: #000 !important;
}

.rain-2,
.rain-5 {
  background-color: #bbdefb !important;
}

.rain-5 {
  background-color: #90caf9 !important;
}

.rain-10,
.rain-20,
.rain-30 {
  background-color: #64b5f6 !important;
  color: #fff !important;
}

.rain-20,
.rain-30 {
  background-color: #42a5f5 !important;
}

.rain-30 {
  background-color: #1e88e5 !important;
}

.theme-dark .temp-50,
.theme-dark td.temp-50,
.theme-dark th.temp-50 {
  background-color: #100002 !important;
  color: #fff !important;
  border-color: #100002 !important;
}

.theme-dark .temp-45,
.theme-dark td.temp-45,
.theme-dark th.temp-45 {
  background-color: #1f0007 !important;
  color: #fff !important;
  border-color: #1f0007 !important;
}

.theme-dark .temp-40,
.theme-dark td.temp-40,
.theme-dark th.temp-40 {
  background-color: #3a000e !important;
  color: #fff !important;
  border-color: #3a000e !important;
}

.theme-dark .temp-35,
.theme-dark td.temp-35,
.theme-dark th.temp-35 {
  background-color: #70001c !important;
  color: #fff !important;
  border-color: #70001c !important;
}

.theme-dark .temp-30,
.theme-dark td.temp-30,
.theme-dark th.temp-30 {
  background-color: #c30031 !important;
  color: #fff !important;
  border-color: #c30031 !important;
}

.theme-dark .temp-27,
.theme-dark td.temp-27,
.theme-dark th.temp-27 {
  background-color: #e13d32 !important;
  color: #fff !important;
  border-color: #e13d32 !important;
}

.theme-dark .temp-24,
.theme-dark td.temp-24,
.theme-dark th.temp-24 {
  background-color: #f67639 !important;
  color: #000 !important;
  border-color: #f67639 !important;
}

.theme-dark .temp-22,
.theme-dark td.temp-22,
.theme-dark th.temp-22 {
  background-color: #fc9f46 !important;
  color: #000 !important;
  border-color: #fc9f46 !important;
}

.theme-dark .temp-20,
.theme-dark td.temp-20,
.theme-dark th.temp-20 {
  background-color: #ffb34c !important;
  color: #000 !important;
  border-color: #ffb34c !important;
}

.theme-dark .temp-18,
.theme-dark td.temp-18,
.theme-dark th.temp-18 {
  background-color: #ffc261 !important;
  color: #000 !important;
  border-color: #ffc261 !important;
}

.theme-dark .temp-16,
.theme-dark td.temp-16,
.theme-dark th.temp-16 {
  background-color: #ffc96c !important;
  color: #000 !important;
  border-color: #ffc96c !important;
}

.theme-dark .temp-14,
.theme-dark td.temp-14,
.theme-dark th.temp-14 {
  background-color: #ffd881 !important;
  color: #000 !important;
  border-color: #ffd881 !important;
}

.theme-dark .temp-12,
.theme-dark td.temp-12,
.theme-dark th.temp-12 {
  background-color: #ffe796 !important;
  color: #000 !important;
  border-color: #ffe796 !important;
}

.theme-dark .temp-10,
.theme-dark td.temp-10,
.theme-dark th.temp-10 {
  background-color: #ffeea1 !important;
  color: #000 !important;
  border-color: #ffeea1 !important;
}

.theme-dark .temp-8,
.theme-dark td.temp-8,
.theme-dark th.temp-8 {
  background-color: #e3ecab !important;
  color: #000 !important;
  border-color: #e3ecab !important;
}

.theme-dark .temp-6,
.theme-dark td.temp-6,
.theme-dark th.temp-6 {
  background-color: #cfebb2 !important;
  color: #000 !important;
  border-color: #cfebb2 !important;
}

.theme-dark .temp-4,
.theme-dark td.temp-4,
.theme-dark th.temp-4 {
  background-color: #b6e3b7 !important;
  color: #000 !important;
  border-color: #b6e3b7 !important;
}

.theme-dark .temp-2,
.theme-dark td.temp-2,
.theme-dark th.temp-2 {
  background-color: #91d5ba !important;
  color: #000 !important;
  border-color: #91d5ba !important;
}

.theme-dark .temp-0,
.theme-dark td.temp-0,
.theme-dark th.temp-0 {
  background-color: #7fcebc !important;
  color: #000 !important;
  border-color: #7fcebc !important;
}

.theme-dark .temp--2,
.theme-dark td.temp--2,
.theme-dark th.temp--2 {
  background-color: #60c3c1 !important;
  color: #fff !important;
  border-color: #60c3c1 !important;
}

.theme-dark .temp--4,
.theme-dark td.temp--4,
.theme-dark th.temp--4 {
  background-color: #38aec4 !important;
  color: #fff !important;
  border-color: #38aec4 !important;
}

.theme-dark .temp--6,
.theme-dark td.temp--6,
.theme-dark th.temp--6 {
  background-color: #1d92c1 !important;
  color: #fff !important;
  border-color: #1d92c1 !important;
}

.theme-dark .temp--8,
.theme-dark td.temp--8,
.theme-dark th.temp--8 {
  background-color: #3075ac !important;
  color: #fff !important;
  border-color: #3075ac !important;
}

.theme-dark .temp--10,
.theme-dark td.temp--10,
.theme-dark th.temp--10 {
  background-color: #435897 !important;
  color: #fff !important;
  border-color: #435897 !important;
}

.theme-dark .temp--15,
.theme-dark td.temp--15,
.theme-dark th.temp--15 {
  background-color: #082376 !important;
  color: #fff !important;
  border-color: #082376 !important;
}

.theme-dark .temp--20,
.theme-dark td.temp--20,
.theme-dark th.temp--20 {
  background-color: #02154f !important;
  color: #fff !important;
  border-color: #02154f !important;
}

.theme-dark .temp--30,
.theme-dark td.temp--30,
.theme-dark th.temp--30 {
  background-color: #020f39 !important;
  color: #fff !important;
  border-color: #020f39 !important;
}

.theme-dark .temp--40,
.theme-dark td.temp--40,
.theme-dark th.temp--40 {
  background-color: #01081e !important;
  color: #fff !important;
  border-color: #01081e !important;
}

.theme-dark .wind-0,
.theme-dark td.wind-0,
.theme-dark th.wind-0 {
  background-color: #e8f5e9 !important;
  color: #000 !important;
  border-color: #e8f5e9 !important;
}

.theme-dark .wind-10,
.theme-dark td.wind-10,
.theme-dark th.wind-10 {
  background-color: #c8e6c9 !important;
  color: #000 !important;
  border-color: #c8e6c9 !important;
}

.theme-dark .wind-20,
.theme-dark td.wind-20,
.theme-dark th.wind-20 {
  background-color: #a5d6a7 !important;
  color: #000 !important;
  border-color: #a5d6a7 !important;
}

.theme-dark .wind-30,
.theme-dark td.wind-30,
.theme-dark th.wind-30 {
  background-color: #81c784 !important;
  color: #000 !important;
  border-color: #81c784 !important;
}

.theme-dark .wind-40,
.theme-dark td.wind-40,
.theme-dark th.wind-40 {
  background-color: #66bb6a !important;
  color: #fff !important;
  border-color: #66bb6a !important;
}

.theme-dark .wind-50,
.theme-dark td.wind-50,
.theme-dark th.wind-50 {
  background-color: #4caf50 !important;
  color: #fff !important;
  border-color: #4caf50 !important;
}

.theme-dark .wind-60,
.theme-dark td.wind-60,
.theme-dark th.wind-60 {
  background-color: #43a047 !important;
  color: #fff !important;
  border-color: #43a047 !important;
}

.theme-dark .wind-70,
.theme-dark td.wind-70,
.theme-dark th.wind-70 {
  background-color: #388e3c !important;
  color: #fff !important;
  border-color: #388e3c !important;
}

.theme-dark .wind-80,
.theme-dark td.wind-80,
.theme-dark th.wind-80 {
  background-color: #2e7d32 !important;
  color: #fff !important;
  border-color: #2e7d32 !important;
}

.theme-dark .wind-90,
.theme-dark td.wind-90,
.theme-dark th.wind-90 {
  background-color: #1b5e20 !important;
  color: #fff !important;
  border-color: #1b5e20 !important;
}

.theme-dark .wind-100,
.theme-dark td.wind-100,
.theme-dark th.wind-100 {
  background-color: #0d3e10 !important;
  color: #fff !important;
  border-color: #0d3e10 !important;
}

.theme-dark .rain-0,
.theme-dark td.rain-0,
.theme-dark th.rain-0 {
  background-color: #e3f2fd !important;
  color: #000 !important;
  border-color: #e3f2fd !important;
}

.theme-dark .rain-2,
.theme-dark td.rain-2,
.theme-dark th.rain-2 {
  background-color: #bbdefb !important;
  color: #000 !important;
  border-color: #bbdefb !important;
}

.theme-dark .rain-5,
.theme-dark td.rain-5,
.theme-dark th.rain-5 {
  background-color: #90caf9 !important;
  color: #000 !important;
  border-color: #90caf9 !important;
}

.theme-dark .rain-10,
.theme-dark td.rain-10,
.theme-dark th.rain-10 {
  background-color: #64b5f6 !important;
  color: #fff !important;
  border-color: #64b5f6 !important;
}

.theme-dark .rain-20,
.theme-dark td.rain-20,
.theme-dark th.rain-20 {
  background-color: #42a5f5 !important;
  color: #fff !important;
  border-color: #42a5f5 !important;
}

.theme-dark .rain-30,
.theme-dark td.rain-30,
.theme-dark th.rain-30 {
  background-color: #1e88e5 !important;
  color: #fff !important;
  border-color: #1e88e5 !important;
}

.theme-dark .bg-white {
  background-color: #1f2227 !important;
}

.trend-down,
.trend-steady,
.trend-up {
  color: #28a745;
  font-size: 1.4em;
  font-weight: 700;
  display: inline-block;
  margin-left: 0.7em;
  vertical-align: middle;
}

.trend-down,
.trend-steady {
  color: #dc3545;
}

.trend-steady {
  color: #ffc107;
}

.theme-light .navbar-nav .nav-link,
.theme-light .navbar-nav .nav-link:visited,
.theme-light .small.text-white,
.theme-light .text-white {
  color: #111 !important;
}

.theme-light .navbar-nav .nav-link.active,
.theme-light .navbar-nav .nav-link:focus,
.theme-light .navbar-nav .nav-link:hover {
  color: #fff !important;
}

.forecast-dark {
  border-color: #343a40 !important;
}

.forecast-dark .card-footer,
.forecast-dark .card-header {
  background: #1a1d20 !important;
  color: #f8f9fa !important;
}

.forecast-dark,
.forecast-dark .card-body {
  background: #23272b !important;
  color: #f8f9fa !important;
}

.forecast-dark .text-muted,
.forecast-dark img {
  filter: brightness(0.8) !important;
  color: #adb5bd !important;
}

.theme-dark .extremes-tabs {
  --bs-nav-tabs-border-width: 2px;
  --bs-nav-tabs-border-color: #0d6efd;
  --bs-nav-tabs-border-radius: 0.5rem;
  --bs-nav-tabs-link-hover-border-color: #23272b #23272b #0d6efd;
  --bs-nav-tabs-link-active-color: #fff;
  --bs-nav-tabs-link-active-bg: #0d6efd;
  --bs-nav-tabs-link-active-border-color: #0d6efd #23272b;
}

.weather-ticker-outer {
  background: linear-gradient(90deg, #0d6efd 0, #0a58ca 100%);
  width: 100%;
  min-height: 2.5em;
  position: relative;
  z-index: 10;
}

.weather-ticker-inner {
  display: inline-block;
  white-space: nowrap;
  padding: 0.5em 0;
  font-size: 1.1rem;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}

.weather-ticker-outer:hover .weather-ticker-inner {
  animation-play-state: paused;
  cursor: pointer;
}

.ticker-item a {
  color: #fff;
  text-decoration: underline;
}

.ticker-sep {
  margin: 0 1.2em;
  color: #fff;
  opacity: 0.7;
  font-weight: 700;
}

@media (max-width: 600px) {
  .weather-ticker-inner {
    font-size: 0.95rem;
  }
}

.theme-dark .sparkline-container span,
.weather-ticker-inner,
.weather-ticker-inner .ticker-item,
.weather-ticker-inner .ticker-item a,
.weather-ticker-inner .ticker-sep,
.weather-ticker-outer {
  color: #fff !important;
}

.theme-dark .weather-ticker-outer {
  background: linear-gradient(90deg, #23272b 0, #181a1b 100%) !important;
  color: #fff !important;
}

.weather-ticker-inner .ticker-item a {
  text-decoration: none !important;
}

.weather-ticker-outer {
  border-radius: 50px !important;
  overflow: hidden;
  margin-bottom: 20px;
}

.p-4.rounded-4.shadow.bg-white {
  min-height: 80vh;
}

#hum-sparkline,
#press-sparkline,
#rain-sparkline,
#temp-sparkline,
#uv-sparkline,
#wind-sparkline {
  overflow: visible !important;
}

.record-led-legend.led-month {
  background: #ffe066 !important;
  border-color: #ffe066 !important;
}

.record-led-legend.led-year {
  background: #ffa94d !important;
  border-color: #ffa94d !important;
}

.record-led-legend.led-alltime {
  background: #fa5252 !important;
  border-color: #fa5252 !important;
}

.ajax-record-led,
.record-led-legend {
  width: 14px;
  height: 7px;
  display: inline-block;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  border: 0;
  background: #ccc;
  border-radius: 999px;
}

.ajax-record-led {
  display: none;
  margin-left: 6px;
  border: 2px solid #888;
}

.ajax-record-led.led-month {
  background: #ffe066 !important;
  border-color: #ffe066 !important;
}

.ajax-record-led.led-year {
  background: #ffa94d !important;
  border-color: #ffa94d !important;
}

.ajax-record-led.led-alltime {
  background: #fa5252 !important;
  border-color: #fa5252 !important;
}

.legend-led {
  display: inline-block !important;
}

.ajax-record-led.led-flash {
  animation: led-flash 1s steps(1) infinite !important;
}

.hist-rec-block,
.hist-rec-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hist-rec-section-header {
  font-size: 1.08rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px 8px 0 0;
  margin: 10px 0;
  background: #f1f3f5;
  color: #222;
  letter-spacing: 0.01em;
  border-left: 6px solid #228be6;
}

.hist-rec-section-header.temp {
  background: #ffe3e3;
  border-left-color: #fa5252;
}

.hist-rec-section-header.wind {
  background: #e6fcf5;
  border-left-color: #198754;
}

.hist-rec-section-header.rain {
  background: #e7f5ff;
  border-left-color: #228be6;
}

.hist-rec-section-header.sun {
  background: #fff9db;
  border-left-color: #fab005;
}

.hist-rec-section-header.dew {
  background: #e3fafc;
  border-left-color: #20c997;
}

.hist-rec-section-header.pressure {
  background: #e6fcf5;
  border-left-color: #20c997;
}

.hist-rec-section-header i {
  margin-left: 8px;
  font-size: 1.1em;
  opacity: 0.85;
}

.hist-rec-block {
  padding: 8px 12px;
  border-radius: 0 0 8px 8px;
  font-weight: 500;
  font-size: 1.01rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  color: inherit;
  background: linear-gradient(90deg, #e9ecef 0, #f8fafc 100%);
}

.hist-label-max,
.hist-label-min,
.hist-label-pressure,
.hist-label-pressure-low,
.hist-label-rain,
.hist-label-rain-rate,
.hist-label-sun,
.hist-label-uv,
.hist-label-wind {
  border-radius: 4px;
  padding: 2px 8px;
  background: #f8fafc;
  font-weight: 500;
}

.today-vs-yesterday-card .table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin-bottom: 0;
  width: 100%;
  background: #fff;
  border-radius: 14px 14px 0 0 !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(34, 139, 230, 0.04);
}

.today-vs-yesterday-card td,
.today-vs-yesterday-card th {
  padding: 10px 12px !important;
  font-size: 0.98rem;
  line-height: 1.1;
  vertical-align: middle !important;
  border: 0 !important;
  background: #fff;
}

.today-vs-yesterday-card thead th {
  background: linear-gradient(90deg, #e9ecef 0, #f8fafc 100%) !important;
  color: #222 !important;
  font-weight: 600;
  border-bottom: 2.5px solid #228be6 !important;
  border-top: none !important;
}

.today-vs-yesterday-card .table td:nth-child(3),
.today-vs-yesterday-card .table th:nth-child(3) {
  border-left: 2.5px solid #e9ecef !important;
  border-right: 0 !important;
}

.theme-dark .today-vs-yesterday-card .table td:nth-child(3),
.theme-dark .today-vs-yesterday-card .table th:nth-child(3) {
  border-left: 2.5px solid #444 !important;
  border-right: 0 !important;
}

.today-vs-yesterday-card .table td:nth-child(1) {
  border-right: none !important;
}

.tvsy-th {
  font-weight: 500;
  border-radius: 0 !important;
  padding: 10px 12px !important;
  background: #f1f3f5 !important;
  color: #222 !important;
  border: 0 !important;
}

.tvsy-th-max-temp {
  background: #fa525244 !important;
  color: #000 !important;
}

.tvsy-th-min-temp {
  background: #228be648 !important;
  color: #000 !important;
}

.tvsy-th-max-humidity {
  background: #fa525244 !important;
  color: #000 !important;
}

.tvsy-th-min-humidity {
  background: #228be648 !important;
  color: #000 !important;
}

.tvsy-th-max-dew {
  background: #fa525244 !important;
  color: #000 !important;
}

.tvsy-th-min-dew {
  background: #228be648 !important;
  color: #000 !important;
}

.tvsy-th-max-gust {
  background: #19875446 !important;
  color: #000 !important;
}

.tvsy-th-avg-wind {
  background: #51cf6650 !important;
  color: #000 !important;
}

.tvsy-th-wind-run {
  background: #b2f2bb4c !important;
  color: #000 !important;
}

.tvsy-th-max-pressure {
  background: #20c99648 !important;
  color: #000 !important;
}

.tvsy-th-min-pressure {
  background: #95e3c449 !important;
  color: #000 !important;
}

.tvsy-th-rain {
  background: #228be647 !important;
  color: #000 !important;
}

.tvsy-th-solar {
  background: #fff9db !important;
  color: #7c5e00 !important;
}

.tvsy-divider {
  border: 0;
  border-top: 2px solid #e9ecef;
  margin: 10px 0 0;
  height: 0;
  width: 100%;
  background: 0 0;
}

.today-vs-yesterday-card td[colspan='3'] {
  padding: 0 !important;
  border: 0 !important;
  background: 0 0 !important;
}

.sparkline-container {
  background: #f8fafc;
  border-radius: 6px;
  padding: 4px 8px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  box-shadow: 0 1px 4px rgba(34, 139, 230, 0.07);
  border: 1px solid #e9ecef17;
}

.sparkline-container canvas,
.sparkline-container span {
  min-width: 260px;
  width: 260px !important;
  max-width: 100%;
  height: 50px !important;
  display: block;
}

.jqstooltip {
  width: 170px !important;
  font-size: 0.92rem !important;
  padding: 2px !important;
  border-radius: 5px !important;
  background: rgba(6, 126, 255, 0.66) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(34, 139, 230, 0.08);
  border: 1px solid #e9ecef !important;
  z-index: 9999 !important;
  margin-top: -8px !important;
}

@media (max-width: 575.98px) {
  .hist-rec-block {
    padding: 6px;
    font-size: 0.95rem;
    white-space: normal;
    word-break: break-word;
  }

  .hist-rec-section-header,
  .tvsy-section-header {
    font-size: 1rem;
    padding: 5px 8px;
  }

  .today-vs-yesterday-card td,
  .today-vs-yesterday-card th,
  .tvsy-th {
    padding: 5px 6px !important;
    font-size: 0.93rem;
  }

  .sparkline-container canvas,
  .sparkline-container span {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 42px !important;
  }
}

.theme-dark .sparkline-container {
  background: #23272b !important;
}

.theme-dark .card,
.theme-dark .card-body,
.theme-dark .card-footer,
.theme-dark .table,
.theme-dark .table td,
.theme-dark .table th,
.theme-dark .weather-extremes-card .nav-tabs .nav-link {
  background: #23272b !important;
  color: #fff !important;
  border-color: #444 !important;
}

.theme-dark .table-light {
  background: #343a40 !important;
  color: #fff !important;
}

.theme-dark .hist-divider,
.theme-dark .tvsy-divider {
  border-color: #444 !important;
}

.theme-dark .ajax-record-led,
.theme-dark .record-led {
  filter: brightness(1.5);
}

.theme-dark .hist-rec-section-header {
  color: #000 !important;
  border-left-color: #228be6 !important;
}

.theme-dark .hist-rec-section-header.temp {
  border-left-color: #fa5252 !important;
}

.theme-dark .hist-rec-section-header.wind {
  border-left-color: #198754 !important;
}

.theme-dark .hist-rec-section-header.rain {
  border-left-color: #228be6 !important;
}

.theme-dark .hist-rec-section-header.sun {
  border-left-color: #fab005 !important;
}

.theme-dark .hist-rec-section-header.dew,
.theme-dark .hist-rec-section-header.pressure {
  border-left-color: #20c997 !important;
}

.theme-dark .hist-rec-block {
  background: #181a1b !important;
  color: #f8f9fa !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.theme-dark .hist-label-max,
.theme-dark .hist-label-min,
.theme-dark .hist-label-pressure,
.theme-dark .hist-label-pressure-low,
.theme-dark .hist-label-rain,
.theme-dark .hist-label-rain-rate,
.theme-dark .hist-label-sun,
.theme-dark .hist-label-uv,
.theme-dark .hist-label-wind {
  background: #181a1b !important;
  color: #fff !important;
}

.theme-dark .station-status-card .list-group-item,
.theme-dark .weather-extremes-card .extreme-item {
  background: #181a1b !important;
  color: #fff !important;
  border-color: #333 !important;
}

.theme-dark .extreme-item.lowmax-bg .extreme-label,
.theme-dark .extreme-item.lowmax-bg .extreme-location,
.theme-dark .extreme-item.max-bg .extreme-label,
.theme-dark .extreme-item.max-bg .extreme-location,
.theme-dark .extreme-item.min-bg .extreme-label,
.theme-dark .extreme-item.min-bg .extreme-location,
.theme-dark .extreme-item.rain-bg .extreme-label,
.theme-dark .extreme-item.rain-bg .extreme-location,
.theme-dark .extreme-item.sun-bg .extreme-label,
.theme-dark .extreme-item.sun-bg .extreme-location,
.theme-dark .weather-extremes-card .extreme-label,
.theme-dark .weather-extremes-card .extreme-location {
  color: #fff !important;
}

.theme-dark .station-status-card .extreme-value,
.theme-dark .weather-extremes-card .extreme-value {
  background: #181a1b !important;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 500;
  padding: 2px 8px;
}

.theme-dark .weather-extremes-card .nav-tabs .nav-link.active {
  background: #0d6efd !important;
  color: #fff !important;
  border-color: #444 #444 #23272b !important;
}

.theme-dark .today-vs-yesterday-card .table td:nth-child(1) {
  border-right: none !important;
  background: #23272b !important;
  color: #f8f9fa !important;
}
