:root {
  --bg-color: #0a0a0a; --panel-bg: #111111; --card-bg: #1c1c1c;
  --card-hover-bg: #2a2a2a; --border-color: #333333; --text-color: #e5e7eb;
  --text-muted: #9ca3af; --color-ok: #10b981; --color-warning: #f59e0b;
  --color-error: #ef4444; --color-primary: #3b82f6; --color-title: #00aaff;
}
html, body {
  margin: 0; padding: 0; height: 100%; overflow: hidden;
  background-color: var(--bg-color); font-family: 'Inter', sans-serif;
}
body { display: flex; }
main { 
  display: flex; 
  width: 100%; 
  height: 100%; 
}
#map-container {
  flex: 1 1 0; min-width: 0; border-right: 2px solid var(--border-color); box-sizing: border-box;
}
#alert-panel {
  width: 380px; flex-shrink: 0; height: 100%; background-color: var(--panel-bg);
  color: var(--text-color); overflow-y: auto; padding: 20px;
  padding-bottom: 90px; box-sizing: border-box; position: relative;
}
iframe { width: 100%; height: 100%; border: none; background-color: var(--bg-color); display: none; }
.status-card {
  background-color: var(--card-bg); border-left: 4px solid var(--color-primary);
  border-radius: 8px; padding: 12px 16px; display: flex; flex-direction: column;
  gap: 8px; transition: all 0.2s ease-in-out;
}
.status-card:hover { background-color: var(--card-hover-bg); transform: translateY(-2px); }
.status-card.active-link { border-left-color: var(--color-warning); box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }
.alert-section { margin-bottom: 30px; }
.section-title {
  display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
  font-size: 18px; margin-bottom: 15px; border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px; font-weight: 600; color: var(--color-title);
  /* Reset de h2 */
  margin-top: 0;
}
.alert {
  border-radius: 6px; padding: 10px; margin-bottom: 10px; font-size: 14px;
  font-weight: 600; text-align: center; color: white;
}
.ok { background-color: var(--color-ok); }
.warning { background-color: var(--color-warning); color: #111; }
.alert-error { background-color: var(--color-error); }
.bottom-button {
  display: block; border: none; color: white; padding: 12px 15px; border-radius: 8px;
  font-size: 14px; cursor: pointer; position: absolute; left: 15px; right: 15px;
  width: auto; font-weight: 600; text-align: center; text-decoration: none;
  transition: background-color 0.2s ease; bottom: 20px; background-color: var(--color-primary);
}
#switch-map:hover { background-color: #2563eb; }
.data-container { display: flex; flex-direction: column; gap: 12px; }
.card-title { font-size: 15px; font-weight: 600; color: var(--text-color); }
.data-row { display: flex; justify-content: space-between; font-size: 14px; }
.data-label { color: var(--text-muted); }
.data-value { font-weight: 600; }
.wan-details summary { cursor: pointer; font-size: 13px; color: var(--text-muted); margin-top: 10px; padding: 5px; border-radius: 4px; transition: background-color 0.2s; display: list-item; }
.wan-details summary:hover { background-color: var(--card-hover-bg); }
#wan-other-links { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 768px) {
  body { flex-direction: column; height: auto; overflow: auto; }
  main { flex-direction: column; height: auto; }
  #map-container { height: 50vh; }
  #alert-panel { width: 100%; height: auto; overflow-y: visible; padding-bottom: 90px; }
  .bottom-button { position: fixed; }
}