/* General Reset and Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

body {
  background-color: #f5f8fa;
  color: #212529;
}

/* Responsive Grid Layout */
.app-container {
  display: grid;
  grid-template-areas:
    "header header header"
    "sidebar main output"
    "footer footer footer";
  grid-template-columns: 250px 1fr 300px;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
}

@media (max-width: 1024px) {
  .app-container {
    grid-template-areas:
      "header"
      "main"
      "sidebar"
      "output"
      "footer";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
  }

  .sidebar, .output-panel {
    border: none;
  }
}

/* Header */
.header {
  grid-area: header;
  background-color: #003f5c;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu a {
  color: white;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 500;
}

/* Sidebar */
.sidebar {
  grid-area: sidebar;
  background: #e4edf3;
  padding: 1rem;
  overflow-y: auto;
}

.sidebar h2 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.sidebar label {
  display: block;
  margin: 8px 0;
  font-size: 0.95rem;
}

.sidebar input, .sidebar select {
  width: 100%;
  padding: 4px;
  margin-top: 4px;
}

.run-btn {
  margin-top: 10px;
  padding: 8px;
  width: 100%;
  background-color: #0077b6;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.run-btn:hover {
  background-color: #005f86;
}

/* Main */
.main {
  grid-area: main;
  padding: 1rem;
  overflow-y: auto;
}

.map-container, .chart-section {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

.map-placeholder {
  background: linear-gradient(135deg, #caf0f8, #0077b6);
  height: 200px;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-style: italic;
  color: white;
}

.charts-placeholder > div {
  background: linear-gradient(135deg, #90e0ef, #00b4d8);
  height: 200px;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-style: italic;
  color: #033;
}

/* Output Panel */
.output-panel {
  grid-area: output;
  background: #f0f5f9;
  padding: 1rem;
  border-left: 1px solid #ccc;
  overflow-y: auto;
}

.output-panel h2, .output-panel h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.output-panel .log-box {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 0.5rem;
  height: 100px;
  overflow-y: auto;
  font-size: 0.9em;
}

/* Footer */
.footer {
  grid-area: footer;
  background-color: #003f5c;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  align-items: center;
}

.footer a {
  color: #b5e4ff;
  text-decoration: none;
  margin-left: 10px;
}

.status progress {
  height: 8px;
  width: 100px;
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  background-color: #444;
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%; 
  left: 50%;
  margin-left: -80px;
  width: 160px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

/* Interactive Elements */
.clickable {
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.clickable:hover {
  background-color: #e0f7fa;
  transform: scale(1.02);
}

/* Signal Strength Color Guide */
.signal-weak {
  background-color: #ade8f4;
}

.signal-moderate {
  background-color: #48cae4;
}

.signal-strong {
  background-color: #0077b6;
}

.signal-excellent {
  background-color: #023e8a;
}




