/* Mejoras visuales para panel.html */

/* Gradiente mejorado para header */
.gradient-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1rem;
    margin-bottom: 1rem;
}

.user-session {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.user-session i {
    margin-right: 8px;
    color: #4CAF50;
}

/* Botones mejorados */
.top-bar-right .button {
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 500;
}

.top-bar-right .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.top-bar-right .button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Menú lateral mejorado */
.sidebar-menu {
    background: linear-gradient(180deg, #020202, #00095c);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    height: 100vh;
    overflow-y: auto;
}

.menu-header {
    padding: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.menu-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    margin-top: 0.5rem;
}

/* Enlaces del menú */
.sidebar-menu .vertical.menu li a {
    color: rgba(255,255,255,0.8);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar-menu .vertical.menu li a i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.sidebar-menu .vertical.menu li a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(4px);
}

.sidebar-menu .vertical.menu li.active a {
    background: rgba(76,175,80,0.2);
    color: #4CAF50;
    border-left: 3px solid #4CAF50;
}

/* Submenús anidados */
.sidebar-menu .nested.vertical.menu {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.sidebar-menu .nested.vertical.menu li a {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

/* Menú principal */
.sidebar-menu .vertical.menu li > a > span {
    color: white;
    font-weight: 600;
}

/* Responsive */
@media screen and (max-width: 640px) {
    .gradient-header {
        padding: 0.75rem;
        border-radius: 0;
    }
    
    .user-session {
        font-size: 0.9rem;
    }
    
    .top-bar-right .button {
        margin-left: 0.25rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .top-bar-right .button span {
        display: none;
    }
    
    .sidebar-menu {
        border-radius: 0;
        height: auto;
    }
}

/* Animaciones suaves */
.top-bar, .sidebar-menu {
    transition: all 0.3s ease;
}

/* Estados de loading */
.button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.button.loading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mejoras de accesibilidad */
.button:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.sidebar-menu li a:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* Contenedor principal */
.grid-container {
    padding: 1rem;
}

/* Mejoras para el off-canvas */
.off-canvas-wrapper {
    min-height: 100vh;
}

.off-canvas-content {
    background: #f5f5f5;
    min-height: 100vh;
}
