﻿/* Styles spécifiques à l'import */

/* Container principal */
.import-container {
    min-height: calc(100vh - 120px);
}

/* En-tête avec étapes */
.import-header {
    background: linear-gradient(135deg, var(--primary) 0%, #3a56d4 100%);
}

.import-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 1.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: default;
    transition: all 0.3s ease;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: white;
    color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.step-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: white;
    font-weight: bold;
    opacity: 1;
}

.step-separator {
    width: 80px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Zone de dépôt de fichier */
.file-upload-area {
    border: 2px dashed var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .file-upload-area:hover {
        border-color: var(--primary-dark);
        background-color: rgba(67, 97, 238, 0.05);
    }

    .file-upload-area.dragover {
        border-color: var(--primary);
        background-color: rgba(67, 97, 238, 0.1);
        transform: scale(1.01);
    }

/* Cartes de statistiques */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #dee2e6;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    }

/* Tableaux */
.table-hover tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.table-danger {
    background-color: rgba(220, 53, 69, 0.05) !important;
}

    .table-danger:hover {
        background-color: rgba(220, 53, 69, 0.1) !important;
    }

.table-warning {
    background-color: rgba(255, 193, 7, 0.05) !important;
}

/* Boutons */
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* Timeline pour les détails */
.timeline {
    position: relative;
    padding-left: 30px;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 10px;
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: #dee2e6;
    }

.timeline-item {
    position: relative;
    padding-bottom: 1rem;
}

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -27px;
        top: 5px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: var(--success);
        border: 2px solid white;
    }

/* Modal */
.modal-backdrop {
    opacity: 0.5;
}

.modal-content {
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .import-steps {
        flex-direction: column;
        gap: 0.5rem;
    }

    .step-separator {
        width: 2px;
        height: 30px;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .modal-dialog {
        margin: 1rem;
    }
}

/* Badges personnalisés */
.badge.bg-secondary {
    background-color: #6c757d !important;
}

.badge.bg-success {
    background-color: var(--success) !important;
}

.badge.bg-danger {
    background-color: var(--danger) !important;
}

.badge.bg-warning {
    background-color: var(--warning) !important;
    color: #212529;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

/* Couleurs CSS variables */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
}
/* Styles pour les notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
    max-width: 350px;
}

.notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid #ccc;
}

.notification-success {
    border-left-color: var(--success);
}

.notification-error {
    border-left-color: var(--danger);
}

.notification-warning {
    border-left-color: var(--warning);
}

.notification-info {
    border-left-color: var(--info);
}

.notification-icon {
    font-size: 1.5rem;
    margin-right: 12px;
}

.notification-content {
    flex: 1;
}

.notification-message {
    font-size: 0.95rem;
    color: #333;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

    .notification-close:hover {
        color: #666;
    }

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Styles pour les toasts */
.toast-container {
    z-index: 1060;
}

.toast {
    margin-bottom: 10px;
    min-width: 300px;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .notification {
        max-width: 100%;
    }

    .toast-container {
        left: 20px;
        right: 20px;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }
}
/* Styles pour les notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    padding: 15px;
    border-left: 5px solid #007bff;
    animation: slideInRight 0.3s ease-out;
}

    .notification.success {
        border-left-color: #28a745;
        background: #f8fff9;
    }

    .notification.error {
        border-left-color: #dc3545;
        background: #fff5f5;
    }

    .notification.warning {
        border-left-color: #ffc107;
        background: #fffdf5;
    }

    .notification.info {
        border-left-color: #17a2b8;
        background: #f8fdff;
    }

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-message {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Progress bar pour l'import */
.import-progress {
    margin-top: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

/* Boutons avec icônes */
.btn-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Animation de chargement */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.loading-text {
    margin-left: 10px;
    color: #666;
}