/* =====================================================================
   live.css — Desain Khusus NOC Live Wallboard / Kiosk TV Fullscreen
   ===================================================================== */

:root {
    --bg-kiosk: #030712;
    --card-kiosk: rgba(17, 24, 39, 0.75);
    --border-kiosk: rgba(55, 65, 81, 0.6);
    --accent-cyan: #22d3ee;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-amber: #f59e0b;
}

body.kiosk-body {
    background-color: var(--bg-kiosk);
    background-image: 
        radial-gradient(at 0% 0%, rgba(34, 211, 238, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
    color: #f3f4f6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    user-select: none;
    -webkit-user-select: none;
}

/* Glassmorphism TV Cards */
.kiosk-card {
    background: var(--card-kiosk);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-kiosk);
    border-radius: 1rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Device Tile */
.device-tile {
    position: relative;
    overflow: hidden;
}

.device-tile.is-up {
    border-color: rgba(16, 185, 129, 0.3);
}

.device-tile.is-up:hover {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.device-tile.is-down {
    border-color: rgba(239, 68, 68, 0.8) !important;
    background: rgba(239, 68, 68, 0.12) !important;
    animation: pulse-danger 1.5s infinite alternate ease-in-out;
}

@keyframes pulse-danger {
    0% {
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.3), inset 0 0 10px rgba(239, 68, 68, 0.2);
    }
    100% {
        box-shadow: 0 0 35px rgba(239, 68, 68, 0.8), inset 0 0 25px rgba(239, 68, 68, 0.4);
    }
}

/* Glowing Status Dots */
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    display: inline-block;
    position: relative;
}

.status-dot.dot-up {
    background-color: #10b981;
    box-shadow: 0 0 12px #10b981;
}

.status-dot.dot-up::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 9999px;
    background-color: rgba(16, 185, 129, 0.4);
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-dot.dot-down {
    background-color: #ef4444;
    box-shadow: 0 0 16px #ef4444;
}

.status-dot.dot-down::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    background-color: rgba(239, 68, 68, 0.6);
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Top Alert Bar */
.incident-ticker {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.95), rgba(185, 28, 28, 0.95));
    border-bottom: 2px solid rgba(254, 202, 202, 0.4);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
    animation: ticker-glow 2s infinite alternate;
}

@keyframes ticker-glow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.15); }
}

/* Big Clock Display */
.clock-time {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    font-weight: 800;
}

/* Polling Track */
.sync-progress {
    height: 3px;
    background: rgba(55, 65, 81, 0.4);
    position: relative;
    overflow: hidden;
}

.sync-bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    transition: width 0.2s linear;
}

/* Modal Backdrop */
.kiosk-modal-backdrop {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
}
