:root {
    --bg-darkest: rgb(16, 57, 68);
    --bg-dark-blue: rgb(6, 58, 83);
    --bg-light-blue: rgb(17, 82, 108);
    --btn-yellow: rgb(247, 180, 4);
    --btn-yellow-hover: rgb(225, 160, 0);
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Colores de fondo y texto */
.bg-dark-blue { background-color: var(--bg-dark-blue) !important; }
.bg-light-blue { background-color: var(--bg-light-blue) !important; }
.text-dark-blue { color: var(--bg-dark-blue) !important; }

/* Cabecera */
.header-portal {
    background-color: var(--bg-dark-blue);
    color: white;
    padding: 5px 0;
    border-bottom: 3px solid var(--btn-yellow);
}

/* Botones */
.btn-yellow {
    background-color: var(--btn-yellow);
    color: var(--bg-dark-blue);
    font-weight: 600;
    border: none;
    padding: 12px;
    transition: 0.3s;
}

.btn-yellow:hover {
    background-color: var(--btn-yellow-hover);
    color: var(--bg-dark-blue);
}

/* Área del Login (Hero) */
.login-area {
    background-color: var(--bg-light-blue);
    padding: 40px 0 2px 0;
}

.login-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.user-icon-circle {
    width: 70px;
    height: 70px;
    background-color: #f1f3f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--bg-dark-blue);
    font-size: 2rem;
}

/* Icono de seguridad junto al búho */
.security-badge {
    width: 50px;
    height: 60px;
    border: 2px solid var(--btn-yellow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--btn-yellow);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Tarjetas de características */
.feature-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    display: flex;
    align-items: flex-start;
    text-align: left;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: #f4f6f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark-blue);
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Barra de ayuda */
.help-bar {
    background-color: var(--bg-dark-blue);
    color: white;
    border-radius: 10px;
    padding: 20px 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

/* Footer */
footer {
    background-color: var(--bg-dark-blue);
    color: white;
    padding: 15px 0;
    font-size: 0.85rem;
}



/* ---- ESTILOS PARA EL DASHBOARD ---- */

.bg-dashboard-gray {
    background-color: #f4f6f8;
}

/* Barra Lateral (Sidebar) */
.sidebar {
    background-color: var(--bg-dark-blue);
    min-height: 100vh;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-menu-active {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.sidebar-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: 0.2s;
}

.sidebar-link:hover {
    color: white;
}

/* Tarjetas y Contenedores */
.dashboard-card {
    background-color: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    padding: 25px;
}

/* Tipografía de saldos */
.saldo-text {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--bg-dark-blue);
}

.currency-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--bg-dark-blue);
}

/* Botones de acción lateral */
.btn-action {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 10px;
    transition: 0.2s;
}

.btn-action-solid {
    background-color: var(--bg-dark-blue);
    color: white;
    border: 1px solid var(--bg-dark-blue);
}

.btn-action-solid:hover {
    background-color: var(--bg-light-blue);
    color: white;
}

.btn-action-outline {
    background-color: white;
    color: var(--bg-dark-blue);
    border: 1px solid #dce1e6;
}

.btn-action-outline:hover {
    background-color: #f8f9fa;
    color: var(--bg-dark-blue);
}

/* Estilos para headers de tabla */
.table thead th {
    background-color: #e0e0e0 !important;
    color: var(--bg-dark-blue) !important;
}


/* Ajustes para la barra lateral en móviles */
@media (max-width: 991.98px) {
    .sidebar {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        height: auto !important;
        min-height: auto !important;
        position: sticky;
        top: 0;
        z-index: 1050;
        border-bottom: 2px solid #ffb400; /* Detalle amarillo para separar del contenido */
    }
    
    /* Eliminar márgenes excesivos en móvil */
    .sidebar .mb-5, .sidebar .mt-3, .sidebar .mb-3 {
        margin: 0 !important;
    }
    
    /* Controlar el tamaño del logo */
    .sidebar img {
        height: 50px !important;
        width: auto !important;
    }
    
    /* Evitar que el contenedor del menú ocupe todo el espacio */
    .sidebar .flex-grow-1 {
        flex-grow: 0 !important;
    }
    
    /* Ocultar el texto de los enlaces para ahorrar espacio (solo iconos) */
    .sidebar-text {
        display: none;
    }
    
    /* Ajustar el espaciado de los iconos */
    .sidebar-menu-active i, .sidebar-link i {
        margin-right: 0 !important;
        font-size: 1.5rem !important;
    }
}