:root[data-bs-theme="light"] {
  --navbar-bg: #007bff; /* Blue background for light theme */
  --navbar-text-color: #ffffff; /* White text for contrast */
}

:root[data-bs-theme="dark"] {
  --navbar-bg: #024588; /* Darker blue background for dark theme */
  --navbar-text-color: #e0e0e0; /* Lighter text for dark theme */
  --bs-primary: #66b2ff; /* Lighter blue for dark theme */
  --bs-primary-rgb: 102, 178, 255; 
}


/* Apply these variables to the navbar */
.navbar {
  background-color: var(--navbar-bg) !important;
  color: var(--navbar-text-color);
}

.navbar-brand {
  padding: 2px 0;
}

.navbar .nav-link {
  color: var(--navbar-text-color) !important;
}

.navbar .nav-link:hover {
  color: #ffc107; /* Optional hover effect (yellow) */
}

/* textual logo next to the image logo */
.navbar-brand-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  z-index: 1;

  /* Align right edge of SVG to the left edge of .container */
  right: 100%; /* places it just outside the container */
}

.navbar-brand-text img {
  height: 100%;
}
.navbar-brand img {
  height: 50px;
  width: 50px;
  margin: 0;
  padding: 0;
}

/* Show/hide logo based on [data-bs-theme] attribute */
[data-bs-theme="light"] .logo-dark {
  display: none;
}
[data-bs-theme="light"] .logo-light {
  display: inline;
}

[data-bs-theme="dark"] .logo-light {
  display: none;
}
[data-bs-theme="dark"] .logo-dark {
  display: inline;
}

/* Only show on large screens */
@media (max-width: 1650px) {
  .navbar-brand-text {
    display: none !important;
  }
}

.content {
  min-width: 25%;
}

h2 {
  margin-top: 0.25em;
}

h2.accordion-header {
  /* Offset the above for h2 */
  margin-top: 0;
}

h1 {
  margin-top: 0.5em;
}

/* style boostrap buttons, because they are not responsive to light/dark */
.btn-responsive {
  background-color: var(--navbar-bg) !important;
  color: var(--navbar-text-color);
}

.btn-responsive:hover {
  color: #ccc;
}

/* Style for nested dropdowns */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -5px;
  margin-left: 0;
}

iframe {
  width: 100%; 
  height: 80vh; 
  border: 1px solid #ccc; 
  border-radius: 5px;
}

.h2-icon {
  vertical-align: top;
  font-size: 0.4em;
  opacity: 0.8; 
}


.d-flex.flex-nowrap button {
  white-space: nowrap; /* Prevents text from wrapping */
  overflow: hidden; /* Ensures text doesn’t overflow */
  text-overflow: ellipsis; /* Adds "..." if text is too long */
}


/* 
For the popup interactability
*/

.bay-group {
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

/* clickable header */
.bay-header {
    cursor: pointer;
    padding: 6px;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
    user-select: none;
}


.toggle-indicator {
    font-size: 6pt;
    margin-right: 6px;
    transition: transform 0.2s ease;
}

/* content area (collapsible) */
.bay-content {
    max-height: 0;
    overflow: hidden;
}

.bay-content th {
    padding:5px 10px; 
    text-align:center;
}

.bay-content td {
    padding:5px 10px; 
    text-align:center;
}

/* expanded state */
.bay-header.open .toggle-indicator {
    transform: rotate(90deg); /* ▶ turns into ▼ */
}














/* Wind slider */

/* Container */
.slider-container {
    width: 320px;
    padding: 5px;
    background: rgba(128,128,128,0.1);
    border-radius: 8px;
    text-align: center;
    margin: auto;
} 

/* Base slider reset */
.slider {
    width: 100%;
    height: 4px;
    margin: 10px 0 0px 0;
    cursor: pointer;
}

/* WebKit track */
.slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, #3b82f6, red);
}

/* Firefox track */
.slider::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, #3b82f6, red);
}

/* Shared thumb */
.slider::-webkit-slider-thumb,
.slider::-moz-range-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563eb;
  border: 1px solid #ccc;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.2s;
}

/* Center thumb on WebKit */
.slider::-webkit-slider-thumb {
  margin-top: -6px; /* (thumb height - track height)/2 */
}

/* Hover effect */
.slider::-webkit-slider-thumb:hover,
.slider::-moz-range-thumb:hover {
  background: #1e40af;
}

/* Value display */
.value-display {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 4px;
}

/* Labels under slider */
.labels span {
    width: 15px;
}
.labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  margin-top: 4px;
}

/* Ticks */
datalist {
    display: flex;
    justify-content: space-between;
    margin-top: -15px;
    pointer-events: none;
}
datalist option {
    position: relative;
}
