* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Share Tech Mono', monospace;
}

html, body {
  height: 100%;
  width: 100%;
  background-color: #050807;
  color: #00ff66;
  overflow: hidden; 
}

/* Dashboard Grid Layout (Full Screen Height) */
.dashboard-container {
  display: grid;
  grid-template-columns: 260px 1fr 270px;
  height: calc(100vh - 25px);
  width: 100vw;
  gap: 5px;
  padding: 5px;
}

/* Card Styling */
.card {
  background: #0d1410;
  border: 1px solid #1a2e22;
  border-radius: 3px;
  padding: 8px 10px;
  margin-bottom: 5px;
}

.card-title {
  font-size: 11px;
  color: #88aa99;
  border-bottom: 1px solid #1a2e22;
  padding-bottom: 4px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-title-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #88aa99;
  border-bottom: 1px solid #1a2e22;
  padding-bottom: 4px;
  margin-bottom: 6px;
}

/* Sidebars */
.sidebar-left, .sidebar-right {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.label-green {
  font-size: 10px;
  color: #00ff66;
}

.time-main {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.1;
}

.time-local {
  color: #00ccff;
}

.date-sub {
  font-size: 10px;
  color: #88aa99;
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 11px;
}

.info-label {
  color: #88aa99;
}

.info-val {
  color: #00ccff;
  font-weight: bold;
}

.sun-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed #1a2e22;
  font-size: 10px;
}

.sun-label {
  color: #88aa99;
}

.sun-time {
  color: #ffaa00;
  font-weight: bold;
}

/* Weather UI */
.unit-toggle {
  display: flex;
  gap: 2px;
}

.unit-btn {
  background: #14221a;
  border: 1px solid #1a2e22;
  color: #88aa99;
  font-size: 9px;
  padding: 1px 5px;
  cursor: pointer;
  border-radius: 2px;
}

.unit-btn.active {
  background: #00ff66;
  color: #000;
  border-color: #00ff66;
  font-weight: bold;
}

.weather-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.weather-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.weather-icon {
  font-size: 22px;
}

.temp-text {
  font-size: 24px;
  color: #ffffff;
  font-weight: bold;
}

.weather-right {
  text-align: right;
  font-size: 10px;
  color: #88aa99;
}

.weather-desc {
  color: #00ccff;
  font-weight: bold;
}

.val-white {
  color: #fff;
}

/* Center Map Container & Search Box */
.map-container {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.map-search-box {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1000;
  display: flex;
  gap: 4px;
  background: rgba(13, 20, 16, 0.95);
  padding: 4px;
  border: 1px solid #1a2e22;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.map-search-box input {
  background: #080c0a;
  border: 1px solid #1a2e22;
  color: #00ff66;
  padding: 4px 8px;
  font-size: 11px;
  outline: none;
  width: 170px;
  border-radius: 2px;
}

.map-search-box input::placeholder {
  color: #557766;
}

.map-search-box button {
  background: #14221a;
  border: 1px solid #00ff66;
  color: #00ff66;
  font-size: 10px;
  padding: 4px 8px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 2px;
}

/* Dynamic Full Height Map Frame */
#map {
  flex: 1;
  width: 100%;
  height: 100%;
  background-color: #111;
  border: 1px solid #1a2e22;
  border-radius: 3px;
}

/* Leaflet Zoom (+/-) Styling */
.leaflet-top.leaflet-left {
  top: 45px !important;
}

.leaflet-control-zoom {
  border: 1px solid #1a2e22 !important;
  background: rgba(13, 20, 16, 0.9) !important;
}

.leaflet-control-zoom a {
  background-color: #080c0a !important;
  color: #00ff66 !important;
  border-bottom: 1px solid #1a2e22 !important;
}

.map-bottom-bar {
  height: 30px;
  background: #0d1410;
  border: 1px solid #1a2e22;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 10px;
}

.badge {
  padding: 2px 5px;
  border-radius: 2px;
  font-weight: bold;
  font-size: 9px;
  margin-right: 2px;
}
.badge-cw { background: #336699; color: #fff; }
.badge-ssb { background: #cc3333; color: #fff; }
.badge-ft8 { background: #00aa66; color: #fff; }
.badge-fm { background: #cc9900; color: #fff; }

.bands-grp {
  display: flex;
  gap: 3px;
}

.band-item {
  padding: 1px 4px;
  color: #fff;
  font-size: 9px;
  border-radius: 2px;
}

/* Right Sidebar UI */
.sun-circle-wrapper {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.sun-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe600 0%, #aa4400 70%, #000 100%);
  border: 2px solid #ffaa00;
  box-shadow: 0 0 12px rgba(255, 170, 0, 0.5);
}

.sdo-caption {
  font-size: 9px;
  color: #88aa99;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  text-align: center;
}

.stat-box {
  background: #080c0a;
  padding: 6px;
  border: 1px solid #1a2e22;
  border-radius: 2px;
}

.stat-label {
  font-size: 9px;
  color: #88aa99;
}

.stat-val {
  font-size: 16px;
  font-weight: bold;
}

/* Propagation Gauges */
.prop-gauges {
  display: flex;
  justify-content: space-around;
  margin-top: 5px;
}

.gauge-box {
  text-align: center;
}

.gauge-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  margin: 0 auto 3px auto;
}

.gauge-green { border: 2px solid #00ff66; color: #00ff66; }
.gauge-blue { border: 2px solid #00ccff; color: #00ccff; }
.gauge-red { border: 2px solid #ffaa00; color: #ffaa00; }

.gauge-label {
  font-size: 9px;
  color: #88aa99;
}

/* Ticker Bar & Developer Credit */
.ticker-bar {
  height: 22px;
  background: #080c0a;
  border-top: 1px solid #1a2e22;
  color: #88aa99;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
}

.ticker-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-sep {
  color: #1a2e22;
  margin: 0 8px;
}

.developer-credit {
  color: #00ccff;
  font-weight: bold;
  letter-spacing: 0.5px;
  background: #0d1410;
  padding: 2px 6px;
  border: 1px solid #1a2e22;
  border-radius: 2px;
}

/* 📱 Mobile Responsiveness (<= 850px) */
@media screen and (max-width: 850px) {
  html, body {
    overflow-y: auto;
    height: auto;
  }

  .dashboard-container {
    display: flex;
    flex-direction: column;
    height: auto;
    width: 100%;
    padding: 5px;
    gap: 8px;
  }

  .map-container {
    order: 1;
    height: 320px;
  }

  #map {
    height: 320px;
  }

  .sidebar-left {
    order: 2;
    width: 100%;
  }

  .sidebar-right {
    order: 3;
    width: 100%;
  }

  .map-search-box {
    left: 5px;
    right: 5px;
    top: 5px;
    justify-content: space-between;
  }

  .map-search-box input {
    flex: 1;
    width: auto;
  }

  .map-bottom-bar {
    flex-direction: column;
    height: auto;
    gap: 5px;
    padding: 6px;
    align-items: flex-start;
  }

  .bands-grp {
    flex-wrap: wrap;
  }

  .ticker-bar {
    flex-direction: column;
    height: auto;
    gap: 4px;
    padding: 6px;
    align-items: flex-start;
  }
}
