/* Styles pour la modal d'upload - À ajouter dans css/style.css */

/* Zone de drop */
.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-zone:hover {
    background: #f0f0f0;
    border-color: #999;
}

.drop-zone.drag-over {
    background: #e8f5e9;
    border-color: #4CAF50;
    transform: scale(1.02);
}

/* Barre de progression */
.progress-container {
    background: #e0e0e0;
    border-radius: 10px;
    height: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Fichiers sélectionnés */
.file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: #f5f5f5;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.file-item:hover {
    background: #ececec;
    transform: translateX(5px);
}

.file-item .fa-file-pdf {
    color: #dc3545;
    font-size: 24px;
    margin-right: 15px;
}

/* Résultats */
.result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    border-radius: 3px;
    animation: slideIn 0.3s ease;
}

.result-item.success {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
}

.result-item.error {
    background: #ffebee;
    border-left: 4px solid #ED7470;
}

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

/* Boutons de la modal */
.modal-footer .btn-success {
    background: #4CAF50;
    color: white;
}

.modal-footer .btn-success:hover {
    background: #45a049;
}

/* Historique */
#uploadHistory {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

#historyContainer {
    max-height: 200px;
    overflow-y: auto;
    padding: 5px;
}

#historyContainer::-webkit-scrollbar {
    width: 6px;
}

#historyContainer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#historyContainer::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#historyContainer::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animation pour l'icône d'upload */
.fa-cloud-upload-alt {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Tooltip pour le menu */
.menu-item .fa-file-upload {
    color: #D88449;
}

.menu-item:hover .fa-file-upload {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Animation pour la mise à jour des stats */
@keyframes pulse-green {
    0% {
        transform: scale(1);
        color: inherit;
    }
    50% {
        transform: scale(1.2);
        color: #D88449;
        font-weight: bold;
    }
    100% {
        transform: scale(1);
        color: inherit;
    }
}

.stat-value.updating {
    animation: pulse-green 1s ease-in-out;
}