/* animations.css - Animations et transitions pour l'application */

/* Animation du spinner pour les chargements */
.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #4CAF50;
    animation: spin 1s ease-in-out infinite;
}

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

/* Animation des points de chargement */
.loading-dots {
    min-width: 12px;
    display: inline-block;
    font-weight: bold;
    animation: blink 1.4s infinite;
}

@keyframes blink {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
}

/* Animation de transition pour les boutons */
.action-button, 
.file-label, 
.welcome-button,
.file-action,
.tab {
    transition: all 0.3s ease;
}

/* Animation au survol des boutons */
.welcome-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Animation des barres de progression */
.progress-bar {
    transition: width 0.3s ease-in-out;
}

/* Animation de fade-in pour les nouveaux messages */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message {
    animation: fadeIn 0.3s ease-out;
}

/* Animation pour l'overlay */
.page-overlay {
    animation: fadeIn 0.2s ease-out;
}

/* Animation pour les onglets */
.tab.active {
    transition: all 0.3s ease;
}

.tab-content {
    transition: opacity 0.3s ease;
}

.tab-content.active {
    animation: fadeIn 0.3s ease-out;
}

/* Animation pour les informations de compilation */
.compilation-item {
    transition: background-color 0.2s ease;
}

.compilation-item:hover {
    background-color: #f9f9f9;
}

/* Animation de pulse pour indiquer une action en cours */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.loading-message {
    animation: pulse 2s infinite;
}

/* Animation pour les boutons désactivés */
.disabled {
    transition: opacity 0.3s ease, background-color 0.3s ease;
}
