/**
 * AIC PRO v5.0 Ultra - Styles Validateur d'Hypothèses
 */

/* Container principal */
.hypothesis-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* En-tête */
.hypothesis-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 16px;
    padding: 30px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(240, 147, 251, 0.3);
}

/* Tableau de bord */
.dashboard-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid;
    transition: transform 0.2s;
}

.stat-box:hover {
    transform: translateY(-4px);
}

.stat-box.stat-total {
    background: #f8f9fa;
    border-color: #667eea;
}

.stat-box.stat-validated {
    background: #f0fff4;
    border-color: #00b894;
}

.stat-box.stat-partial {
    background: #fffbf0;
    border-color: #fdcb6e;
}

.stat-box.stat-invalid {
    background: #fff5f5;
    border-color: #d63031;
}

.stat-box.stat-pending {
    background: #f0f4ff;
    border-color: #667eea;
}

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

/* Taux de validation */
.validation-rate {
    text-align: center;
    padding: 20px 0;
}

.validation-rate h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.progress-circle {
    display: inline-block;
}

/* Barre d'actions */
.actions-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn-action {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
}

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

.btn-generate {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: white;
}

.btn-export {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

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

/* Liste des hypothèses */
.hypotheses-list {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

/* Carte d'hypothèse */
.hypothesis-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid;
    transition: all 0.3s ease;
}

.hypothesis-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.hypothesis-card.validated {
    border-color: #00b894;
    background: linear-gradient(to right, #f0fff4 0%, #f8f9fa 100%);
}

.hypothesis-card.partial {
    border-color: #fdcb6e;
    background: linear-gradient(to right, #fffbf0 0%, #f8f9fa 100%);
}

.hypothesis-card.invalid {
    border-color: #d63031;
    background: linear-gradient(to right, #fff5f5 0%, #f8f9fa 100%);
}

.hypothesis-card.pending {
    border-color: #667eea;
    background: linear-gradient(to right, #f0f4ff 0%, #f8f9fa 100%);
}

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

.hypothesis-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.status-icon {
    font-size: 18px;
}

.hypothesis-score {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-bar {
    width: 100px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b894, #00cec9);
    transition: width 0.5s ease;
}

.score-value {
    font-weight: 700;
    color: #2c3e50;
    font-size: 14px;
}

.hypothesis-title {
    font-size: 20px;
    color: #2c3e50;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.hypothesis-description {
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.hypothesis-decision {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    margin: 15px 0;
    font-size: 14px;
    color: #2c3e50;
}

.hypothesis-sources {
    margin: 15px 0;
}

.hypothesis-sources strong {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 14px;
}

.source-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    margin: 6px 0;
    font-size: 13px;
    color: #666;
}

.source-item i {
    color: #667eea;
}

.hypothesis-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-sm {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-sm.btn-validate {
    background: #667eea;
    color: white;
}

.btn-sm.btn-details {
    background: #74b9ff;
    color: white;
}

.btn-sm.btn-delete {
    background: #d63031;
    color: white;
}

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

.btn-link {
    background: none;
    border: none;
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
    padding: 5px 0;
    font-weight: 600;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: #2c3e50;
}

.close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #d63031;
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

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

.btn-primary {
    flex: 1;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-secondary {
    padding: 14px 20px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* Modal Overlay pour détails */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.details-modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.details-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.details-header h2 {
    margin: 0;
    font-size: 24px;
}

.details-score {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
}

.details-body {
    padding: 30px;
}

.details-body section {
    margin-bottom: 30px;
}

.details-body h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.justification-item,
.counter-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #667eea;
}

.counter-item {
    border-left-color: #d63031;
}

.justification-item blockquote,
.counter-item blockquote {
    margin: 15px 0;
    padding: 15px 20px;
    background: white;
    border-left: 3px solid #667eea;
    font-style: italic;
    color: #666;
}

.details-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
}

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

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    color: #7f8c8d;
    font-size: 18px;
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .hypothesis-container {
        padding: 15px;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .actions-bar {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
    }
    
    .hypothesis-header-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .hypothesis-actions {
        flex-wrap: wrap;
    }
    
    .btn-sm {
        flex: 1;
        justify-content: center;
    }
}
