/* Custom Styles for Tachograph Analyzer */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dropzone {
    border: 2px dashed #007bff;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
    min-height: 200px;
}

.dropzone:hover {
    border-color: #0056b3;
    background-color: #f8f9ff;
}

.dropzone.dz-drag-hover {
    border-color: #28a745;
    background-color: #f0fff0;
}

.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.compliance-compliant {
    border-color: #28a745 !important;
}

.compliance-compliant .compliance-icon {
    color: #28a745 !important;
}

.compliance-non-compliant {
    border-color: #dc3545 !important;
}

.compliance-non-compliant .compliance-icon {
    color: #dc3545 !important;
}

.compliance-warning {
    border-color: #ffc107 !important;
}

.compliance-warning .compliance-icon {
    color: #ffc107 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .d-md-flex {
        flex-direction: column !important;
    }
    
    .btn-lg {
        margin-bottom: 0.5rem;
    }
}

/* Animation for sections */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress indicator */
.processing-step {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.processing-step .step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #6c757d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 12px;
}

.processing-step.active .step-icon {
    background-color: #007bff;
    animation: pulse 1.5s infinite;
}

.processing-step.completed .step-icon {
    background-color: #28a745;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Styles pour distinction Driver vs Vehicle */
.driver-mode {
    background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 20px;
    border-left: 5px solid #ffc107;
}

.vehicle-mode {
    background: linear-gradient(135deg, #d1ecf1 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 20px;
    border-left: 5px solid #0dcaf0;
}

/* Badges de type avec animation */
.driver-type-badge {
    background: linear-gradient(45deg, #ff6b35, #ffc107);
    color: #ffffff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: pulseDriver 2s infinite;
    border: 2px solid #ff6b35;
}

.vehicle-type-badge {
    background: linear-gradient(45deg, #0dcaf0, #0056b3);
    color: #ffffff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: pulseVehicle 2s infinite;
    border: 2px solid #0dcaf0;
}

@keyframes pulseDriver {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 107, 53, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
        transform: scale(1);
    }
}

@keyframes pulseVehicle {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 202, 240, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(13, 202, 240, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 202, 240, 0);
        transform: scale(1);
    }
}

.driver-mode .card {
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.vehicle-mode .card {
    box-shadow: 0 2px 8px rgba(13, 202, 240, 0.2);
}

/* Animation du bandeau d'identification */
#file-type-banner {
    animation: slideInDown 0.6s ease-out;
}

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