/*
 * map.css
 * Copyright © 2026 Fred W6BSD
 *
 * Distributed under terms of the BSD 3-Clause license.
 */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.container {
    height: 100vh;
    width: 100vw;
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
}

.control-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 280px;
    max-height: 90vh;
    overflow-y: auto;
}

.control-panel h1 {
  padding: 5px 15px;
  background: linear-gradient(135deg, #0a2342, #1c3d73);
  color: #DAF7A6;
  font-size: 2em;
  margin: 0;
  margin-bottom: .5em;
  border-radius: 6px;
}

.control-panel h1 a {
  text-aligh: center;
  color: #DAF7A6;
  text-decoration: none;
}

.tx-display {
    background: #e8f5e9;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    border-left: 4px solid #4CAF50;
}

.tx-display h3 {
    color: #2e7d32;
    margin: 0 0 8px 0;
}

.tx-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 12px;
}

.tx-detail {
    padding: 3px;
}

.tx-input {
    margin: 5px;
}

.tx-input label {
    display: block;
    font-weight: bold;
    color: #333;
}

.tx-input input, .tx-input select {
  margin: .5em 0;
  width: 100%;
  padding: 5px;
  border: 2px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.controls {
  display: flex;
  width: 100%;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
}

.control-button {
  display: inline-flex;
  flex: 1;
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.control-button.load {
  background-color: #007bff;
  color: white;
}

.control-button.delete {
  background-color: #dc3545;
  color: white;
}

.control-button.show {
  background-color: #6c757d;
  color: white;
}

.control-button.scale {
  background-color: #ffc107;
  color: #212529;
}

.control-button.analytics {
  background-color: #28a745;
  color: white;
}

.control-button:hover {
  opacity: 0.8;
}

.control-button:active {
  opacity: 0.7;
}

.help {
  height: 28px;
  padding: 0 5px;
  margin: 5px 0;
  background-color: #eee;
  font-size: 16px;
  line-height: 26px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #00aa11;
  font-weight: bold;
  border-radius: 5px;
}

.spots-info {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.spots-info h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.spots-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
}

.spot-item {
    padding: 8px;
    margin: 5px 0;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #2196F3;
    font-size: 12px;
    cursor: pointer;
}

.spot-item:hover {
    background: #e3f2fd;
}

.spot-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.rx-callsign {
    font-weight: bold;
    color: #333;
}

.spot-distance {
    color: #4CAF50;
    font-weight: bold;
}

.spot-details {
    color: #666;
    font-size: 11px;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #4CAF50;
    font-weight: bold;
}

.error-message {
    display: none;
    background: #ffebee;
    color: #f44336;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #f44336;
}
