@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #0b0e11;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --primary: #FFD700;
    --radius-lg: 24px;
}

* { box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }

/* --- GLOBAL BODY (Forzamos oscuro) --- */
body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: #0b0e11 !important; /* Forzamos negro */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 25%), 
        radial-gradient(circle at 85% 30%, rgba(255, 71, 87, 0.05) 0%, transparent 25%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- FORZADO DE INPUTS (Para arreglar el Login) --- */
input[type="text"], 
input[type="password"], 
input[type="email"],
input[type="number"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.05) !important; /* Elimina el blanco */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    margin-bottom: 0; /* Controlado por el contenedor */
}

input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

/* Eliminar el autocompletado azul/blanco feo de Chrome */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #161b22 inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* --- ESTILO DE BOTONES (Para arreglar el botón blanco) --- */
button, .btn {
    width: 100%;
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%); /* Dorado degradado */
    color: #000 !important;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 20px -5px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
}

button:hover, .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(255, 215, 0, 0.5);
}

/* --- HEADER FLOTANTE --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding: 15px 30px;
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

.brand { display: flex; align-items: center; gap: 15px; }
.logo-icon { font-size: 2rem; }
.brand h1 { font-size: 1.4rem; margin: 0; font-weight: 800; letter-spacing: -0.5px; color: #fff; }
.text-highlight { color: #FFD700; }

.user-profile { display: flex; align-items: center; gap: 20px; }
.user-info { text-align: right; }
.welcome-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.user-name { font-weight: 700; color: #fff; font-size: 0.95rem; }

.logout-btn-icon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: 0.3s ease;
    border: 1px solid var(--glass-border);
    text-decoration: none;
}
.logout-btn-icon:hover { background: #ff4757; color: white; border-color: #ff4757; }

/* --- CONTENEDOR Y GRID --- */
.dashboard-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* --- TARJETAS DASHBOARD --- */
.dash-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 35px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    overflow: hidden;
}

.dash-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
}

.card-icon { font-size: 3.5rem; margin-bottom: 20px; transition: 0.4s ease; }
.dash-card:hover .card-icon { transform: scale(1.15) rotate(5deg); }

.card-content h2 { margin: 0 0 10px 0; font-size: 1.6rem; font-weight: 700; color: #fff; }
.card-content p { margin: 0; font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }

.card-arrow {
    position: absolute; top: 30px; right: 30px;
    font-size: 1.5rem; opacity: 0; transform: translateX(-20px); transition: 0.4s; color: var(--text-muted);
}
.dash-card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* Glows */
.dash-card .card-glow { 
    position: absolute; width: 150px; height: 150px; top: -50px; right: -50px; opacity: 0; transition: 0.4s; filter: blur(50px); z-index: 0;
}
.dash-card:hover .card-glow { opacity: 0.6; }
.accent-red .card-glow { background: #ff4757; }
.accent-green .card-glow { background: #2ed573; }
.accent-orange .card-glow { background: #ffa502; }
.accent-blue .card-glow { background: #3742fa; }
.accent-purple .card-glow { background: #a55eea; }

/* --- LOGIN ESPECÍFICO --- */
.login-card {
    width: 100%; max-width: 420px; margin: 0 auto;
    padding: 50px 40px;
    background: rgba(22, 27, 34, 0.8); /* Fondo más oscuro para el login */
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.8);
}

.input-group { position: relative; margin-bottom: 20px; }

/* ANIMACIONES */
.animate-in { animation: fadeIn 0.6s ease backwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.dashboard-footer { text-align: center; color: var(--text-muted); opacity: 0.4; margin-top: auto; }