/* VisionIQ — IQ-series design pattern, retinted from GraphIQ's teal (§3.1) */

:root {
  --iq-primary: #0E7C7B;
  --iq-primary-dark: #0a5d5c;
  --iq-navy: #0D2137;
}

body {
  background: #f4f6f8;
}

.navbar.bg-primary {
  background-color: var(--iq-primary) !important;
}

.navbar-brand .brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
}

.visioniq-layout {
  display: flex;
  align-items: stretch;
}

.event-sidebar {
  width: 280px;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  height: calc(100vh - 70px);
  flex-shrink: 0;
}

.event-item {
  border-left: 3px solid var(--iq-primary);
  background: #f8fafc;
  border-radius: 4px;
  padding: 6px 8px;
  margin-bottom: 6px;
  font-size: 12px;
}

.event-item.threshold-exceeded,
.event-item.attention-critical {
  border-left-color: #dc3545;
  background: #fdf2f2;
}

.event-item.attention-warning {
  border-left-color: #f0a50e;
  background: #fdf8ec;
}

.video-frame img.switching {
  opacity: 0.35;
  transition: opacity 0.2s ease;
}

.powered-by-footnote {
  text-align: left;
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

.video-main {
  min-width: 0;
}

.vessel-count-badge {
  background: var(--iq-primary);
  color: #fff;
  font-size: 13px;
  padding: 6px 12px;
}

.video-frame {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}

.video-frame img {
  width: 100%;
  display: block;
}

@media (max-width: 768px) {
  .event-sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    z-index: 1040;
    height: calc(100vh - 70px);
  }
}

/* Face & Sentiment additions */
.event-item.sentiment-positive {
  border-left-color: #50c878;
  background: #f0faf3;
}

/* Browser-camera prompt shown before the viewer grants access */
.camera-prompt {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 48px 24px;
  text-align: center;
  color: var(--iq-navy);
}
.camera-prompt i { color: var(--iq-primary); }
.camera-prompt h6 { font-weight: 700; }
.camera-prompt .alert { text-align: left; }
