/* mobile-menu.css - Estilos para el menú móvil */

/* Botón hamburguesa - solo visible en móvil */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Overlay para cerrar el menú */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar móvil */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

/* Header del sidebar móvil */
.mobile-sidebar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-sidebar-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Contenido del sidebar móvil */
.mobile-sidebar-content {
    padding: 0;
}

.mobile-sidebar .nav-item {
    display: block;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    font-size: 16px;
}

.mobile-sidebar .nav-item:hover {
    background-color: #f8f9fa;
    padding-left: 30px;
}

.mobile-sidebar .nav-item.active {
    background-color: #667eea;
    color: white;
    border-left: 4px solid #4c63d2;
}

.mobile-sidebar .nav-item.active:hover {
    background-color: #5a6fd8;
    padding-left: 20px;
}

/* Media queries para mostrar en móvil */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Ocultar sidebar desktop en móvil */
    .sidebar {
        display: none;
    }
    
    /* Ajustar el contenido principal */
    .admin-container {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    /* Ajustar header en móvil */
    .header-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-content > div:last-child {
        gap: 10px;
    }
    
    .header-content .btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .mobile-sidebar {
        width: 90%;
        left: -90%;
    }
    
    .header-content h1 {
        font-size: 18px;
    }
    
    .header-content .btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Animaciones adicionales */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-sidebar.active {
    animation: slideInLeft 0.3s ease-out;
}

.mobile-overlay.active {
    animation: fadeIn 0.3s ease-out;
}