/* ── Basic Reset ─────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── App Container ───────────────────────────────────── */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  padding: 16px 0;
}

/* ── Header ──────────────────────────────────────────── */
.app-header {
  width: 100%;
  background: #1E90FF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-header::after {
  content: '';
  display: block;
  width: 100%;
  height: 32px;
  background-color: #90EE90;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Title ───────────────────────────────────────────── */
.title-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-icon {
  height: 36px;
  width: auto;
}

.app-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* ── Nav Container ───────────────────────────────────── */
.nav-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 4px;
  transition: all 0.25s ease;
  letter-spacing: 0.4px;
  display: block;
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  text-decoration: none;
}

.nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.25);
  font-weight: 600;
}

.nav-link-external {
  font-style: italic;
  opacity: 0.8;
}

.nav-link-external:hover {
  opacity: 1;
}

/* ── Ko-fi Button ────────────────────────────────────── */
.kofi-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: #90EE90;
  color: #1a5c1a !important;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.kofi-button:hover {
  background: #6dbf6d;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none !important;
}

.kofi-icon {
  font-size: 1rem;
}

/* ── Hamburger (mobile) ──────────────────────────────── */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
  width: 42px;
  height: 38px;
  transition: background-color 0.2s ease;
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 16px;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 22px;
  background-color: #ffffff;
  border-radius: 2px;
}

/* ── Dropdowns ───────────────────────────────────────── */
.Select-control {
  background-color: #1E90FF !important;
  border-color: rgba(30, 144, 255, 0.5) !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  text-align: center;
}

.Select-control:hover {
  border-color: #0066CC !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15) !important;
}

.VirtualizedSelectOption {
  text-align: center;
}

.Select-placeholder,
.Select--single > .Select-control .Select-value {
  color: white !important;
  font-weight: 700 !important;
  padding-left: 12px !important;
  text-align: center !important;
  font-family: sans-serif !important;
}

.Select-input > input {
  color: white !important;
}

.Select-menu-outer {
  background-color: white !important;
  border: 1px solid rgba(46, 139, 46, 0.5) !important;
  border-radius: 0 0 4px 4px !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  margin-top: -1px !important;
}

.Select-option {
  padding: 10px 12px !important;
  color: #444 !important;
  transition: background-color 0.2s ease !important;
}

.Select-option.is-focused {
  background-color: rgba(144, 238, 144, 0.2) !important;
  color: #2e8b2e !important;
}

.Select-option.is-selected {
  background-color: rgba(144, 238, 144, 0.3) !important;
  color: #2e8b2e !important;
  font-weight: 500 !important;
}

.VirtualizedSelectFocusedOption {
  background-color: rgba(144, 238, 144, 0.2) !important;
}

.Select-arrow {
  border-color: white transparent transparent !important;
}

.is-open .Select-arrow {
  border-color: transparent transparent white !important;
}

/* ── Toggle Switch Labels ────────────────────────────── */
h5.right, h5.left {
  font-family: 'Futura PT', 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 12px;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

h5.right {
  background: linear-gradient(135deg, #2e8b2e, #4caf50);
  color: white;
  border-left: 4px solid #1a5c1a;
}

h5.right:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

h5.left {
  background: linear-gradient(135deg, #20B2AA, #3CB371);
  color: white;
  border-left: 4px solid #008B8B;
}

h5.left:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ── Abbreviation Legend ─────────────────────────────── */
.abbreviation-legend {
  font-family: 'Futura PT', sans-serif;
  font-size: 14px;
  color: #444;
  margin-top: 12px;
  padding: 6px 10px;
  background-color: #f9f9f9;
  border-radius: 6px;
  border: 1px solid #ddd;
  text-align: center;
  letter-spacing: 0.5px;
}

/* ── Footer ──────────────────────────────────────────── */
.app-footer {
  width: 100%;
  background: #1E90FF;
  border-top: 4px solid #90EE90;
  padding: 20px;
  margin-top: 32px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-text {
  font-size: 0.82rem;
  color: #ffffff;
  text-align: center;
  font-family: 'Futura PT', 'Montserrat', sans-serif;
  letter-spacing: 0.3px;
  line-height: 1.5;
}

.footer-link {
  color: #90EE90;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .nav-container {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
    gap: 8px;
  }

  .nav-container.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 2px;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    text-align: center;
  }

  .nav-link:hover {
    transform: none;
  }

  .kofi-button {
    align-self: center;
    margin-bottom: 8px;
  }

  .app-title {
    font-size: 1.2rem;
  }

  .Select-placeholder {
    font-size: 14px !important;
  }

  .Select-control {
    height: 42px !important;
  }

  .modebar-container {
    display: none !important;
  }

  #river-dropdown {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
}