:root {
  --plate-bg: #e9f2fa;
  --brand-base: #3b4c7a;
  --brand-accent: #2a9df4;
  --highlight: #ffd23f;
}
.icon-plate {
  background: var(--plate-bg);
  border-radius: 24px;
  box-shadow: 0 6px 12px rgba(32, 49, 66, 0.15);
}
table {
  width: 100%;
  table-layout: fixed;
  /* Enforces equal column widths */
}
table td,
table th {
  width: 25%;
  /* Adjust based on how many columns you expect */
  padding: 0.5rem;
  vertical-align: top;
  word-wrap: break-word;
  /* Prevent text overflow */
}
.highlight {
  border: 3px solid red;
  outline: 2px solid rgba(255, 0, 0, 0.53);
  border-radius: 10px;
  background: #f4cfcf;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.airport-info {
  display: flex;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  margin-top: 20px;
}
.weather-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.metar-section,
.taf-section {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.flight-category {
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  font-weight: bold;
}
.raw-metar,
.raw-taf {
  background: #fff;
  padding: 15px;
  border-radius: 4px;
  margin: 10px 0;
}
.weather-raw {
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 0;
  white-space: pre-wrap;
  font-family: monospace;
}
.table-sm td {
  padding: 0.3rem;
  vertical-align: middle;
}
.forecast-period {
  background: #fff;
  padding: 15px;
  margin: 10px 0;
  border-radius: 4px;
  border-left: 4px solid #4a90e2;
}
.forecast-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #666;
}
.forecast-text {
  white-space: pre-wrap;
  font-family: monospace;
}
.issue-time {
  color: #666;
  font-style: italic;
}
pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}
.debug-section {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}
.legend {
  background: white;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  line-height: 18px;
  max-width: 200px;
}
.legend-title {
  font-weight: bold;
  margin-bottom: 10px;
  border-bottom: 2px solid #333;
  padding-bottom: 5px;
}
.legend-item {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend-color {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #333;
  flex-shrink: 0;
}
:root {
  --primary-color: #36648b;
  --secondary-color: #5a8abf;
  --background-color: #f5f7fa;
  --text-color: #222;
  --muted-text-color: #6c757d;
  --card-bg: #ffffff;
  --border-color: #b0c4de;
  --navbar-text-color: #ffffff;
  --footer-bg: #24496b;
  --footer-text-color: #ffffff;
}
body {
  background-color: var(--background-color);
  color: var(--text-color);
}
.navbar {
  background-color: var(--primary-color);
}
.navbar-brand,
.navbar-nav .nav-link {
  color: var(--navbar-text-color);
}
.navbar-nav .nav-link:hover {
  color: var(--secondary-color);
}
.banner {
  background-color: var(--primary-color);
  /* background-color: var(--primary-color);
 */
  color: var(--navbar-text-color);
}
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text-color);
  padding: 1rem 0;
  text-align: center;
}
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}
.card-title {
  color: var(--primary-color);
}
.text-muted {
  color: var(--muted-text-color) !important;
}
.navbar-logo {
  height: 80px;
  width: auto;
  max-height: 100px;
}
/* Info panel styling */
.info-panel {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px 12px;
  margin-left: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.info-panel-content {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}
.info-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}
.info-label {
  font-weight: bold;
  margin-right: 5px;
  color: rgba(255, 255, 255, 0.85);
}
.info-value {
  color: rgba(255, 255, 255, 0.95);
}
/* Fix for smaller screens */
.navbar-collapse {
  margin-top: 10px;
}
/* Add a mobile-friendly info panel that appears below the menu items */
.navbar-collapse.show .info-panel,
.navbar-collapse.collapsing .info-panel {
  display: block !important;
  width: 100%;
  margin-top: 10px;
  margin-left: 0;
}
.wx-icon {
  font-size: 18px;
  color: red;
  text-shadow: 1px 1px 2px #000;
}
.settings-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
.settings-nav {
  margin-bottom: 20px;
}
.back-link {
  text-decoration: none;
  color: #666;
}
.settings-section {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.color-input {
  display: flex;
  align-items: center;
  gap: 10px;
}
.color-hex {
  width: 80px;
  text-align: center;
}
.form-actions {
  margin-top: 20px;
}
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.btn-primary {
  background: #007bff;
  color: white;
}
.btn-primary:hover {
  background: #0056b3;
}
/* LED Settings specific styles */
.brightness-control {
  width: 100%;
  margin: 10px 0;
}
.effect-card {
  border: 2px solid transparent;
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.effect-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.effect-card.selected {
  border-color: var(--primary-color);
  background-color: rgba(54, 100, 139, 0.1);
}
.effect-description {
  font-size: 0.9em;
  color: var(--muted-text-color);
  margin-top: 8px;
}
.settings-header {
  background: linear-gradient(to right, var(--footer-bg), var(--primary-color));
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  color: var(--navbar-text-color);
}
.brightness-value {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  margin: 10px 0;
  color: var(--text-color);
}
.preview-box {
  height: 50px;
  border-radius: 8px;
  margin: 15px 0;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}
.settings-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.settings-title {
  color: #2c3e50;
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}
.settings-menu {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.settings-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  color: #2c3e50;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.settings-menu-item {
  border-bottom: 1px solid #eee;
}
.settings-menu-item:last-child {
  border-bottom: none;
}
.settings-link:hover {
  background-color: #f8f9fa;
}
.settings-link-text {
  font-size: 1rem;
}
.settings-arrow-icon {
  width: 24px;
  height: 24px;
  fill: #6c757d;
}

table.grouped-table.separate-groups {
  border-collapse: separate;
}
/* -------- GROUPED TABLE VISUALS -------- */
.grouped-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* Outer border for each tbody group */
.grouped-table tbody.wxgroup {
  border: 2px solid #888; /* the visible box */
  border-left-color: #16A;
  border-right-color: #16A;
  border-top-color: #16A;
  border-bottom-color: #16A;
  border-radius: 6px;
  margin-bottom: 0.75em;
  display: table; /* makes the tbody render as a block */
  width: 100%;
  box-sizing: border-box;
}

/* Optional visual separation between groups */
.grouped-table tbody.wxgroup + tbody.wxgroup {
  margin-top: 0.75em;
}

/* Style inside rows */
.grouped-table tbody.wxgroup tr {
  padding: 0.5em 0.8em;
  border-left-color: #16A;
  border-right-color: #16A;
  border-top-color: #16A;
  border-bottom-color: #16A;
  border-left: 4px;
}

/* Style inside rows */
.grouped-table tbody.wxgroup td {
  padding: 0.5em 0.8em;
  border-width: 0;
}

/* Smooth rounded corners */
.grouped-table tbody.wxgroup tr:first-child td:first-child {
  border-top-left-radius: 6px;
  border: 2px;
}
.grouped-table tbody.wxgroup tr:first-child td:last-child {
  border-top-right-radius: 6px;
  border: 2px;
}
.grouped-table tbody.wxgroup tr:last-child td:first-child {
  border-bottom-left-radius: 6px;
  border: 2px;
}
.grouped-table tbody.wxgroup tr:last-child td:last-child {
  border-bottom-right-radius: 6px;
  border: 2px;
}
