/* 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);
  }
}
