/**
 * final-screen.css - Tela Final
 * BO Inteligente v1.0
 */

/* ============================================ */
/* TELA FINAL - ESTILOS */
/* ============================================ */

.final-screen {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.final-screen__header {
    background: #059669;
    color: white;
    padding: 20px;
    text-align: center;
}

.final-screen__icon {
    font-size: 32px;
    margin-bottom: 8px;
    animation: none;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.final-screen__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.final-screen__subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.final-screen__content {
    padding: 24px;
}

/* Resumo das seções */
.final-screen__summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.final-screen__summary-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.final-screen__section-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.final-screen__section-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
}

.final-screen__section-item:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.final-screen__section-icon {
    font-size: 20px;
}

.final-screen__section-name {
    flex: 1;
    font-size: 14px;
    color: #374151;
}

.final-screen__section-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.final-screen__section-status--completed {
    background: #d1fae5;
    color: #065f46;
}

.final-screen__section-status--skipped {
    background: #f3f4f6;
    color: #6b7280;
}

/* ========================================
   ESTILOS ANTIGOS (Texto Combinado)
   Mantidos para referência, não mais usados
   ======================================== */

/* .final-screen__text-box { ... } */
/* .final-screen__text-header { ... } */
/* .final-screen__text-title { ... } */
/* .final-screen__copy-btn { ... } */
/* .final-screen__text-content { ... } */
/* .final-screen__text-section { ... } */
/* .final-screen__text-section-title { ... } */

/* ========================================
   SEÇÕES INDIVIDUAIS (NOVO)
   ======================================== */

/* Caixa de seção individual */
.final-screen__section-box {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.final-screen__section-box:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Header da seção com botão copiar */
.final-screen__section-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.final-screen__section-title {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Conteúdo da seção (SEM scroll, altura automática) */
.final-screen__section-content {
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1f2937;
    background: white;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Botão copiar seção individual */
.final-screen__section-copy-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
}

.final-screen__section-copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.final-screen__section-copy-btn:active {
    transform: translateY(0);
}

.final-screen__section-copy-btn--copied {
    background: rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Container do botão "Copiar BO Completo" */
.final-screen__copy-all-container {
    margin: 0 0 24px 0;
    text-align: center;
}

.final-screen__copy-all-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.final-screen__copy-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.final-screen__copy-all-btn:active {
    transform: translateY(0);
}

.final-screen__copy-all-btn--copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.final-screen__copy-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

/* Estado vazio (quando não há seções) */
.final-screen__empty {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
    font-size: 1rem;
}

/* Botões de ação */
.final-screen__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.final-screen__action-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.final-screen__action-btn:hover {
    transform: translateY(-2px);
}

.final-screen__action-btn--primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.final-screen__action-btn--primary:hover {
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.final-screen__action-btn--secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.final-screen__action-btn--secondary:hover {
    background: #e5e7eb;
}

/* Estatísticas */
.final-screen__stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 14px;
    color: #6b7280;
}

.final-screen__stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.final-screen__stat-value {
    font-weight: 600;
    color: #1e3a5f;
}
