/* Animations pour les cartes du dashboard */
.glass-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Animation pour les éléments du tableau de bord */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-in {
    animation: slideIn 0.5s ease forwards;
}

/* Animation pour les éléments de menu */
.sidebar-item {
    opacity: 0;
    animation: slideIn 0.3s ease forwards;
}

.sidebar-item:nth-child(1) { animation-delay: 0.1s; }
.sidebar-item:nth-child(2) { animation-delay: 0.2s; }
.sidebar-item:nth-child(3) { animation-delay: 0.3s; }
.sidebar-item:nth-child(4) { animation-delay: 0.4s; }
.sidebar-item:nth-child(5) { animation-delay: 0.5s; }
.sidebar-item:nth-child(6) { animation-delay: 0.6s; }

/* Animation pour le badge de notification */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

.notification-badge {
    animation: pulse 2s infinite;
}

/* Animation pour le martin-avatar */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.martin-avatar {
    animation: float 4s ease-in-out infinite;
}

/* Amélioration des interactions au survol */
.glass-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Renforcement visuel des états actifs */
.sidebar-item.active {
    position: relative;
    overflow: hidden;
}

.sidebar-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

/* Overlay pour sidebar mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Fix pour les problèmes d'animation mobile */
@media (max-width: 768px) {
    .glass-card {
        opacity: 1;
        transform: none;
    }
    
    .sidebar {
        transform: translateX(-100%);
        opacity: 0;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
        opacity: 1;
    }
}
