@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --BGCOLOR1: #0c1118;
  --BGCOLOR2: #141b26;
  --ACCENT: #3fb8ff;
  --TXTCOLOR1: #8ecbff;
  --TXTCOLOR2: #e6f1ff;
  --TXTCOLOR3: #c3d3e6;
  --glass-bg: rgba(16, 22, 31, 0.72);
  --glass-strong: rgba(13, 18, 27, 0.88);
  --glass-border: rgba(255, 255, 255, 0.14);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 6px 20px rgba(2, 8, 16, 0.45);
}

html, body {
  background: radial-gradient(1200px 800px at 10% -10%, #1b2a3b 0%, #0b1118 55%, #090d12 100%);
  color: var(--TXTCOLOR2);
  font-family: "Space Grotesk", "Space Mono", sans-serif;
}

#map_container,
#map_canvas,
#iconTestCanvas {
  background-color: #0b1118;
}

#sidebar_container,
#selected_infoblock,
#highlighted_infoblock {
  background: var(--glass-bg);
  border-right: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

#infoblock-container {
  background: transparent;
}

.infoBlockSection,
.infoblock_body,
.infoblock_heading {
  background: transparent;
}

.infoBlockTitleText {
  color: var(--TXTCOLOR1);
  letter-spacing: 0.3px;
}

#planesTable,
#planesTable td,
#planesTable th {
  font-family: "Space Grotesk", "Space Mono", sans-serif;
  color: var(--TXTCOLOR2);
}

#planesTable th {
  background: var(--glass-strong);
  border-bottom: 1px solid var(--glass-border);
}

#planesTable tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}

#planesTable tr:hover td {
  background: rgba(63, 184, 255, 0.08);
}

.button,
.ui-button,
.layer-switcher button,
.ol-control button {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glow);
  border-radius: 10px;
  color: var(--TXTCOLOR2) !important;
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
}

.sidebar_button {
  background-color: rgba(20, 28, 40, 0.65);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glow);
  border-radius: 10px;
  background-size: calc(26px * var(--SCALE)) calc(30px * var(--SCALE));
  background-position: center;
  background-repeat: no-repeat;
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
}

.button:hover,
.ui-button:hover,
.layer-switcher button:hover,
.ol-control button:hover {
  background: linear-gradient(180deg, rgba(63, 184, 255, 0.22), rgba(255, 255, 255, 0.06));
  border-color: rgba(63, 184, 255, 0.35);
}

.sidebar_button:hover {
  background-color: rgba(63, 184, 255, 0.18);
  border-color: rgba(63, 184, 255, 0.35);
}

.activeButton {
  color: #041017;
  background: linear-gradient(180deg, rgba(88, 206, 255, 0.95), rgba(63, 184, 255, 0.75));
  border-color: rgba(88, 206, 255, 0.65);
}

.inActiveButton {
  color: var(--TXTCOLOR2);
}

.buttonText {
  letter-spacing: 0.5px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.ui-widget-content,
.ui-widget-header {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--TXTCOLOR2);
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active {
  background: rgba(63, 184, 255, 0.2);
  border-color: rgba(63, 184, 255, 0.35);
  color: var(--TXTCOLOR2);
}

#tabs {
  background: transparent;
}

#buttonContainer {
  padding: 6px 8px;
  border-radius: 14px;
  background: rgba(12, 18, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.legendTitle {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.imageConfigFooter {
  margin: 12px 0 6px;
  padding: 10px 12px;
  text-align: center;
  border-radius: 12px;
  background: rgba(15, 22, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--glow);
  position: sticky;
  bottom: 8px;
}

.imageConfigFooter a {
  color: #bfe6ff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.imageConfigFooter a:hover {
  color: #e6f6ff;
}

.customCard {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 18, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--glow);
}

.customCardTitle {
  font-weight: 600;
  color: var(--TXTCOLOR1);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.customRow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}

.customRow label {
  color: var(--TXTCOLOR3);
  font-size: 12px;
}

.customRow input[type=\"range\"] {
  flex: 1 1 100%;
}

.customLabel {
  color: var(--TXTCOLOR2);
  font-size: 12px;
}

.customSelect {
  flex: 1 1 180px;
  min-width: 160px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(10, 16, 24, 0.8);
  color: var(--TXTCOLOR2);
  padding: 4px 8px;
}

.customToggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.customHint {
  font-size: 12px;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.customCard .formButton {
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--TXTCOLOR2);
  box-shadow: var(--glow);
}

.customCard .formButton:hover {
  background: linear-gradient(180deg, rgba(63, 184, 255, 0.22), rgba(255, 255, 255, 0.06));
  border-color: rgba(63, 184, 255, 0.35);
}

.customLink {
  color: #bfe6ff;
  text-decoration: none;
  font-weight: 600;
}

.customLink:hover {
  color: #e6f6ff;
  text-decoration: underline;
}

.identSmall,
.identLarge {
  font-variant-numeric: tabular-nums;
}

a {
  color: #7fd2ff;
}

a:hover {
  color: #b8ecff;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
  background: rgba(63, 184, 255, 0.25);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(63, 184, 255, 0.4);
}

#imageConfigHeader {
  display: none !important;
}
