/* 
    Blizen Titanium v9.0 — El Estandar de Oro Visual 
    Estética: Industrial-Futurista Premium
*/

:root {
    --bg: #0b0e14;
    --card: #151b23;
    --accent: #3fb950;  /* Verde Neón para Éxito */
    --primary: #58a6ff; /* Azul para Navegación */
    --text: #f0f6fc;
    --muted: #8b949e;
    --red: #f85149;
    --glass: rgba(22, 27, 34, 0.85);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow: hidden; /* Evita que la interfaz se descuadre */
}

/* MURO DE SEGURIDAD (AUTH) */
.auth-layer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: radial-gradient(circle at center, #1b2531, #0b0e14);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(25px);
}

.auth-layer.hidden-view { display: none !important; }

.glass-login {
    background: var(--glass);
    border: 1px solid rgba(88, 166, 255, 0.2);
    padding: 60px;
    border-radius: 40px;
    width: 460px;
    text-align: center;
    box-shadow: 0 40px 80px rgba(0,0,0,1);
    animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pulsing-logo { width: 90px; margin-bottom: 25px; filter: drop-shadow(0 0 20px var(--primary)); animation: pulse 2s infinite ease-in-out; }

.input-titan { margin: 40px 0; position: relative; }
.input-titan input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 16px;
    color: #fff;
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 6px;
    outline: none;
    transition: all 0.3s;
}

.input-titan input:focus { border-color: var(--primary); box-shadow: 0 0 25px rgba(88, 166, 255, 0.2); }

.btn-titan {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 20px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

/* LAYOUT PRINCIPAL (SHELL) */
.app-shell { display: flex; height: 100vh; visibility: hidden; }

.side-panel {
    width: 300px;
    background-color: var(--card);
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    padding: 40px 0;
}

.panel-header { display: flex; align-items: center; gap: 20px; padding: 0 40px; margin-bottom: 60px; }
.panel-header img { width: 45px; }
.panel-header span { font-weight: 900; font-size: 1.6rem; letter-spacing: 3px; }

.nav-btn {
    width: 100%;
    background: none;
    border: none;
    color: var(--muted);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 4px solid transparent;
}

.nav-btn:hover, .nav-btn.active {
    color: var(--primary);
    background: rgba(88, 166, 255, 0.05);
    border-right-color: var(--primary);
}

/* VIEWPORT Y CONTENIDO */
.content-viewport { flex: 1; overflow-y: auto; padding: 60px; position: relative; }

.top-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; }
.top-nav h2 { font-size: 2.2rem; font-weight: 900; letter-spacing: -1px; }

.titan-card {
    background: var(--card);
    border-radius: 32px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--muted); padding: 20px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; }
td { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 1rem; }

/* ANIMACIONES */
@keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 1; transform: scale(1.05); } 100% { opacity: 0.6; } }
@keyframes slideIn { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.hidden-view { display: none !important; }
