/* --- Animaciones (añadidas de animations.css) --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animación de entrada con retraso escalonado */
.fade-in {
    animation: fadeIn 0.5s ease-out both;
    animation-delay: calc(0.1s * var(--item-index));
}

/* --- Dashboard Específico (dashboard.css) --- */

.dashboard-title {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    text-transform: uppercase;
    text-align: center;
    margin-top: 40px; 
    margin-bottom: 30px; 
    position: relative;
    z-index: 10;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    
    background: var(--card-bg-dark); 
    padding: 15px 30px;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(0, 0, 0, 0.3); 
    box-shadow: var(--shadow-md); 
    max-width: 90%; 
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin-top: var(--spacing-md);
    position: relative;
    z-index: 10;
}

.menu-item {
    background-color: var(--card-bg-dark);
    color: var(--primary-color);
    padding: var(--spacing-lg);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: var(--border-radius-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px; /* Alto fijo para uniformidad */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.menu-item:hover {
    background-color: var(--hover-bg);
    box-shadow: var(--glow-effect);
    transform: var(--hover-transform);
    border-color: var(--primary-color);
    color: #fff;
}

.menu-item i {
    font-size: 3rem; 
    margin-bottom: 12px; 
}

.menu-item span {
    font-size: var(--font-size-lg);
    font-weight: 500;
    text-transform: uppercase;
}

/* Botón de Cerrar Sesión (posición fija) */
.logout-btn {
    position: fixed; 
    bottom: 30px; 
    right: 40px;  
    z-index: 100; 
    
    /* Estilo de botón customizado */
    background-color: var(--card-bg-dark);
    color: var(--accent-color); /* Rojo */
    border: 1px solid rgba(255, 65, 54, 0.2);
    box-shadow: 0 0 15px rgba(255, 65, 54, 0.2);
    
    padding: 15px 25px; 
    border-radius: var(--border-radius-md);
}

.logout-btn:hover {
    background-color: rgba(255, 65, 54, 0.1);
    box-shadow: 0 0 20px var(--accent-color);
    transform: scale(1.05);
}

.logout-btn i {
    font-size: 1.5rem;
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
}

@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .logout-btn {
        bottom: 10px;
        right: 10px;
        padding: 10px 15px;
    }
    .dashboard-title {
        font-size: var(--font-size-lg);
        margin-top: 20px;
        padding: 10px 15px;
    }
}

/* Se eliminan las reglas de .sidebar ya que el Dashboard no la usa */
