/* batch.css - Styles pour le module Batch Processing */

/* ═══════════════════════════════════════════════════════════════ */
/* STYLES DU MODAL BATCH */
/* ═══════════════════════════════════════════════════════════════ */

/* Modal principal */
.batch-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.batch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.batch-content {
    position: relative;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: batchModalSlideIn 0.3s ease-out;
    color: #e0e6ed;
}

@keyframes batchModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: white;
    border-radius: 20px 20px 0 0;
}

.batch-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.batch-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.batch-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Body */
.batch-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    color: #e0e6ed;
}

/* Drop Zone */
.drop-zone {
    position: relative;
    border: 3px dashed rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.drop-zone:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(102, 126, 234, 0.1);
}

.drop-zone.drag-over {
    border-color: rgba(102, 126, 234, 0.8);
    background: rgba(102, 126, 234, 0.15);
    transform: scale(1.02);
}

.drop-zone-content {
    position: relative;
    z-index: 1;
}

.drop-zone-content i {
    font-size: 64px;
    color: #667eea;
    margin-bottom: 20px;
    opacity: 0.8;
}

.drop-zone-content h4 {
    margin: 0 0 10px 0;
    color: #fff;
}

.drop-zone-content p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.8);
}

.drop-zone-info {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 15px;
}

.drop-zone-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.95);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.drop-zone.drag-over .drop-zone-hover {
    display: flex;
}

.drop-zone-hover i {
    font-size: 64px;
    margin-bottom: 15px;
}

/* Files List */
.files-list {
    margin-top: 20px;
}

.files-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.files-list-header h5 {
    margin: 0;
    color: #fff;
}

.files-list-content {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.file-item:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.1);
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-preview {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.5);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

.file-remove {
    background: transparent;
    border: none;
    color: #f87171;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s;
}

.file-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Processing Section */
.processing-header {
    margin-bottom: 25px;
}

.processing-header h4 {
    margin: 0 0 15px 0;
    color: #fff;
}

.processing-stats {
    display: flex;
    gap: 20px;
}

/* Batch-specific stat items only */
.processing-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
}

.processing-stats .stat-item i {
    color: #667eea;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 25px;
}

