/*
 * CLASSIC AVIATION interface theme: a flight-deck display palette (deep blue, white, amber and green). GENERATED by script/generate_themes.rb from the light theme's rules; don't edit by hand.
 * It overrides the same inline neon colours the light theme does.
 */
body.theme-aviation {
  background: #0b1d3a !important;
  color: #f5f7fa !important;
}

/* The palette itself, for everything styled with colour tokens rather than inline colours (ALERTS, RECORDS,
   JUNIOR PROFILES and newer pages): dark surfaces become light, white text becomes dark, and neon accents become
   deeper tones that read on white. */
.theme-aviation {
  --c-black: #13294b;
  --c-white: #f5f7fa;
  --c-grey-050505: #0f2242;
  --c-grey-080808: #0f2242;
  --c-grey-0a0a0a: #0b1d3a;
  --c-grey-111: #0b1d3a;
  --c-grey-1a1a1a: #1f3a64;
  --c-grey-222: #1f3a64;
  --c-grey-333: #2a4a7a;
  --c-grey-444: #2a4a7a;
  --c-grey-555: #a9b8cf;
  --c-grey-666: #a9b8cf;
  --c-grey-888: #a9b8cf;
  --c-grey-aaa: #d6deea;
  --c-amber: #ffb000;
  --c-gold: #ffb000;
  --c-yellow: #ffb000;
  --c-orange: #ff9f43;
  --c-orange-nav: #ff9f43;
  --c-orange-stats: #ff9f43;
  --c-cyan: #5ac8fa;
  --c-cyan-bright: #5ac8fa;
  --c-aqua: #5ac8fa;
  --c-green: #3ddc84;
  --c-magenta: #ff7ad9;
  --c-pink: #ff7ad9;
  --c-red: #ff5a5a;
  --c-red-pure: #ff5a5a;
}

.theme-aviation #header {
  border-bottom: 2px solid #2a4a7a !important;
}

.theme-aviation #tab-bar {
  background: #13294b !important;
  border-bottom: 2px solid #2a4a7a !important;
}
.theme-aviation .tab-btn {
  background: #0f2242 !important;
  color: #a9b8cf !important;
  border-right: 1px solid #1f3a64 !important;
}
.theme-aviation .tab-btn.active {
  color: #ffb000 !important;
  background: #13294b !important;
  text-shadow: none !important;
  border-bottom: 2px solid #ffb000 !important;
}

