/* ==============================================================
   1. ESTILOS GLOBALES Y RESET (ASP.NET Default)
   ============================================================== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

/* Enfoque visual para accesibilidad en botones e inputs */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.header-blue-bar {
    background-color: #0099ff;
    width: 100vw; /* Ocupa el 100% del ancho de la ventana */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 56px;
    z-index: 1000;
    /* Aseguramos que el contenido del header se alinee */
    display: flex;
    align-items: center;
}

/* ==============================================================
   2. MÓDULO DE LOGIN (IDENTIDAD COMJIR)
   ============================================================== */
.btn-login {
    background: linear-gradient(to bottom, #74c0fc, #339af0);
    color: white !important;
    border: none;
}

    .btn-login:hover {
        opacity: 0.9;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

.custom-input {
    border-radius: 8px;
    border: 1px solid #ced4da;
}

    .custom-input:focus {
        border-color: #0099ff;
        box-shadow: 0 0 0 0.25rem rgba(0, 153, 255, 0.25);
    }

.login-clean-container {
    max-width: 400px;
    width: 100%;
}

/* ==============================================================
   3. MÓDULO DE NAVEGACIÓN PRINCIPAL (MENU TABS)
   ============================================================== */
.main-wrapper {
    height: calc(100vh - 56px); /* Sincronizado con la altura del header (56px) */
    display: flex;
}

.sidebar {
    width: 320px;
    background-color: #ffffff;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

/* --- ESTILOS DE TARJETAS --- */
.info-card {
    background: white;
    border: none;
    border-radius: 8px;
    height: 100%;
    border-left: 5px solid #dee2e6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

    .info-card:hover {
        transform: translateY(-5px);
    }

/* Colores de los bordes laterales */
.border-blue {
    border-left-color: #007bff !important;
}

.border-green {
    border-left-color: #28a745 !important;
}

.border-gray {
    border-left-color: #6c757d !important;
}

.border-cyan {
    border-left-color: #17a2b8 !important;
}

.border-red {
    border-left-color: #dc3545 !important;
}

.border-dark {
    border-left-color: #343a40 !important;
}

/* --- BOTONES DEL MENÚ --- */
.btn-menu {
    text-align: left;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    color: #444;
    transition: all 0.2s ease-in-out;
    font-size: 0.85rem;
    padding: 10px 15px;
    border-radius: 6px;
    display: block;
    width: 100%;
    margin-bottom: 0.35rem;
    text-decoration: none;
    white-space: normal;
    line-height: 1.2;
}

    .btn-menu:hover {
        background-color: #f0f7ff;
        transform: translateX(5px);
        color: #0099ff;
        border-color: #0099ff;
    }

    .btn-menu i {
        font-size: 1.1rem;
        color: #0099ff;
        margin-right: 8px;
    }

.content-area {
    flex-grow: 1;
    background-color: #f1f3f5;
    overflow-y: auto;
    padding: 2rem;
}

/* ==============================================================
   4. COMPONENTES DE FORMULARIO Y BADGE (GLOBALIZACIÓN)
   ============================================================== */

/* Badge de usuario para el header */
.user-badge {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white !important;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}

/* Contenedor unificado para Registro de Usuarios y Empleados */
.form-container {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

/* Divisores de sección dentro de los formularios */
.section-divider {
    border-bottom: 2px solid #0099ff;
    color: #0099ff;
    font-weight: bold;
    margin: 25px 0 15px 0;
    padding-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
