@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400; /* Regular weight is typically 400 */
  src: local('Inter'), 
       local('Inter-Regular'),
       url('fonts/Inter-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500; /* Medium weight */
  src: local('Inter Medium'), 
       local('Inter-Medium'),
       url('fonts/Inter-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'FasterOne';
  font-style: normal;
  font-weight: 400; /* Regular weight is typically 400 */
  src: local('FasterOne'), 
       local('FasterOne-Regular'),
       url('fonts/FasterOne-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Audiowide';
  font-style: normal;
  font-weight: 400; /* Regular weight is typically 400 */
  src: local('Audiowide'), 
       local('Audiowide-Regular'),
       url('fonts/Audiowide-Regular.ttf') format('truetype');
}


.right-column .nav-links {
  list-style: none;
  padding-left: 0;
}

.right-column .nav-links li {
  margin-bottom: 0.5em; /* optional: adds some spacing between items */
}

.nav-links li {
  margin-bottom: 1.0em;
  position: relative;
  padding-left: 1.2em;
}

.nav-links li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent); /* optional for visual emphasis */
}

.card {
  margin-bottom: 4em;
}

:root {
  --bg: #41b4e9;
  --text: #ffffff;
  --accent: #2d9cdb;
  --link: #2d9cdb;
  --card: #0b1318;
  --border: #8ecae6;
  --logo-filter: brightness(0) saturate(100%) invert(48%) sepia(85%) saturate(748%) hue-rotate(162deg) brightness(89%) contrast(87%);
  --wave-color: rgba(155, 218, 255, 0.2);
}


body[data-theme="red"] {
  --bg: #2b0e0e;
  --text: #ffffff;
  --accent: #ffffff;
  --link: #ffffff;
  --card: #c93838;
  --border: #aa4444;
  --logo-filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
  --wave-color: rgba(245, 243, 243, 0.5);
}

body[data-theme="blue"] {
  --bg: #41b4e9;
  --text: #ffffff;
  --accent: #2d9cdb;
  --link: #2d9cdb;
  --card: #0b1318;
  --border: #8ecae6;
  --logo-filter: brightness(0) saturate(100%) invert(48%) sepia(85%) saturate(748%) hue-rotate(162deg) brightness(89%) contrast(87%);
  --wave-color: rgba(155, 218, 255, 0.2);
}

body[data-theme="yellow"] {
  --bg: #000000;             /* Pure black background */
  --text: #f8f8f8;           /* Off-white text */
  --accent: #FFCC00;         /* Bruce Lee's iconic yellow */
  --link: #FFD700;           /* Slightly brighter yellow for links */
  --card: #1a1a1a;           /* Dark gray cards */
  --border: #333333;         /* Medium gray borders */
  --logo-filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
  --wave-color: rgb(255, 208, 0.5);
}

body[data-theme="evangelion"] {
  --bg: #0a0a2a;             /* Deep navy blue background */
  --text: #e0e0ff;           /* Light lavender text */
  --accent: #ff00ff;         /* Neon magenta (Eva-01 purple) */
  --link: #00ffff;           /* Cyan highlights (NERV green/cyan) */
  --card: #1a1a3a;           /* Dark purple cards */
  --border: #4d4dff;         /* Electric blue borders */
  --logo-filter: brightness(0) saturate(100%) invert(28%) sepia(98%) saturate(2475%) hue-rotate(292deg) brightness(104%) contrast(147%);
  --wave-color: rgba(255, 0, 255, 0.15); /* Pulsing magenta waves */
}

body[data-theme="monster"] {
  --bg: #000000;             /* Pure black background */
  --text: #ffffff;           /* Bright white text */
  --accent: #94ff00;         /* Toxic neon green (Monster's signature color) */
  --link: #00ffaa;           /* Electric teal for links */
  --card: #121212;           /* Slightly lighter black cards */
  --border: #94ff00;         /* Glowing green borders */
  --logo-filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
  --wave-color: rgba(148, 255, 0, 0.50); /* Pulsing neon green energy waves */
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body {
  position: relative;
  z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Audiowide', sans-serif;
  font-weight: 500;
}

#wave-bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  background: black;
}

.header-wrapper {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
}

.logo-block {
  display: flex;
  align-items: center;
  min-width: 180px;
  border-radius: 0 0 0.5em 0;
  padding: 0.5em 1em; /* Adjusted padding */
  background-color: var(--card);
  cursor: pointer;
  z-index: 1001;
}


.logo-block img {
  width: 40px;
  height: 40px;
  filter: var(--logo-filter);
}

#home-link {
  display: flex;
  align-items: center;
  gap: 5x;
  text-decoration: none;
}

.radio-brand {
  font-family: 'Audiowide', 'Orbitron', 'Arial Narrow', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--accent);
  white-space: nowrap;
  /*text-shadow: 0 0 5px var(--wave-color);*/
  font-style: italic;
}

.topbar {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  height: 36px;
  padding: 0 1em;
}

.tabs-container {
  display: flex;
  align-items: center;
  gap: 1em;
  position: relative;
  margin-left: auto;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
}

