/* RESET */
body {
  margin: 0;
  background: #0b1220;
  color: #fff;
  font-family: sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* HEADER */
#app-header {
  position: sticky;
  top: 0;
  height: 50px;
  background: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  z-index: 1000;
}

/* TOOLBAR */
#map-toolbar {
  position: sticky;
  top: 50px;
  height: 45px;
  background: #111827;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  z-index: 999;
}

/* MAIN LAYOUT */
#main-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* MAP */
#map-container {
  flex: 1;
  background: black;
}

#dynmap-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* RIGHT BLADE */
#blade-panel {
  width: 320px;
  background: #020617;
  border-left: 1px solid #1e293b;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* FOOTER */
#app-footer {
  position: sticky;
  bottom: 0;
  height: 40px;
  background: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  z-index: 1000;
}

.status-bar {
  position: sticky;
  top: 60px; /* under header */
  z-index: 900;
  display: flex;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(10, 15, 25, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.status-item {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
}

.status-ok { color: #4ade80; }
.status-bad { color: #f87171; }
.status-warn { color: #facc15; }
