﻿/* ===== EXPORT DATA STYLES ===== */

/* Container principal pour l'export */

/* Header de l'export */
.export-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.export-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1e293b;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.export-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.export-summary {
    display: flex;
    align-items: center;
}

.summary-text {
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
}

/* Layout principal */
.export-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* Configuration card */
.export-config-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    height: fit-content;
}

.config-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sections de configuration */
.config-section {
    margin-bottom: 32px;
}

    .config-section:last-child {
        margin-bottom: 0;
    }

.section-label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

/* Options de type d'export */
.export-type-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.export-type-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

    .export-type-card:hover {
        border-color: #3b82f6;
        background: #f8faff;
    }

    .export-type-card.selected {
        border-color: #3b82f6;
        background: linear-gradient(135deg, #eff6ff, #dbeafe);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    }

.type-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.brands-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.models-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.all-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.type-content {
    flex: 1;
}

    .type-content h4 {
        font-size: 16px;
        font-weight: 600;
        color: #1e293b;
        margin: 0 0 4px 0;
    }

    .type-content p {
        font-size: 14px;
        color: #6b7280;
        margin: 0;
    }

.type-radio {
    width: 20px;
    height: 20px;
}

    .type-radio input[type="radio"] {
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

/* Filtres */
.filter-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.filter-select {
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

    .filter-select:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

/* Options */
.options-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.option-item {
    display: flex;
    align-items: flex-start;
}

.option-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    flex: 1;
}

.option-checkbox {
    display: none;
}

.option-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.option-checkbox:checked + .option-checkmark {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-color: #3b82f6;
}

.option-checkmark svg {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option-checkbox:checked + .option-checkmark svg {
    opacity: 1;
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.option-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.option-description {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* Preview card */
.export-preview-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    height: fit-content;
}

.preview-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Summary cards */
.preview-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.summary-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.summary-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
}

/* Filter indicator */
.filter-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #92400e;
    font-weight: 500;
}

/* Export action */
.export-action {
    margin-bottom: 20px;
}


.loading-spinner-export {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Export info */
.export-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

    .info-item svg {
        color: #9ca3af;
        flex-shrink: 0;
    }

/* Responsive design */
@media (max-width: 1024px) {
    .export-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .export-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .export-header {
        margin-bottom: 24px;
        padding-bottom: 12px;
    }

    .export-title {
        font-size: 24px;
    }

    .export-icon {
        width: 28px;
        height: 28px;
    }

    .export-config-card,
    .export-preview-card {
        padding: 20px;
    }

    .export-type-card {
        padding: 12px;
    }

    .type-icon {
        width: 40px;
        height: 40px;
    }

    .type-content h4 {
        font-size: 14px;
    }

    .type-content p {
        font-size: 12px;
    }

    .preview-summary {
        gap: 8px;
    }

    .summary-card {
        padding: 10px 12px;
    }

    .summary-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 576px) {
    .export-management {
        padding: 0 10px;
    }

    .export-title {
        font-size: 20px;
        justify-content: center;
    }

    .export-layout {
        gap: 16px;
    }

    .export-config-card,
    .export-preview-card {
        padding: 16px;
    }

    .export-type-options {
        gap: 8px;
    }

    .export-type-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .type-radio {
        order: -1;
    }



    .config-section {
        margin-bottom: 24px;
    }
}

/* Animation d'entrée */
.export-type-card {
    animation: slideInLeft 0.5s ease forwards;
}

    .export-type-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .export-type-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .export-type-card:nth-child(3) {
        animation-delay: 0.3s;
    }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes pulse-export {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
    }

    50% {
        box-shadow: 0 12px 30px rgba(245, 158, 11, 0.6);
    }
}

/* États de focus pour l'accessibilité */
.export-type-card:focus,
.filter-select:focus,
.btn-export:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.option-label:focus-within .option-checkmark {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Amélioration du contraste */
.export-type-card.selected .type-content h4 {
    color: #1e40af;
}

.export-type-card.selected .type-content p {
    color: #3730a3;
}
