/* ===== ESTILOS PARA EL LAYOUT PRINCIPAL ===== */

/* Main container - ELIMINAR SCROLL */
.main-container {
    position: relative;
    min-height: 100vh;
    margin-top: 0;
    overflow: visible !important; /* CAMBIO IMPORTANTE */
    height: auto !important; /* CAMBIO IMPORTANTE */
}

/* Nav lateral */
.nav-lateral {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: #2c3e50;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto; /* Este scroll es solo para el menú lateral */
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.nav-lateral-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Page content - SIN SCROLL INTERNO */
.page-content {
    margin-left: 300px;
    padding: 30px;
    min-height: 100vh;
    background: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible !important; /* CAMBIO IMPORTANTE */
    height: auto !important; /* CAMBIO IMPORTANTE */
}

/* Eliminamos completamente los estilos del navbar superior */

/* Avatar y info usuario en barra lateral */
.nav-lateral-avatar {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.1);
}

.nav-lateral-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-bottom: 15px;
}

.nav-lateral-avatar figcaption {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.nav-lateral-avatar .roboto-condensed-light {
    color: #bdc3c7;
    font-size: 14px;
    margin-top: 5px;
}

/* Barra separadora */
.nav-lateral-bar {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    margin: 10px 0;
}

/* Menú lateral */
.nav-lateral-menu {
    flex: 1;
    padding: 15px 0;
}

.nav-lateral-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-lateral-menu ul li a {
    display: flex;
    align-items: center;
    color: #ecf0f1;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-size: 14px;
}

.nav-lateral-menu ul li a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: #3498db;
    padding-left: 25px;
}

.nav-lateral-menu ul li a.active {
    background: #1c3ca8;
    color: white;
    border-left-color: #ffeb3b;
}

.nav-lateral-menu ul li a i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
    font-size: 16px;
}

/* Submenús */
.nav-lateral-menu ul li ul {
    background: rgba(0,0,0,0.15);
    border-left: 3px solid #3498db;
    display: none; /* Ocultos por defecto */
}

.nav-lateral-menu ul li ul.show {
    display: block; /* Mostrar cuando tenga clase show */
}

.nav-lateral-menu ul li ul li a {
    padding-left: 50px;
    font-size: 13px;
    height: 40px;
    display: flex;
    align-items: center;
}

/* Flecha de submenús */
.nav-btn-submenu .fa-chevron-down {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-btn-submenu .fa-chevron-down.fa-rotate-180 {
    transform: rotate(180deg);
}

/* Información del usuario en barra lateral */
.nav-user-info {
    padding: 15px;
    background: rgba(0,0,0,0.2);
    margin: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-user-info .roboto-medium {
    color: white;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.nav-user-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-user-actions .btn {
    font-size: 11px;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-user-actions .btn:hover {
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 767px) {
    .nav-lateral {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .nav-lateral.show-nav-lateral {
        transform: translateX(0);
    }
    
    .page-content {
        margin-left: 0;
        padding: 20px 15px;
    }
    
    .show-nav-lateral {
        display: block !important;
    }
}

/* Botón para mostrar/ocultar menú en móviles */
.show-nav-lateral {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: #1c3ca8;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

@media (max-width: 767px) {
    .show-nav-lateral {
        display: flex;
    }
}

/* ===== ESTILOS MEJORADOS EXISTENTES ===== */

/* Efectos hover suaves */
.nav-lateral-menu ul li a {
    position: relative;
    overflow: hidden;
}

.nav-lateral-menu ul li a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.3s ease;
}

.nav-lateral-menu ul li a:hover::after {
    left: 0;
}

.nav-lateral-avatar img {
    transition: all 0.3s ease;
}

.nav-lateral-avatar img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Tarjetas del dashboard */
.card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-body .fa-3x {
    margin-bottom: 15px;
    color: #1c3ca8;
}

/* Page header */
.page-header {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.page-header h3 {
    color: #1c3ca8;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-header p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Container */
.container-fluid {
    padding: 0;
}

/* ===== AGREGAR AL FINAL DEL ARCHIVO ===== */

/* Eliminar scrolls innecesarios */
body {
    overflow-y: auto;
    overflow-x: hidden;
}

html {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Asegurar que los contenedores no creen scroll */
.full-box {
    overflow: visible !important;
}

/* Container fluid sin overflow */
.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

/* Tablas responsivas */
.table-responsive {
    overflow-x: auto;
    max-width: 100%;
}