/* Tela de Resultado da Avaliação */

/* Bloco 1: Resultado Principal (HERO) */
.result-hero-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-border);
    margin-bottom: 24px;
}

.hero-content-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

/* Seção do Score */
.score-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.score-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-value {
    font-size: 72px;
    font-weight: 700;
    color: var(--gray-dark);
    line-height: 1;
}

/* Seção de Badges */
.badges-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.risk-badge {
    font-size: 16px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    text-align: center;
}

.confidence-badge {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
}

/* Seção de Decisão */
.decision-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.decision-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.decision-badge svg {
    flex-shrink: 0;
}

.decision-approved {
    background: rgba(139, 195, 74, 0.15);
    color: var(--green-dark);
    border: 2px solid var(--green-primary);
}

.decision-restricted {
    background: rgba(255, 193, 7, 0.15);
    color: #F57C00;
    border: 2px solid #FFC107;
}

.decision-rejected {
    background: rgba(244, 67, 54, 0.15);
    color: #C62828;
    border: 2px solid #F44336;
}

/* Decisão: análise manual (azul discreto) */
.decision-manual {
    background: rgba(59, 130, 246, 0.12);
    color: #2563EB;
    border: 2px solid rgba(59, 130, 246, 0.35);
}

/* Valor máximo recomendado (Classe B) */
.recommended-max {
    width: 100%;
    max-width: 560px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 193, 7, 0.12);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.45);
    font-size: 14px;
    line-height: 1.4;
}

.recommended-max strong {
    color: #1F2937;
    font-weight: 700;
}

/* Bloco 2: Motivos da Decisão */
.reasons-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reason-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: var(--gray-light);
    transition: all 0.2s;
}

.reason-item:hover {
    background: rgba(139, 195, 74, 0.05);
}

.reason-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.reason-item.positive svg {
    color: var(--green-dark);
}

.reason-item.warning svg {
    color: #F57C00;
}

.reason-item.negative svg {
    color: #C62828;
}

.reason-item span {
    font-size: 15px;
    color: var(--gray-dark);
    line-height: 1.6;
    flex: 1;
}

/* Bloco 3: Detalhe do Score */
.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.score-component {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.component-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-dark);
}

.component-bar-container {
    position: relative;
    width: 100%;
    height: 32px;
    background: var(--gray-light);
    border-radius: 8px;
    overflow: hidden;
}

.component-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 12px;
    border-radius: 8px;
    transition: width 0.5s ease;
    min-width: 60px;
}

.component-bar.positive {
    background: var(--green-primary);
    color: white;
}

.component-bar.negative {
    background: rgba(244, 67, 54, 0.3);
    color: #C62828;
}

.component-bar.neutral {
    background: var(--gray-border);
    color: var(--gray-text);
}

.component-value {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Bloco 4: Sinais Documentais */
.document-signals {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 16px;
}

.signal-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.signal-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.signal-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--green-dark);
}

.signal-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
}

.signal-fill {
    height: 100%;
    background: var(--green-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.signal-help-text {
    font-size: 13px;
    color: var(--gray-text);
    margin: 0;
    font-style: italic;
    padding-top: 8px;
    border-top: 1px solid var(--gray-border);
}

/* Badges de Risco e Confiança */
.badge-risk-a {
    background: rgba(139, 195, 74, 0.15);
    color: var(--green-dark);
}

.badge-risk-b {
    background: rgba(156, 163, 175, 0.15);
    color: #4B5563;
}

.badge-risk-c {
    background: rgba(255, 193, 7, 0.15);
    color: #F57C00;
}

.badge-risk-d {
    background: rgba(244, 67, 54, 0.15);
    color: #C62828;
}

.badge-confidence-high {
    background: rgba(139, 195, 74, 0.15);
    color: var(--green-dark);
}

.badge-confidence-medium {
    background: rgba(255, 193, 7, 0.15);
    color: #F57C00;
}

.badge-confidence-low {
    background: rgba(244, 67, 54, 0.15);
    color: #C62828;
}

/* Responsive */
@media (max-width: 1200px) {
    .form-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .result-hero-card {
        padding: 32px 24px;
    }

    .hero-content-vertical {
        gap: 24px;
    }

    .score-value {
        font-size: 56px;
    }

    .badges-section {
        flex-direction: column;
        width: 100%;
    }

    .risk-badge,
    .confidence-badge {
        width: 100%;
    }

    .decision-badge {
        font-size: 16px;
        padding: 14px 24px;
        width: 100%;
        justify-content: center;
    }

    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .action-bar-left,
    .action-bar-right {
        width: 100%;
        justify-content: space-between;
    }

    .btn {
        flex: 1;
    }
}
