/* /* =========================
   CSS RESET / BASE
   ========================= */

:root {
  --bg: #0b0f14;
  --bg-soft: #10161d;
  --card: #151c25;
  --border: #2a3441;

  --text: #e6edf3;
  --muted: #9aa4af;

  --accent: #3b82f6;
  --good: #22c55e;
  --bad: #ef4444;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* =========================
   TOP BAR / HEADER
   ========================= */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(
    180deg,
    #0e141c 0%,
    #0b0f14 100%
  );
  border-bottom: 1px solid var(--border);
}

.top-bar h1 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot.online { background: var(--good); }
.dot.offline { background: var(--bad); }

/* =========================
   MAIN LAYOUT
   ========================= */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  gap: 1rem;
  padding: 1rem;
}

/* =========================
   CAMERA PANEL
   ========================= */

.camera-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
}

.camera-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4608 / 1728;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}

/* Placeholder or iframe/video goes here */
.camera-placeholder,
.camera-frame iframe,
.camera-frame video {
  width: 100%;
  height: 100%;
  display: block;
}

.camera-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa4af;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

/* =========================
   CAMERA OVERLAY
   ========================= */

.camera-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #ff3b3b;
  border-radius: 50%;
}

.overlay-sep {
  opacity: 0.5;
}

/* =========================
   INFO SIDE PANEL
   ========================= */

.info-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}

.info-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-card li {
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.info-card span {
  color: var(--text);
}

/* =========================
   FOOTER
   ========================= */

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

/* =========================
   RESPONSIVE BEHAVIOR
   ========================= */

@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .info-panel {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .info-card {
    flex: 1 1 280px;
  }
}

@media (max-width: 600px) {
  .camera-overlay {
    font-size: 0.7rem;
    bottom: 8px;
    left: 8px;
  }

  .top-bar h1 {
    font-size: 1.2rem;
  }
}
