/* 1. Forzar la estructura horizontal */
.pdgas-wrapper { 
    display: flex !important; 
    flex-direction: row !important;
    min-height: 100vh; 
    background: #fdfdfd; 
    align-items: stretch;
}

/* 2. Asegurar que el contenido principal no se colapse */
.pdgas-content { 
    flex: 1 !important; 
    padding: 40px 50px; 
    background: #fdfcfc; 
    overflow-y: auto; /* Para que solo el contenido tenga scroll si es largo */
}

/* 3. Sidebar Refinado (Estética Mediczen) */
.pdgas-sidebar { 
    width: 280px; 
    min-width: 280px; /* Evita que se encoja */
    background: #ffffff; 
    border-right: 1px solid #f3f4f6; 
    padding: 40px 24px; 
    display: flex; 
    flex-direction: column;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.02);
}

/* 4. Ajuste del Logo */
.pdgas-logo-area { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-size: 20px; 
    font-weight: 800; 
    color: #111827; 
    margin-bottom: 50px; 
    padding-left: 8px;
}

.pdgas-logo-icon { 
    background: linear-gradient(135deg, #1a56db, #1e42af); 
    color: white; 
    border-radius: 12px; 
    width: 44px; 
    height: 44px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 22px;
}

/* 5. Navegación */
.pdgas-nav { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    flex-grow: 1; 
}

.pdgas-nav li { margin-bottom: 8px; }

.pdgas-nav a { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 14px 18px; 
    color: #6b7280; 
    text-decoration: none; 
    border-radius: 14px; 
    font-weight: 600; 
    font-size: 14px; 
    transition: all 0.25s ease;
}

.pdgas-nav a:hover, .pdgas-nav a.active { 
	background: #f9fafb;
    color: #1a56db;
    transform: translateX(4px);
}

.pdgas-nav a.logout-btn {
    color: #ef4444;
    border-top: 1px solid #f3f4f6;
    margin-top: 20px;
    padding-top: 20px;
    border-radius: 0;
}

.pdgas-nav .fa-solid{
    color: #33509e;
}

@media screen and (max-width: 1024px) {
    /* Overlay oscuro detrás del menú */
    .pdgas-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 9998;
        animation: fadeInOverlay 0.25s ease;
    }
    .pdgas-overlay.visible {
        display: block;
    }
    @keyframes fadeInOverlay {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    /* Drawer lateral */
    .pdgas-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 280px;
        height: 100%;
        z-index: 9999;
        transition: left 0.3s ease;
        box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    }
    .pdgas-sidebar.open {
        left: 0;
    }
    /* Ocultar el menu-circle — ya no se usa */
    .pdgas-sidebar .menu-circle {
        display: none !important;
    }
}

@media screen and (min-width: 1024px) {
    .pdgas-sidebar .menu-circle {
        display: none !important;
    }
    .pdgas-overlay {
        display: none !important;
    }
}