/**
 * AIC PRO v5.0 Ultra - Styles Import Plaud
 */

/* Container principal */
.plaud-importer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    font-size: 48px;
}

.header-text h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 600;
}

.header-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 15px;
}

/* Grille de statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 32px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Section d'import */
.import-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.import-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Zone de drop */
.drop-zone {
    border: 3px dashed #667eea;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.drop-zone:hover {
    border-color: #764ba2;
    background: #f0f2ff;
}

.drop-zone.drop-zone-active {
    border-color: #00b894;
    background: #f0fff4;
    transform: scale(1.02);
}

.drop-zone-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.drop-zone-text {
    font-size: 18px;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.drop-zone-subtext {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
}

.drop-zone-formats {
    font-size: 13px;
    color: #7f8c8d;
    margin: 10px 0 0 0;
}

/* Liste des fichiers */
.files-list {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.files-list h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
}

.file-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.file-item i {
    color: #667eea;
    font-size: 18px;
}

.file-name {
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
}

.file-size {
    font-size: 13px;
    color: #7f8c8d;
}

/* Bouton principal */
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    padding: 12px 20px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Résultats d'import */
.import-results {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.results-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.results-header.success {
    background: #f0fff4;
    border-left: 4px solid #00b894;
}

.results-header.warning {
    background: #fff5f0;
    border-left: 4px solid #ff9f43;
}

.results-icon {
    font-size: 48px;
}

.results-text h3 {
    margin: 0 0 5px 0;
    font-size: 22px;
    color: #2c3e50;
}

.results-text p {
    margin: 0;
    color: #666;
}

.results-details h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
}

.results-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.breakdown-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.breakdown-value {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

.results-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.error-list {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 15px;
}

.error-item {
    padding: 8px 0;
    color: #c53030;
    font-size: 14px;
    border-bottom: 1px solid #fed7d7;
}

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

/* Historique */
.history-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.history-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.import-history {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s;
}

.history-item:hover {
    transform: translateX(5px);
}

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

.history-date {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.history-stats {
    font-size: 13px;
    color: #666;
}

.history-details {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #e9ecef;
    color: #495057;
}

.badge-entretien {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-enquete {
    background: #d4edda;
    color: #155724;
}

.badge-observation {
    background: #fff3cd;
    color: #856404;
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    color: #7f8c8d;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .plaud-importer-container {
        padding: 15px;
    }
    
    .plaud-header {
        padding: 20px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        text-align: center;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
