@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@300;500;700&display=swap');

:root {
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-orange: #ffae00;
    --bg-dark: #050505;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;
    text-decoration: none;
}

body {
    background-color: var(--bg-dark);
    color: white;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Fundo estilo Grid Cyberpunk */
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center;
}

/* --- TELA DE LOGIN (MANTIDA ORIGINAL) --- */
.login-container {
    position: relative;
    width: 400px;
    padding: 40px;
    background: rgba(10, 20, 30, 0.85);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.logo-ring {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border-top: 2px solid var(--neon-cyan);
    border-bottom: 2px solid var(--neon-purple);
    animation: spin 3s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px var(--neon-cyan);
}
.logo-icon { font-size: 2rem; color: var(--neon-cyan); }
.btn-nexus {
    width: 100%; padding: 12px; margin-top: 10px;
    background: transparent; border: 1px solid var(--neon-cyan);
    color: white; font-family: 'Orbitron'; cursor: pointer; transition: 0.3s;
}
.btn-nexus:hover { background: var(--neon-cyan); color: black; box-shadow: 0 0 15px var(--neon-cyan); }

input {
    width: 100%; padding: 12px; margin-bottom: 20px;
    background: rgba(0,0,0,0.5); border: 1px solid #333;
    border-left: 3px solid var(--neon-cyan); color: var(--neon-cyan);
}

/* --- NOVO DASHBOARD (ESTILO CARTÕES) --- */

/* Cabeçalho do Dashboard */
.header-bar {
    position: absolute;
    top: 40px;
    left: 50px;
    z-index: 10;
}

.back-link {
    color: var(--neon-cyan);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
    opacity: 0.8;
}
.back-link:hover { opacity: 1; text-shadow: 0 0 5px var(--neon-cyan); }

.brand-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
}
.brand-nexus { color: var(--neon-purple); }

/* Container dos Cartões */
.cards-container {
    display: flex;
    gap: 40px;
    z-index: 5;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Estilo Base do Cartão */
.nexus-card {
    width: 300px;
    height: 450px;
    background: rgba(5, 10, 15, 0.9);
    border-radius: 10px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nexus-card:hover { transform: translateY(-10px); }

.card-icon { font-size: 3.5rem; margin-bottom: 30px; transition: 0.3s; }
.card-title { font-family: 'Orbitron'; font-size: 1.8rem; margin-bottom: 5px; color: white; }
.card-sub { font-size: 0.9rem; color: #888; margin-bottom: 40px; letter-spacing: 1px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.status-text { font-size: 0.8rem; color: #aaa; display: flex; align-items: center; }

/* -- Cartão 1: Armário (Ciano) -- */
.card-armario { border-bottom: 4px solid var(--neon-cyan); }
.card-armario .card-icon { color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan); }
.card-armario:hover { box-shadow: 0 0 30px rgba(0, 243, 255, 0.2); border-color: var(--neon-cyan); }
.dot-armario { background: #00ff00; box-shadow: 0 0 5px #00ff00; }

/* -- Cartão 2: Peso Justo (Roxo) -- */
.card-peso { border-bottom: 4px solid var(--neon-purple); }
.card-peso .card-icon { color: var(--neon-purple); text-shadow: 0 0 10px var(--neon-purple); }
.card-peso:hover { box-shadow: 0 0 30px rgba(188, 19, 254, 0.2); border-color: var(--neon-purple); }
.dot-peso { background: #00ff00; box-shadow: 0 0 5px #00ff00; }

/* -- Cartão 3: Portaria (Laranja) -- */
.card-portaria { border-bottom: 4px solid var(--neon-orange); }
.card-portaria .card-icon { color: var(--neon-orange); text-shadow: 0 0 10px var(--neon-orange); }
.card-portaria:hover { box-shadow: 0 0 30px rgba(255, 174, 0, 0.2); border-color: var(--neon-orange); }
.dot-portaria { background: var(--neon-orange); box-shadow: 0 0 5px var(--neon-orange); }

/* Animações */
@keyframes spin { 100% { transform: rotate(360deg); } }