:root {
    --text-main: #e0e0e0;
    --text-dim: #999;
    --accent: #d4af37;
    --led-online: #4ade80;
    --traffic-fast: #4ade80;
    --traffic-slow: #facc15;
}

body { 
    margin: 0; 
    padding: 0; 
    font-family: 'Inter', sans-serif; 
    color: var(--text-main); 
    height: 100vh; 
    overflow: hidden; 
    background-color: #050505; 
}

/* Fundo Animado Sofisticado */
.animated-bg { 
    position: fixed; 
    top: -50%; 
    left: -50%; 
    width: 200%; 
    height: 200%; 
    background: radial-gradient(circle at 50% 50%, rgba(20, 20, 25, 1) 0%, rgba(5, 5, 5, 1) 100%), 
                radial-gradient(circle at 80% 20%, rgba(30, 25, 20, 0.4) 0%, transparent 40%), 
                radial-gradient(circle at 20% 80%, rgba(20, 30, 35, 0.3) 0%, transparent 40%); 
    animation: slowDrift 30s infinite alternate ease-in-out; 
    z-index: -1; 
}

@keyframes slowDrift { 
    0% { transform: rotate(0deg) scale(1); } 
    100% { transform: rotate(15deg) scale(1.1); } 
}

/* Animações de Entrada (Fade-in fluido) */
@keyframes smoothFadeIn { 
    0% { opacity: 0; transform: translateY(20px); filter: blur(5px); } 
    100% { opacity: 1; transform: translateY(0); filter: blur(0); } 
}

.fade-in { 
    opacity: 0; 
    animation: smoothFadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; 
}
.col-1 { animation-delay: 0.1s; } 
.col-2 { animation-delay: 0.3s; } 
.col-3 { animation-delay: 0.5s; }

/* Grid Principal */
.dashboard-container { 
    display: grid; 
    grid-template-columns: 1fr 2fr 1fr; 
    gap: 30px; 
    padding: 40px; 
    height: calc(100vh - 80px); 
}

.column { 
    display: flex; 
    flex-direction: column; 
    gap: 30px; 
}

/* Cartões de Vidro (Glassmorphism) */
.card { 
    background: rgba(20, 20, 20, 0.5); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
    border-radius: 16px; 
    padding: 24px; 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
    transition: background 0.3s ease; 
}

.card:hover { 
    background: rgba(25, 25, 25, 0.6); 
}

.card-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    padding-bottom: 10px; 
}

h1, h2 { 
    font-weight: 300; 
    margin: 0; 
    letter-spacing: -1px; 
}

/* Botões com ícones */
.icon-btn { 
    color: var(--text-dim); 
    transition: color 0.3s ease, transform 0.2s ease; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.icon-btn:hover { 
    color: var(--accent); 
    transform: scale(1.1); 
}

/* Relógio Central */
#clock { 
    font-size: 8rem; 
    font-weight: 200; 
    margin-bottom: 10px; 
    line-height: 1; 
    text-shadow: 0 5px 15px rgba(0,0,0,0.5); 
}

#clock span { 
    font-size: 3rem; 
    color: var(--text-dim); 
}

/* --- Interação das Câmeras (Reduzidas e Centralizadas) --- */
.camera-grid { 
    display: flex; 
    flex-direction: column; 
    align-items: center; /* Centraliza horizontalmente */
    justify-content: center; /* Centraliza verticalmente */
    gap: 25px; 
    height: 100%; 
}

.cam-link { 
    display: block; 
    text-decoration: none; 
    width: 100%;
    max-width: 360px; /* Largura máxima controlada */
    height: 200px; /* Altura fixa em proporção 16:9 */
}

.cam-box { 
    background: rgba(0, 0, 0, 0.6); 
    border-radius: 12px; 
    position: relative; 
    overflow: hidden; 
    border: 1px solid rgba(255, 255, 255, 0.03); 
    height: 100%; 
    display: flex; 
    transition: border-color 0.3s; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Adiciona um leve 3D no box */
}

.cam-link:hover .cam-box { 
    border-color: var(--accent); 
}

.cam-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0.5; 
    transition: opacity 0.4s ease; 
}

.cam-link:hover .cam-img { 
    opacity: 0.2; 
}

.cam-overlay { 
    position: absolute; 
    inset: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--accent); 
    font-size: 1.2rem; /* Fonte um pouco menor para caber na caixa menor */
    font-weight: 300; 
    opacity: 0; 
    transition: opacity 0.4s ease; 
    z-index: 3; 
}

.cam-link:hover .cam-overlay { 
    opacity: 1; 
}

/* Checkboxes Customizados */
input[type="checkbox"] { 
    appearance: none; 
    background-color: rgba(255,255,255,0.05); 
    border: 1px solid var(--text-dim); 
    border-radius: 4px; 
    cursor: pointer; 
    position: relative; 
    transition: all 0.3s ease; 
}

input[type="checkbox"]:checked { 
    background-color: var(--accent); 
    border-color: var(--accent); 
}

input[type="checkbox"]:checked::after { 
    content: '✔'; 
    color: #000; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    font-size: 14px; 
}

/* Efeito LED Pulsante */
@keyframes ledPulse { 
    0% { box-shadow: 0 0 5px var(--led-online), 0 0 10px var(--led-online); opacity: 0.8; } 
    50% { box-shadow: 0 0 15px var(--led-online), 0 0 25px var(--led-online); opacity: 1; } 
    100% { box-shadow: 0 0 5px var(--led-online), 0 0 10px var(--led-online); opacity: 0.8; } 
}

.status-led { 
    width: 10px; 
    height: 10px; 
    background-color: var(--led-online); 
    border-radius: 50%; 
    display: inline-block; 
    animation: ledPulse 2s infinite ease-in-out; 
}