.theme-aviation #side-nav {
  background: #13294b !important;
  border-left: 2px solid #2a4a7a !important;
}
.theme-aviation .sidenav-tabs {
  background: #0f2242 !important;
  border-bottom: 1.5px solid #1f3a64 !important;
}
.theme-aviation .sidenav-tab-btn {
  background: #0f2242 !important;
  color: #a9b8cf !important;
}
.theme-aviation .sidenav-tab-btn:hover {
  color: #f5f7fa !important;
  background: #0b1d3a !important;
}
.theme-aviation .sidenav-tab-btn.active {
  color: #ffb000 !important;
  background: #13294b !important;
  border-bottom: 2px solid #ffb000 !important;
  text-shadow: none !important;
}
.theme-aviation .operator-box {
  background: #13294b !important;
}
.theme-aviation .nav-item {
  border-bottom: 1px solid #2a4a7a !important;
}
.theme-aviation .nav-item:hover {
  background: #0b1d3a !important;
}
.theme-aviation .nav-item[href$="/seen"] { color: #5ac8fa !important; }
.theme-aviation .nav-item[href$="/airports"] { color: #ffb000 !important; }
.theme-aviation .nav-item[href$="/spotter"] { color: #3ddc84 !important; }
.theme-aviation .nav-item[href$="/caught"] { color: #ff7ad9 !important; }
.theme-aviation .nav-item[href$="/leaderboard"] { color: #5ac8fa !important; }
.theme-aviation .nav-item[href$="/news"] { color: #ff9f43 !important; }
.theme-aviation .nav-item[href$="/safety"] { color: #ff5a5a !important; }
.theme-aviation .nav-item[href$="/alerts"] { color: #ffb000 !important; }
.theme-aviation .nav-item[href$="/replay"] { color: #5ac8fa !important; }
.theme-aviation .nav-item[href$="/records"] { color: #ffb000 !important; }

.theme-aviation .airport-filter select,
.theme-aviation .receiver-filter select {
  background: #13294b !important;
  color: #f5f7fa !important;
  border: 1px solid #2a4a7a !important;
}

.theme-aviation .records-card,
.theme-aviation .records-tab {
  background: #13294b !important;
  border-color: #2a4a7a !important;
}
.theme-aviation .records-card {
  border-top: 3px solid #ffb000 !important;
}
.theme-aviation .records-card-value,
.theme-aviation .records-tab.active {
  color: #ffb000 !important;
}
.theme-aviation .records-card-detail strong {
  color: #f5f7fa !important;
}
.theme-aviation .records-input {
  background: #13294b !important;
  color: #f5f7fa !important;
  border: 1px solid #2a4a7a !important;
}

.theme-aviation .replay-bar,
.theme-aviation .replay-overhead {
  background: rgba(11, 29, 58, 0.95) !important;
  color: #f5f7fa !important;
  border-color: #2a4a7a !important;
}
.theme-aviation .replay-input {
  background: #13294b !important;
  color: #f5f7fa !important;
  border: 1px solid #2a4a7a !important;
}
.theme-aviation .replay-result {
  background: #0f2242 !important;
  color: #f5f7fa !important;
  border-color: #1f3a64 !important;
  border-left-color: #ffb000 !important;
}

.theme-aviation .operator-name,
.theme-aviation #map-layer-select,
.theme-aviation #global-theme-select {
  background: #13294b !important;
  color: #f5f7fa !important;
  border: 1px solid #2a4a7a !important;
}
.theme-aviation #user-icon-box {
  background: #0f2242 !important;
  border-color: #5ac8fa !important;
}

.theme-aviation #stats-panel {
  background: #0f2242 !important;
  border-bottom: 1px solid #1f3a64 !important;
}
.theme-aviation .stat-card {
  background: #13294b !important;
  border: 1px solid #2a4a7a !important;
}
.theme-aviation .stat-card:nth-child(1) .stat-val { color: #ff5a5a !important; }
.theme-aviation .stat-card:nth-child(2) .stat-val { color: #ffb000 !important; }
.theme-aviation .stat-card:nth-child(3) .stat-val { color: #5ac8fa !important; }
.theme-aviation .stat-card .stat-label {
  color: #d6deea !important;
  font-weight: bold !important;
}

.theme-aviation .section-header {
  background: #0f2242 !important;
  color: #a9b8cf !important;
  border-top: 1px solid #2a4a7a !important;
}
.theme-aviation .section-header.hdr-board {
  background: #13294b !important;
  border-bottom: 2px solid #b39dff !important;
}
.theme-aviation .section-header.hdr-boh {
  color: #ffb000 !important;
  border-bottom: 2px solid #ffb000 !important;
}
.theme-aviation .section-header.hdr-ga {
  color: #3ddc84 !important;
  border-bottom: 2px solid #3ddc84 !important;
}
.theme-aviation .section-header.hdr-transit {
  color: #5ac8fa !important;
  border-bottom: 2px solid #5ac8fa !important;
}

.theme-aviation table th {
  color: #b39dff !important;
}
.theme-aviation td {
  color: #d6deea !important;
  border-bottom: 1px solid #1f3a64 !important;
}
.theme-aviation tr:hover {
  background: #0b1d3a !important;
}
.theme-aviation .f-sub {
  color: #d6deea !important;
}
.theme-aviation .orig-col { color: #ff7ad9 !important; }
.theme-aviation .dest-col { color: #40e0d0 !important; }
.theme-aviation .dist-col { color: #3ddc84 !important; }

.theme-aviation td .f-id span {
  color: #5ac8fa !important;
  text-shadow: none !important;
}
.theme-aviation td .f-id svg {
  fill: #5ac8fa !important;
  filter: none !important;
}

.theme-aviation tr.row-military td .f-id span { color: #ffb000 !important; }
.theme-aviation tr.row-military td .f-id svg { fill: #ffb000 !important; filter: none !important; }
.theme-aviation tr.row-military {
  background: rgba(180, 83, 9, 0.04) !important;
  box-shadow: inset 5px 0 0 #ffb000 !important;
}
.theme-aviation tr.row-emergency td .f-id span { color: #ff5a5a !important; }
.theme-aviation tr.row-emergency td .f-id svg { fill: #ff5a5a !important; filter: none !important; }
.theme-aviation tr.row-emergency {
  background: rgba(185, 28, 28, 0.06) !important;
  box-shadow: inset 5px 0 0 #ff5a5a !important;
}
.theme-aviation tr.row-emergency-plane td .f-id span { color: #ff9f43 !important; }
.theme-aviation tr.row-emergency-plane td .f-id svg { fill: #ff9f43 !important; filter: none !important; }
.theme-aviation tr.row-emergency-plane {
  background: rgba(194, 65, 12, 0.04) !important;
  box-shadow: inset 5px 0 0 #ff9f43 !important;
}
.theme-aviation tr.row-helicopter td .f-id span { color: #ff7ad9 !important; }
.theme-aviation tr.row-helicopter td .f-id svg { fill: #ff7ad9 !important; filter: none !important; }
.theme-aviation tr.row-helicopter {
  background: rgba(162, 28, 175, 0.04) !important;
  box-shadow: inset 5px 0 0 #ff7ad9 !important;
}
.theme-aviation tr.row-light-aircraft td .f-id span { color: #3ddc84 !important; }
.theme-aviation tr.row-light-aircraft td .f-id svg { fill: #3ddc84 !important; filter: none !important; }
.theme-aviation tr.row-light-aircraft {
  background: rgba(21, 128, 61, 0.04) !important;
  box-shadow: inset 5px 0 0 #3ddc84 !important;
}
.theme-aviation tr.row-private-jet td .f-id span { color: #d6deea !important; }
.theme-aviation tr.row-private-jet td .f-id svg { fill: #d6deea !important; filter: none !important; }
.theme-aviation tr.row-private-jet {
  background: rgba(51, 65, 85, 0.04) !important;
  box-shadow: inset 5px 0 0 #d6deea !important;
}

.theme-aviation .alt-climb { color: #3ddc84 !important; }
.theme-aviation .alt-descend { color: #ff5a5a !important; }
.theme-aviation .alt-level { color: #7fb3ff !important; }

.theme-aviation .split-left,
.theme-aviation .split-right,
.theme-aviation .webcam-card,
.theme-aviation .leader-col {
  background: #13294b !important;
  border: 1px solid #2a4a7a !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}
.theme-aviation #airport-search-input,
.theme-aviation #spotter-search-input,
.theme-aviation #seen-search-input {
  background: #13294b !important;
  border: 1px solid #2a4a7a !important;
  color: #f5f7fa !important;
}
.theme-aviation .stats-card {
  background: #13294b !important;
  border: 1px solid #2a4a7a !important;
  border-top-width: 4px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}
.theme-aviation .stats-card-lbl {
  color: #a9b8cf !important;
}
.theme-aviation .stats-card[style*="#55ff00"] { border-top-color: #3ddc84 !important; }
.theme-aviation .stats-card[style*="#f2fa0a"] { border-top-color: #ffb000 !important; }
.theme-aviation .stats-card[style*="#00f5ff"] { border-top-color: #5ac8fa !important; }
.theme-aviation .stats-card[style*="#e204ff"] { border-top-color: #ff7ad9 !important; }
.theme-aviation .stats-card[style*="#ffc400"] { border-top-color: #ffb000 !important; }
.theme-aviation .stats-card[style*="#ff6600"] { border-top-color: #ff9f43 !important; }
.theme-aviation .stats-card[style*="#ff003c"] { border-top-color: #ff5a5a !important; }
.theme-aviation .stats-card[style*="#ff00d4"] { border-top-color: #ff7ad9 !important; }
.theme-aviation .stats-card[style*="#00ffc4"] { border-top-color: #3ddc84 !important; }
.theme-aviation .stats-card-val {
  text-shadow: none !important;
}
.theme-aviation .stats-card-val[style*="#55ff00"] { color: #3ddc84 !important; }
.theme-aviation .stats-card-val[style*="#f2fa0a"] { color: #ffb000 !important; }
.theme-aviation .stats-card-val[style*="#00f5ff"] { color: #5ac8fa !important; }
.theme-aviation .stats-card-val[style*="#e204ff"] { color: #ff7ad9 !important; }
.theme-aviation .stats-card-val[style*="#ffc400"] { color: #ffb000 !important; }
.theme-aviation .stats-card-val[style*="#ff6600"] { color: #ff9f43 !important; }
.theme-aviation .stats-card-val[style*="#ff003c"] { color: #ff5a5a !important; }
.theme-aviation .stats-card-val[style*="#ff00d4"] { color: #ff7ad9 !important; }
.theme-aviation .stats-card-val[style*="#00ffc4"] { color: #3ddc84 !important; }

.theme-aviation .leader-col .section-header {
  background: #0f2242 !important;
  color: #b39dff !important;
  border-bottom: 2px solid #b39dff !important;
}
.theme-aviation .leader-col table tr {
  border-bottom: 1px solid #2a4a7a !important;
}
.theme-aviation .leader-col table td {
  border-bottom: 1px solid #2a4a7a !important;
  color: #d6deea !important;
}

.theme-aviation .locate-btn {
  background: #0b1d3a !important;
  border: 1px solid #2a4a7a !important;
  color: #5ac8fa !important;
  box-shadow: none !important;
  font-weight: bold;
}
.theme-aviation .locate-btn:hover {
  background: #1f3a64 !important;
  color: #f5f7fa !important;
  box-shadow: none !important;
}
.theme-aviation .map-btn {
  background: #0b1d3a !important;
  border: 1px solid #2a4a7a !important;
  color: #d6deea !important;
  box-shadow: none !important;
}
.theme-aviation #find-btn:hover {
  background: #5ac8fa !important;
  color: #13294b !important;
  box-shadow: none !important;
}
.theme-aviation #boh-btn:hover {
  background: #ffb000 !important;
  color: #13294b !important;
  box-shadow: none !important;
}
.theme-aviation #footer button {
  background: #0b1d3a !important;
  border: 1px solid #2a4a7a !important;
  color: #a9b8cf !important;
  box-shadow: none !important;
}
.theme-aviation #footer button:hover {
  background: #1f3a64 !important;
  color: #f5f7fa !important;
}

.theme-aviation .radar-ping {
  display: none !important;
}
.theme-aviation #emergency-alarm-hud {
  border: 6px solid #ff5a5a !important;
  box-shadow: none !important;
  animation: none !important;
}
.theme-aviation #emergency-alarm-hud .alarm-banner {
  background: #ff5a5a !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

.theme-aviation #radar-sweeper-btn {
  background: #0b1d3a !important;
  border: 1px solid #2a4a7a !important;
  color: #d6deea !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.theme-aviation #radar-sweeper-btn:hover {
  background: #1f3a64 !important;
  color: #f5f7fa !important;
  box-shadow: none !important;
}


.theme-aviation #cockpit-hud {
  background: rgba(11, 29, 58, 0.96) !important;
  border: 2px solid #3ddc84 !important;
  color: #f5f7fa !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}
.theme-aviation #hud-callsign {
  color: #5ac8fa !important;
}
.theme-aviation #hud-speed-text,
.theme-aviation #hud-alt-text {
  background: rgba(11, 29, 58, 0.9) !important;
  color: #f5f7fa !important;
  border-color: #2a4a7a !important;
}
.theme-aviation #hud-speed-hand {
  background: #ffb000 !important;
  filter: none !important;
}
.theme-aviation #hud-alt-hand {
  background: #5ac8fa !important;
  filter: none !important;
}
.theme-aviation #map-search-container {
  background: rgba(11, 29, 58, 0.95) !important;
  border: 1px solid #2a4a7a !important;
}
.theme-aviation #map-search-input {
  background: #13294b !important;
  border: 1px solid #2a4a7a !important;
  color: #5ac8fa !important;
}

.theme-aviation .leaflet-popup-content-wrapper {
  background: #13294b !important;
  color: #f5f7fa !important;
  border: 1.5px solid #ffb000 !important;
}
.theme-aviation .leaflet-popup-tip {
  background: #13294b !important;
}
.theme-aviation .leaflet-control-layers {
  background: rgba(11, 29, 58, 0.95) !important;
  border: 1.5px solid #5ac8fa !important;
  color: #f5f7fa !important;
}
.theme-aviation .leaflet-control-layers-expanded {
  border-color: #ff7ad9 !important;
}

.theme-aviation #stats-modal {
  background: #13294b !important;
  color: #f5f7fa !important;
  border: 2px solid #ffb000 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}
.theme-aviation #stats-modal-title {
  color: #f5f7fa !important;
}
.theme-aviation #stats-modal-content {
  color: #f5f7fa !important;
}
.theme-aviation .stats-modal-close {
  background: #0b1d3a !important;
  border: 1px solid #2a4a7a !important;
  color: #d6deea !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.theme-aviation #footer {
  background: #13294b !important;
  border-top: 1px solid #2a4a7a !important;
}
.theme-aviation #sync-time {
  color: #ffb000 !important;
}
.theme-aviation #sync-text {
  color: #3ddc84 !important;
}

.theme-aviation .plane-datatag {
  background: rgba(11, 29, 58, 0.95) !important;
  border-width: 1px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

/*
 * Flyaboo brand: menus, tabs, headings, buttons, links and borders use the logo's colours (navy #1b3a6b, blue #2f74b5
 * and the plane's orange #ea580c). Aircraft category colours on the board and map keep their meanings. Later rules
 * win over the ones above, and the generated DARK and CLASSIC AVIATION themes carry the brand across.
 */
.theme-aviation {
  --c-amber: #ff9f43;
  --c-gold: #ff9f43;
  --c-yellow: #ff9f43;
  --c-orange-nav: #ff9f43;
  --c-cyan: #5ac8fa;
  --c-cyan-bright: #5ac8fa;
  --c-aqua: #5ac8fa;
}

.theme-aviation .tab-btn.active,
.theme-aviation .sidenav-tab-btn.active {
  color: #ff9f43 !important;
  border-bottom: 2px solid #ff9f43 !important;
}

.theme-aviation .nav-item,
.theme-aviation .nav-item[href$="/seen"],
.theme-aviation .nav-item[href$="/airports"],
.theme-aviation .nav-item[href$="/spotter"],
.theme-aviation .nav-item[href$="/caught"],
.theme-aviation .nav-item[href$="/leaderboard"],
.theme-aviation .nav-item[href$="/news"],
.theme-aviation .nav-item[href$="/safety"],
.theme-aviation .nav-item[href$="/replay"],
.theme-aviation .nav-item[href$="/records"],
.theme-aviation .nav-item[href$="/alerts"] {
  color: #f5f7fa !important;
}
.theme-aviation .nav-item:hover {
  color: #ff9f43 !important;
}

.theme-aviation #user-icon-box {
  border-color: #5ac8fa !important;
}

.theme-aviation .stat-card:nth-child(1) .stat-val { color: #ff9f43 !important; }
.theme-aviation .stat-card:nth-child(2) .stat-val { color: #5ac8fa !important; }
.theme-aviation .stat-card:nth-child(3) .stat-val { color: #f5f7fa !important; }

.theme-aviation .section-header.hdr-board {
  border-bottom: 2px solid #5ac8fa !important;
}
.theme-aviation table th {
  color: #f5f7fa !important;
}
.theme-aviation .leader-col .section-header {
  color: #f5f7fa !important;
  border-bottom: 2px solid #5ac8fa !important;
}

.theme-aviation .locate-btn,
.theme-aviation #hud-callsign {
  color: #5ac8fa !important;
}
.theme-aviation #find-btn:hover {
  background: #5ac8fa !important;
}
.theme-aviation #boh-btn:hover {
  background: #ff9f43 !important;
}

.theme-aviation .leaflet-popup-content-wrapper,
.theme-aviation #stats-modal {
  border-color: #ff9f43 !important;
}
.theme-aviation .leaflet-control-layers {
  border-color: #5ac8fa !important;
}
.theme-aviation .leaflet-control-layers-expanded {
  border-color: #ff9f43 !important;
}
.theme-aviation #cockpit-hud {
  border-color: #5ac8fa !important;
}
.theme-aviation #sync-time {
  color: #ff9f43 !important;
}

.theme-aviation .records-card {
  border-top-color: #ff9f43 !important;
}
.theme-aviation .records-card-value,
.theme-aviation .records-tab.active {
  color: #ff9f43 !important;
}
.theme-aviation .replay-result {
  border-left-color: #ff9f43 !important;
}


.theme-aviation .wave-bar {
  background: #a9b8cf !important;
}

.theme-aviation #atc-play-stop-btn {
  background: #5ac8fa !important;
  border: 1px solid #5ac8fa !important;
  color: #13294b !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

.theme-aviation #atc-play-stop-btn:hover {
  background: #5ac8fa !important;
  border-color: #5ac8fa !important;
}

.theme-aviation #caught-modal {
  background: #13294b !important;
  color: #f5f7fa !important;
  border: 2px solid #ffb000 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

.theme-aviation #caught-modal .close-btn {
  background: #0b1d3a !important;
  border: 1px solid #2a4a7a !important;
  color: #d6deea !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.theme-aviation #junior-side-progress {
  background: #0f2242 !important;
  border: 1.5px dashed #3ddc84 !important;
  color: #f5f7fa !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

.theme-aviation #junior-side-rank { color: #3ddc84 !important; }

.theme-aviation #junior-side-xp-bar { background: #3ddc84 !important; }

.theme-aviation #junior-side-xp-text { color: #a9b8cf !important; }

.theme-aviation .target-locked-plane::before {
  border: 2px solid #ff5a5a !important;
  box-shadow: none !important;
  animation: none !important;
}

.theme-aviation #target-lock-banner {
  background: #13294b !important;
  border: 2px solid #ff5a5a !important;
  color: #ff5a5a !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
  animation: none !important;
}