.progress-bar {
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-text {
    color: white;
    font-weight: 600;
    font-size: 0.9em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.progress-details {
    margin-top: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

/* Processing Log */
.processing-log {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
}

.log-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry i {
    width: 20px;
    text-align: center;
}

.log-entry.log-info i { color: #38bdf8; }
.log-entry.log-success i { color: #4ade80; }
.log-entry.log-warning i { color: #fbbf24; }
.log-entry.log-error i { color: #f87171; }

.log-time {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
}

/* Validation Section */
.validation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.validation-header h4 {
    margin: 0;
    color: #fff;
}

.validation-actions {
    display: flex;
    gap: 10px;
}

.validation-actions .btn {
    padding: 8px 16px;
    font-size: 0.9em;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.validation-actions .btn-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.validation-actions .btn-success:hover {
    background: rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

.validation-actions .btn-warning {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.validation-actions .btn-warning:hover {
    background: rgba(245, 158, 11, 0.3);
    transform: translateY(-1px);
}

.validation-actions .btn-danger {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.validation-actions .btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

/* Validation Filters */
.validation-filters {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.filter-group select {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.9em;
    background: rgba(10, 14, 39, 0.8);
    color: #fff;
}

.filter-group select:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.6);
}

.filter-stats {
    margin-left: auto;
    display: flex;
    gap: 15px;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85em;
}

.stat-badge i {
    font-size: 0.9em;
}

.stat-validated {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.stat-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.stat-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Results Grid - Container for source images + cards */
.results-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.result-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.result-card:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.result-card.validated {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.result-card.rejected {
    border-color: #ef4444;
    opacity: 0.7;
}

.result-card.highlight-review {
    animation: pulseHighlight 2s ease-in-out infinite;
}

@keyframes pulseHighlight {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
    50% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0.3); }
}

.result-image {
    position: relative;
    aspect-ratio: 0.714; /* Ratio carte Pokemon */
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.confidence-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.8em;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.confidence-high { background: linear-gradient(135deg, #28a745, #20c997); }
.confidence-medium { background: linear-gradient(135deg, #ffc107, #fd7e14); }
.confidence-low { background: linear-gradient(135deg, #dc3545, #c82333); }

/* ═══════════════════════════════════════════════════════════════ */
/* SOURCE IMAGE OVERLAY WITH POSITIONS */
/* ═══════════════════════════════════════════════════════════════ */

.source-image-container {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.source-image-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.source-filename {
    color: #fff;
    font-weight: 600;
    font-size: 1em;
}

.source-stats {
    background: #28a745;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.failed-slots {
    background: #dc3545;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.source-overlay-image {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    border: 2px solid #333;
}

/* Grille des cartes résultats */
.results-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Numéro de grille sur chaque carte */
.grid-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #00ff88;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9em;
    font-family: monospace;
}

.status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.status-validated { background: rgba(40, 167, 69, 0.8); }
.status-rejected { background: rgba(220, 53, 69, 0.8); }

.result-info {
    padding: 12px;
}

.result-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-series {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-file {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-actions {
    display: flex;
    gap: 5px;
    padding: 0 12px 12px;
}

.result-actions button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-validate {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.btn-validate:hover {
    background: rgba(34, 197, 94, 0.3);
    border-color: #22c55e;
}

.btn-correct {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.btn-correct:hover {
    background: rgba(245, 158, 11, 0.3);
    border-color: #f59e0b;
}

.btn-reject {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.btn-reject:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}

.btn-undo {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.btn-undo:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Footer */
.batch-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 20px 20px;
}

.footer-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.footer-actions {
    display: flex;
    gap: 15px;
}

.batch-footer .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.batch-footer .btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* États vides */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

/* Scrollbar personnalisée - Dark theme */
.files-list-content::-webkit-scrollbar,
.processing-log::-webkit-scrollbar,
.results-grid::-webkit-scrollbar {
    width: 8px;
}

.files-list-content::-webkit-scrollbar-track,
.processing-log::-webkit-scrollbar-track,
.results-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.files-list-content::-webkit-scrollbar-thumb,
.processing-log::-webkit-scrollbar-thumb,
.results-grid::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

.files-list-content::-webkit-scrollbar-thumb:hover,
.processing-log::-webkit-scrollbar-thumb:hover,
.results-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

/* ═══════════════════════════════════════════════════════════════ */
/* MODAL DE SÉLECTION DES CANDIDATS (comme le binder) */
/* ═══════════════════════════════════════════════════════════════ */

/* Modal candidates */
.candidates-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

.candidates-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.candidates-content {
    position: relative;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.candidates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

.candidates-header h4 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.candidates-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.candidates-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    padding: 25px;
    overflow-y: auto;
    max-height: calc(80vh - 160px);
}

.candidates-grid .candidate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.candidates-grid .candidate-item:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.candidates-grid .candidate-item img {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.candidates-grid .candidate-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.candidates-grid .candidate-name {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

.candidates-grid .candidate-confidence {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

/* Couleurs de confiance pour les candidats */
.candidates-grid .candidate-item.confidence-high {
    border-color: rgba(34, 197, 94, 0.5);
}

.candidates-grid .candidate-item.confidence-high:hover {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

.candidates-grid .candidate-confidence.confidence-high {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.candidates-grid .candidate-item.confidence-medium {
    border-color: rgba(245, 158, 11, 0.5);
}

.candidates-grid .candidate-item.confidence-medium:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}

.candidates-grid .candidate-confidence.confidence-medium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.candidates-grid .candidate-item.confidence-low {
    border-color: rgba(239, 68, 68, 0.5);
}

.candidates-grid .candidate-item.confidence-low:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.candidates-grid .candidate-confidence.confidence-low {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.candidates-actions {
    padding: 15px 25px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.candidates-cancel {
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Bouton pour afficher les candidats dans result-card */
.result-alternatives {
    margin-top: 8px;
}

.btn-show-candidates {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
    color: #667eea;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-show-candidates:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.6);
}

.btn-show-candidates i {
    margin-right: 4px;
}

/* Animation fadeIn */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* RESPONSIVE */
/* ═══════════════════════════════════════════════════════════════ */

/* Responsive */
@media (max-width: 768px) {
    .batch-content {
        width: 95%;
        margin: 10px;
    }
    
    .drop-zone {
        padding: 40px 20px;
    }
    
    .validation-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .validation-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-stats {
        margin-left: 0;
        margin-top: 15px;
        justify-content: center;
    }
    
    .results-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .source-overlay-image {
        max-width: 100%;
    }
    
    .batch-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .footer-actions .btn {
        width: 100%;
    }

    /* Candidates modal responsive */
    .candidates-content {
        width: 95%;
        max-height: 90vh;
    }

    .candidates-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
        padding: 15px;
    }

    .candidates-grid .candidate-item {
        padding: 10px;
    }

    .candidates-grid .candidate-item img {
        width: 80px;
        height: 112px;
    }
}