/* ==========================================
   1. ESTILOS GENERALES (Reset y Body)
   ========================================== */
body {
    background-color: #121212;
    background-image: radial-gradient(circle, #252525 0%, #121212 100%);
    color: white;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fix para que el Dashboard no se centre como el Login */
body:has(.pcu-grid) {
    align-items: flex-start;
    display: block;
    padding: 20px 0;
}

/* ==========================================
   2. BOTONES Y ENLACES SECUNDARIOS (Fix color azul/morado)
   ========================================== */
a {
    color: #888;
    text-decoration: none;
    font-size: 0.85em;
    transition: all 0.15s ease-in-out; /* Delay Android 15 [cite: 2026-01-19] */
    display: inline-block;
}

a:hover {
    color: #cc0000;
    transform: translateY(-1px);
}

.footer-links {
    margin-top: 25px;
    border-top: 1px solid #333;
    padding-top: 15px;
}

/* ==========================================
   3. LOGIN (Optimizado para Android)
   ========================================== */
.login-box {
    background: #1e1e1e;
    padding: 40px;
    border-top: 4px solid #cc0000;
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
    text-align: center;
    width: 100%;
    max-width: 380px;
    margin: 20px;
    border-radius: 4px;
    box-sizing: border-box;
}

.titulo { 
    font-size: 2rem;
    font-weight: 800; 
    letter-spacing: 3px; 
    margin-bottom: 5px;
    text-transform: uppercase;
}
.titulo span { color: #cc0000; }

input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background: #2a2a2a;
    border: 1px solid #444;
    color: white;
    box-sizing: border-box;
    border-radius: 4px;
    font-size: 16px; /* Evita zoom automático en móviles */
    transition: all 0.15s ease-in-out;
}

input:focus { 
    border-color: #cc0000; 
    outline: none; 
    background: #333;
    box-shadow: 0 0 8px rgba(204, 0, 0, 0.3);
}

button {
    width: 100%;
    padding: 16px;
    background: #cc0000;
    border: none;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 15px;
    transition: all 0.15s ease-in-out;
}

button:hover { 
    background: #e60000; 
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.4);
}

/* Alertas de Login y Logout [cite: 2026-01-28] */
.alert, .alert-success {
    padding: 12px;
    border-radius: 4px;
    font-size: 0.85em;
    margin-bottom: 15px;
    border: 1px solid transparent;
}
.alert { background: rgba(204, 0, 0, 0.1); color: #ff4444; border-color: rgba(204, 0, 0, 0.2); }
.alert-success { background: rgba(46, 204, 113, 0.1); color: #2ecc71; border-color: rgba(46, 204, 113, 0.2); }

/* ==========================================
   4. DASHBOARD (PCU Grid)
   ========================================== */
.pcu-grid { 
    display: grid; 
    grid-template-columns: 320px 1fr; 
    gap: 25px; 
    width: 95%;
    max-width: 1200px; 
    margin: 20px auto; 
    align-items: start;
}

.sidebar, .main-content { 
    background: #1e1e1e; 
    border: 1px solid #333; 
    padding: 25px; 
    border-top: 4px solid #cc0000; 
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.stat-item { 
    background: #252525; 
    margin-bottom: 12px; 
    padding: 12px 15px; 
    border-radius: 4px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-left: 3px solid transparent;
    transition: 0.15s ease-in-out;
}

.stat-item:hover {
    border-left-color: #cc0000;
    background: #2a2a2a;
    transform: translateX(5px);
}

.label { color: #888; font-size: 0.8em; text-transform: uppercase; font-weight: 700; display: flex; align-items: center; }
.label i { width: 25px; text-align: center; margin-right: 10px; color: #cc0000; }
.value { color: #fff; font-weight: bold; font-family: 'Consolas', monospace; font-size: 1.05em; }

/* Responsive */
@media (max-width: 900px) {
    .pcu-grid { grid-template-columns: 1fr; margin: 10px auto; width: 98%; }
}