/* ═══════════════════════════════════════════════════════════════════════════
   ECI Live Webcasting Monitor — Custom Stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --eci-blue:    #003087;
  --eci-saffron: #FF9933;
  --eci-green:   #138808;
  --eci-dark:    #1a1a2e;
}

/* ── Base ──────────────────────────────────────────────────────────────── */
body {
  background: #f0f2f5;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Navbar ────────────────────────────────────────────────────────────── */
.eci-navbar {
  background: linear-gradient(135deg, var(--eci-blue) 0%, #1a3a7e 100%);
  border-bottom: 2px solid var(--eci-saffron);
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.eci-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,153,51,.18);
  border: 1px solid rgba(255,153,51,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eci-saffron);
  flex-shrink: 0;
}

/* ── Main content area (offset below fixed navbar) ─────────────────────── */
.main-content {
  margin-top: 66px;
  min-height: calc(100vh - 116px);
}

/* ── Stat cards ─────────────────────────────────────────────────────────── */
.stat-card {
  border-radius: 12px;
  transition: transform .15s, box-shadow .15s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.1) !important;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── Camera cards ───────────────────────────────────────────────────────── */
.camera-card {
  border-radius: 12px;
  transition: box-shadow .2s, transform .2s;
}
.camera-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.18) !important;
  transform: translateY(-3px);
}

/* Video preview container */
.camera-preview-wrap {
  background: var(--eci-dark);
  overflow: hidden;
}
.camera-preview-video {
  width: 100%;
  height: 195px;
  object-fit: cover;
  display: block;
}
.camera-offline-bg {
  width: 100%;
  height: 195px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4a 100%);
}

.live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  font-size: .72rem;
}
.camera-location-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  z-index: 5;
}

/* ── Status badges ──────────────────────────────────────────────────────── */
.camera-status-badge {
  font-size: .68rem;
  padding: 4px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.status-online  { background-color: #198754 !important; }
.status-offline { background-color: #6c757d !important; }
.status-error   { background-color: #dc3545 !important; }

/* ── Pulse animation (live dot) ─────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .25; }
}
.pulse-dot {
  animation: pulse 1.4s ease-in-out infinite;
  color: #90ee90;
}

/* ── Full-screen player ─────────────────────────────────────────────────── */
.full-player-wrap {
  background: #000;
}
.full-player-video {
  width: 100%;
  min-height: 380px;
  max-height: 68vh;
  object-fit: contain;
  display: block;
  background: #000;
}
.full-player-offline {
  width: 100%;
  min-height: 380px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4a 100%);
}
.player-top-info {
  position: absolute;
  top: 10px;
  left: 12px;
  background: rgba(0,0,0,.55);
  border-radius: 6px;
  padding: 4px 10px;
}

/* ── Form card ──────────────────────────────────────────────────────────── */
.form-card { border-radius: 16px; }
.stream-key-info {
  background: #f8f9fa;
  border: 1px dashed #dee2e6;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .8rem;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.eci-footer {
  background: #fff;
  border-top: 1px solid #dee2e6;
}

/* ── Login page ─────────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--eci-blue) 0%, #1a3a7e 55%, #0d1b4e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.login-card {
  border-radius: 20px;
  border: none;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  overflow: hidden;
}
.login-header {
  background: linear-gradient(135deg, var(--eci-blue), #1a3a7e);
  padding: 30px 24px 24px;
  text-align: center;
}
.login-emblem {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255,153,51,.18);
  border: 2px solid rgba(255,153,51,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.8rem;
  color: var(--eci-saffron);
}

/* ── Responsive tweaks ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .main-content { margin-top: 76px; }
  .camera-preview-video,
  .camera-offline-bg { height: 160px; }
}

/* ── Scrollbar (WebKit) ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #aaa; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #888; }
