/**
 * BATCH PROCESSOR STYLES
 * ======================
 * Interface moderne pour le traitement automatique
 */

.batch-processor-container {
    padding: 0;
}

/* En-tête */
.batch-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.batch-header-content h1 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.batch-header-content h1 i {
    font-size: 1.2em;
}

.batch-subtitle {
    font-size: 1.1em;
    opacity: 0.95;
    margin: 0;
}

/* Dashboard */
.batch-dashboard {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.batch-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.batch-dashboard-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3748;
}

/* Stats Grid */
.batch-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.batch-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.batch-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.batch-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8em;
}

.batch-stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 2em;
    font-weight: 700;
    color: #2d3748;
}

.batch-stat-content p {
    margin: 0;
    color: #718096;
    font-size: 0.9em;
}

/* Quick Actions */
.batch-quick-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Cards */
.batch-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.batch-card-header {
    margin-bottom: 25px;
}

.batch-card-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3748;
}

.batch-card-header.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: -30px -30px 25px -30px;
}

/* Dropzone */
.batch-dropzone {
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.batch-dropzone:hover {
    border-color: #667eea;
    background: #edf2f7;
}

.batch-dropzone.dragover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: scale(1.02);
}

.batch-dropzone-content i {
    font-size: 4em;
    color: #667eea;
    margin-bottom: 20px;
}

.batch-dropzone-content h3 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 1.4em;
}

.batch-dropzone-content p {
    margin: 5px 0;
    color: #718096;
}

.batch-formats {
    font-size: 0.9em;
    font-style: italic;
    opacity: 0.7;
}

/* File List */
.batch-file-list {
    margin-top: 25px;
}

.batch-file-list-header {
    padding: 15px;
    background: #edf2f7;
    border-radius: 8px 8px 0 0;
    color: #2d3748;
}

.batch-file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-top: none;
    background: white;
    transition: background 0.2s ease;
}

.batch-file-item:last-child {
    border-radius: 0 0 8px 8px;
}

.batch-file-item:hover {
    background: #f7fafc;
}

.batch-file-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

.batch-file-info {
    flex: 1;
}

.batch-file-name {
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 3px;
}

.batch-file-meta {
    font-size: 0.85em;
    color: #718096;
}

.batch-file-remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #fed7d7;
    color: #c53030;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.batch-file-remove:hover {
    background: #fc8181;
    color: white;
    transform: scale(1.1);
}

/* Actions */
.batch-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1em;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
}

/* Progress */
.batch-progress-section {
    margin-bottom: 30px;
}

.batch-progress-bar {
    width: 100%;
    height: 40px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
}

.batch-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: white;
    font-weight: 600;
}

.batch-progress-text {
    text-align: center;
    font-size: 1.5em;
    font-weight: 700;
    color: #2d3748;
    margin: 10px 0;
}

.batch-progress-details {
    text-align: center;
    color: #718096;
}

.batch-progress-details p {
    margin: 5px 0;
}

/* Results */
.batch-results-summary {
    background: #f7fafc;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

.batch-results-summary h3 {
    margin: 0 0 20px 0;
    color: #2d3748;
}

.batch-result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.batch-result-item:last-child {
    border-bottom: none;
}

.text-success {
    color: #38a169;
    font-weight: 600;
}

.text-error {
    color: #e53e3e;
    font-weight: 600;
}

.text-muted {
    color: #a0aec0;
    font-style: italic;
}

/* Matrix */
.batch-matrix-summary {
    background: #edf2f7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.batch-matrix-summary p {
    margin: 5px 0;
}

.batch-matrix-section {
    margin-bottom: 30px;
}

.batch-matrix-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3748;
    margin-bottom: 15px;
}

.batch-matrix-items {
    display: grid;
    gap: 15px;
}

.batch-matrix-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
}

.batch-matrix-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.batch-matrix-item-meta {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.85em;
    color: #718096;
}

.batch-matrix-item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Profiles */
.batch-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.batch-profile-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

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

.batch-profile-header h3 {
    margin: 0;
    color: #2d3748;
}

.batch-profile-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.batch-profile-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
}

/* Patterns */
.batch-patterns-list {
    display: grid;
    gap: 15px;
}

.batch-pattern-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
}

.batch-pattern-type {
    font-size: 0.8em;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.batch-pattern-content {
    flex: 1;
    color: #2d3748;
    font-weight: 500;
}

.batch-pattern-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 600;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.badge-haute {
    background: #c6f6d5;
    color: #22543d;
}

.badge-moyenne {
    background: #feebc8;
    color: #7c2d12;
}

.badge-faible {
    background: #e2e8f0;
    color: #4a5568;
}

.badge-positif {
    background: #c6f6d5;
    color: #22543d;
}

.badge-négatif {
    background: #fed7d7;
    color: #742a2a;
}

.badge-neutre, .badge-neutral {
    background: #e2e8f0;
    color: #4a5568;
}

/* Modal */
.batch-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.batch-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.batch-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 1;
}

.batch-modal-content.large {
    max-width: 1200px;
}

.batch-modal-content h2 {
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3748;
}

.batch-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #e2e8f0;
    color: #2d3748;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.batch-modal-close:hover {
    background: #cbd5e0;
    transform: scale(1.1);
}

/* Toast */
.batch-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.batch-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.batch-toast-success {
    border-left: 4px solid #38a169;
}

.batch-toast-error {
    border-left: 4px solid #e53e3e;
}

.batch-toast-warning {
    border-left: 4px solid #f59e0b;
}

.batch-toast-info {
    border-left: 4px solid #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    .batch-header {
        padding: 30px 20px;
    }
    
    .batch-header-content h1 {
        font-size: 1.6em;
    }
    
    .batch-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .batch-card {
        padding: 20px;
    }
    
    .batch-dropzone {
        padding: 40px 20px;
    }
    
    .batch-quick-actions {
        flex-direction: column;
    }
    
    .batch-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .batch-modal-content {
        padding: 30px 20px;
        max-width: 100%;
    }
}
