/* =========================================================================
   RPM-PRIS Dashboard Stylesheet (dashboard.css)
   ========================================================================= */

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark body {
    background-color: #050811;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.03), transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(176, 38, 255, 0.03), transparent 25%);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }
.dark ::-webkit-scrollbar-thumb { background: rgba(51, 65, 85, 0.7); }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Dashboard Panels */
.dashboard-panel {
    position: relative;
    border-radius: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dark .dashboard-panel {
    background: rgba(13, 20, 36, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}

.light .dashboard-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* Subtle Glow Effects */
.dark .glow-green { text-shadow: 0 0 12px rgba(0, 255, 136, 0.45); }
.dark .glow-purple { text-shadow: 0 0 12px rgba(176, 38, 255, 0.45); }
.dark .glow-cyan { text-shadow: 0 0 12px rgba(0, 240, 255, 0.45); }
.dark .glow-red { text-shadow: 0 0 14px rgba(255, 51, 68, 0.6); }

/* CCTV Scanline */
.scanline {
    width: 100%;
    height: 60px;
    background: linear-gradient(0deg, rgba(0,240,255,0) 0%, rgba(0,240,255,0.08) 50%, rgba(0,240,255,0) 100%);
    opacity: 0.15;
    position: absolute;
    bottom: 100%;
    animation: scanlineAnim 5s linear infinite;
    pointer-events: none;
}
@keyframes scanlineAnim {
    0% { bottom: 100%; }
    100% { bottom: -60px; }
}

#compass-needle {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Circular Gauge */
.gauge-ring-bg {
    stroke: #e2e8f0;
}
.dark .gauge-ring-bg {
    stroke: rgba(255, 255, 255, 0.08);
}

/* VideoRTC Web Component - Full Viewport Cover Without Borders */
video-rtc {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    inset: 0 !important;
    overflow: hidden !important;
}

video-rtc video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    background: #020617;
}

