/* Animations et transitions */
@keyframes highlight {
    0% { background-color: rgba(59, 130, 246, 0.1); }
    100% { background-color: transparent; }
}

.highlight {
    animation: highlight 1s ease-out;
}

/* Styles personnalisés pour les formulaires */
input:focus, select:focus {
    border-color: #3b82f6;
    ring-color: rgba(59, 130, 246, 0.5);
}

/* Styles pour le statut de restauration */
.status-badge {
    transition: all 0.3s ease;
}

/* Style pour les boutons */
button {
    transition: all 0.2s ease;
}

button:active {
    transform: scale(0.98);
}

/* Style pour les messages d'erreur */
.error-message {
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #b91c1c;
    margin: 0.5rem 0;
}

/* Style pour les tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
    background-color: #1f2937;
    color: white;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
}

/* Styles pour l'historique */
.history-row {
    transition: background-color 0.2s ease;
}

.history-row:hover {
    background-color: #f3f4f6;
}

/* Styles pour les cartes */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Styles pour le loader */
.loader {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Styles pour les notifications */
.notification {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Style pour le mode sombre */
@media (prefers-color-scheme: dark) {
    .dark\:bg-gray-900 {
        background-color: #111827;
    }
    
    .dark\:text-white {
        color: #ffffff;
    }
    
    .dark\:border-gray-700 {
        border-color: #374151;
    }
}
