/* Styles pour la modale de réglages */
#settings-modal {
    backdrop-filter: blur(4px);
}

#settings-modal .bg-white {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Animations pour les boutons de cache */
.cache-action-btn {
    transition: all 0.2s ease-in-out;
}

.cache-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style pour le bouton "Vider tous les caches" */
.danger-btn {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #fca5a5;
    transition: all 0.2s ease-in-out;
}

.danger-btn:hover {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Animation des icônes */
.settings-icon {
    transition: transform 0.3s ease-in-out;
}

.settings-modal-open .settings-icon {
    transform: rotate(45deg);
}

/* Style pour les inputs de durée */
input[type="number"] {
    transition: border-color 0.2s ease-in-out;
}

input[type="number"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Styles spécifiques pour les inputs de cache */
.cache-duration-input {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
}

.cache-duration-input:focus {
    background: white;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Mise en évidence des sections */
.cache-section {
    transition: all 0.3s ease-in-out;
}

.cache-section:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive pour mobile */
@media (max-width: 640px) {
    #settings-modal .bg-white {
        margin: 1rem;
        width: calc(100% - 2rem);
        max-width: none;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    /* Ajustements pour la grille des durées de cache */
    .cache-duration-grid {
        grid-template-columns: 1fr !important;
    }
}