.tab {
  background: none;
  border: none;
  color: var(--link);
  font-size: 0.95em;
  font-family: 'Audiowide', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  height: 30px;
  line-height: 30px;
  padding: 0 0.6em;
  cursor: pointer;
  position: relative;
}

.tab.active {
  color: var(--accent);
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: -0.4em;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.tab:hover {
  color: var(--accent);
}

.burger-menu {
  font-size: 1.3em;
  background: none;
  border: none;
  color: var(--accent);
  padding: 0;
  margin-left: 0.5em;
  height: 100%;
  display: none;
  align-items: center;
}

@media (max-width: 768px) {

  .logo-block {
    padding: 0; /* Remove padding on mobile */
    border-radius: 0; /* Remove border-radius on mobile */
  }

  .burger-menu {
    display: flex;
  }

  .header-wrapper {
    flex-direction: column;
    height: 50px;
  }

  .topbar {
    height: auto;
    padding: 0.5em 1em;
    flex-direction: column;
    align-items: stretch;
  }

  .tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .tab {
    text-align: center;
    width: 100%;
    height: auto;
    line-height: 1.5;
    padding: 0.6em 0.8em;
  }

  .tab.active::after {
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
  }

  .tabs-container {
    width: 100%;
    justify-content: flex-end;
  }

  .mobile-tabs {
    display: flex;
    flex-direction: column;
  }
}

.mobile-tabs {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card);
  flex-direction: column;
  width: 200px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 0 0 4px 4px;
}

.mobile-tabs.show {
  display: flex;
}

.mobile-tabs .tab {
  padding: 1em;
  text-align: left;
  border-bottom: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
}

.mobile-tabs .tab:last-child {
  border-bottom: none;
}

.main-layout {
  display: flex;
  flex-direction: row;
  gap: 1em;
  padding: 1em;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
}

.left-column {
  flex: 3;
  min-width: 0;
  width: 75%;
}

.right-column {
  flex: 1;
  width: 25%;
  min-width: 150px;
}

h2 {
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3em;
  /*margin-top: 2em;*/
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.styled-select {
  background-color: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4em 0.6em;
  font-size: 1em;
  font-family: inherit;
}

.action-button {
  background-color: var(--card);
  color: var(--accent);
  border: none;
  padding: 0.4em 0.8em;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.2s ease;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.action-button:hover {
  background-color: var(--accent);
  color: var(--card);
}

.action-button.running {
  background-color: var(--accent); /* Same as .action-button:hover */
  color: var(--card); /* Same as .action-button:hover */
}

.reset-button {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.5em 1em;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 1em;
}

.reset-button:hover {
  background-color: var(--accent);
  color: black;
}

.channel-input {
  width: 100%;
  padding: 0.4em;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9em;
  background-color: #000000;
  color: var(--text);
}

.channel {
  background-color: #000000;
  color: var(--text);
  text-align: center;
}

.custom-select-wrapper {
  margin-top: 0.5em;
}

.nav-column {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
}

.favorite-item {
  padding: 6px;
  border-bottom: 1px solid #333;
  color: var(--fg);
}

#activity-feed,
#recording-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.content-column {
  flex: 4;
  min-width: 0; /* Allows content to shrink below min-content size */
}

@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
  }
  
  .nav-column,
  .content-column {
    width: 100%;
    max-width: 100%;
  }
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5em;
}

.styled-table th,
.styled-table td {
  text-align: left;
  padding: 8px 12px;
}

.styled-table th {
  border-bottom: 1px solid var(--border);
}

  .pulse-circle {
    width: 12px;
    height: 12px;
    background: red;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    animation: pulse 1s infinite;
    vertical-align: middle;
  }

  @keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
  }

  /* Update existing burger-menu styles */
.burger-menu {
  font-size: 1.3em;
  background: none;
  border: none;
  color: var(--accent);
  padding: 0.5em;
  margin-left: auto;
  height: 100%;
  display: none;
  align-items: center;
  cursor: pointer;
  z-index: 1001;
}

/* Update mobile menu styles */
.mobile-tabs {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--card);
  flex-direction: column;
  padding: 60px 20px 20px;
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-tabs.show {
  transform: translateX(0);
}

.mobile-tabs .tab {
  padding: 1em;
  text-align: left;
  border-bottom: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
  font-size: 1.1em;
}

.mobile-tabs .tab:last-child {
  border-bottom: none;
}

.close-menu {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5em;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
}

/* Update media queries */
@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }

  .tabs {
    display: none;
  }

  .header-wrapper {
    flex-direction: row;
  }

  .topbar {
    height: auto;
    padding: 0.5em;
  }
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#recording-list button:disabled {
  opacity: 0.5;
  cursor: default;
}

#recording-list button:not(:disabled):hover {
  background-color: #666;
  color: white;
  cursor: pointer;
}

.remote-control-group {
  margin-top: 1.5em;
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 0.5em 1em;
}

.leaflet-marker-icon {
  filter: none !important;
  -webkit-filter: none !important;
}

/* Make links in Nearby tables and popups visibly links */
.nm-table a {
  text-decoration: underline;
}

.leaflet-popup-content a {
  text-decoration: underline;
  font-weight: 600;          /* optional */
}