﻿/* =====================================================
   MODAL BATCH - Styles additionnels
   À ajouter à ton fichier CSS existant
   ===================================================== */

/* ========== LISTE DES MODÈLES BATCH ========== */
.models-batch-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* ========== CARTE DE MODÈLE BATCH ========== */
.batch-model-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

    .batch-model-card:hover {
        border-color: var(--primary-color);
        box-shadow: var(--shadow-lg);
    }

    .batch-model-card.expanded {
        border-color: var(--primary-color);
        box-shadow: var(--shadow-xl);
    }

/* ========== HEADER DE LA CARTE ========== */
.batch-model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: background 0.2s;
}

    .batch-model-header:hover {
        background: var(--bg-secondary);
    }

.batch-model-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.batch-model-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-50);
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

    .batch-model-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.batch-model-details {
    flex: 1;
}

    .batch-model-details h3 {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0 0 0.5rem 0;
    }

.batch-model-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-status {
    display: flex;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

    .status-badge.configured {
        background: var(--success-color);
        color: white;
    }

    .status-badge.unconfigured {
        background: var(--gray-200);
        color: var(--text-secondary);
    }

.btn-expand {
    width: 44px;
    height: 44px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .btn-expand:hover {
        border-color: var(--primary-color);
        background: var(--primary-color);
        color: white;
    }

/* ========== CONFIGURATION DU MODÈLE ========== */
.batch-model-config {
    border-top: 2px solid var(--border-color);
    padding: 2rem;
    background: var(--bg-secondary);
    animation: expandDown 0.3s ease-out;
}

@keyframes expandDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    to {
        opacity: 1;
        max-height: 1000px;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* ========== GROUPES DE VALIDATION ========== */
.validation-model-group {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

    .validation-model-group h4 {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--primary-color);
        margin: 0 0 1rem 0;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid var(--border-color);
    }

    .validation-model-group .validation-item {
        margin-bottom: 0.75rem;
    }

        .validation-model-group .validation-item:last-child {
            margin-bottom: 0;
        }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .batch-model-card .step-layout-2col {
        grid-template-columns: 1fr;
        height: auto;
    }
}

@media (max-width: 768px) {
    .batch-model-header {
        flex-wrap: wrap;
        padding: 1rem 1.5rem;
    }

    .batch-model-info {
        width: 100%;
        margin-bottom: 1rem;
    }

    .batch-model-image {
        width: 60px;
        height: 60px;
    }

    .batch-model-details h3 {
        font-size: 1.1rem;
    }

    .batch-model-summary {
        width: 100%;
        justify-content: space-between;
    }

    .batch-model-config {
        padding: 1rem;
    }

    .validation-model-group {
        padding: 1rem;
    }

        .validation-model-group h4 {
            font-size: 1rem;
        }
}

@media (max-width: 480px) {
    .models-batch-list {
        gap: 1rem;
    }

    .batch-model-header {
        padding: 1rem;
    }

    .batch-model-image {
        width: 50px;
        height: 50px;
    }

    .batch-model-details h3 {
        font-size: 1rem;
    }

    .status-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .btn-expand {
        width: 36px;
        height: 36px;
    }
}
/*modal image*/
/* ========== DRAG & DROP / PASTE STYLES ========== */

.brand-image-preview-large {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.brand-image-preview-large:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

.brand-image-preview-large.dragging {
    border-color: var(--primary-color);
    border-style: solid;
    transform: scale(1.02);
}

.drag-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 16px;
    z-index: 10;
    animation: dragOverlayFadeIn 0.2s ease-out;
}

@keyframes dragOverlayFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.drag-overlay svg {
    animation: dragBounce 0.6s ease-in-out infinite;
}

@keyframes dragBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.drag-overlay p {
    margin: 1rem 0 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.brand-image-preview-large:not(.dragging):hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
.brand-image-preview-large:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
    cursor: pointer;
}

    .brand-image-preview-large:focus .no-image-placeholder-large {
        border-color: var(--primary-color);
    }

.brand-image-preview-large {
    cursor: pointer;
    user-select: none;
}

    .brand-image-preview-large:hover {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    }