/**
 * Estilos Frontend Premium: Módulo e-SIC & Ouvidoria
 * Design híbrido: Apple Human Interface Guidelines & Google Material Design 3
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Paleta de Cores Apple & M3 */
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
    --apple-blue-focus: rgba(0, 113, 227, 0.15);
    --apple-gray-bg: #f5f5f7;
    --apple-card-bg: #ffffff;
    --apple-border: #e5e7eb;
    
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    
    --m3-surface: #f8fafc;
    --m3-border-focus: #3f51b5;
    
    --system-green: #30d158;
    --system-orange: #ff9f0a;
    --system-red: #ff453a;
    --system-yellow: #ffd60a;
}

/* ==========================================================================
   Contêiner Geral & Tipografia
   ========================================================================== */
.teo-ouvidoria-portal-wrapper,
.teo-esic-portal-wrapper,
.teo-search-wrapper {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--apple-card-bg);
    border-radius: 20px;
    border: 1px solid var(--apple-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    max-width: 1000px;
    margin: 30px auto;
    padding: 40px;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .teo-ouvidoria-portal-wrapper,
    .teo-esic-portal-wrapper,
    .teo-search-wrapper {
        padding: 20px;
        margin: 15px;
        border-radius: 16px;
    }
}

/* ==========================================================================
   Formulários Estilo Material Design 3 Outlined
   ========================================================================== */
.teo-form-manifestacao,
.teo-form-consulta {
    background: transparent;
    border: none;
    padding: 0;
    margin: 25px 0;
    box-shadow: none;
    max-width: 100%;
}

.teo-form-row {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.teo-form-row label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-left: 2px;
}

.teo-form-row label .required {
    color: var(--system-red);
}

/* Inputs de Texto, Select e Textarea com estilo M3 Outlined */
.teo-form-row input[type="text"],
.teo-form-row input[type="email"],
.teo-form-row select,
.teo-form-row textarea {
    font-family: inherit;
    padding: 14px 16px;
    border: 1px solid var(--apple-border);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.teo-form-row input:focus,
.teo-form-row select:focus,
.teo-form-row textarea:focus {
    border-color: var(--apple-blue);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px var(--apple-blue-focus);
}

.teo-form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .teo-form-row-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Rádios e Grupos */
.teo-radio-group {
    display: flex;
    gap: 24px;
    padding: 4px 0;
}

.teo-radio-group label {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
}

/* Botões Estilo Cápsula Apple */
.teo-submit-btn,
.teo-btn-back {
    font-family: inherit;
    padding: 12px 28px;
    background-color: var(--apple-blue);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 113, 227, 0.2);
}

.teo-submit-btn:hover,
.teo-btn-back:hover {
    background-color: var(--apple-blue-hover);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.35);
    transform: translateY(-1px);
}

.teo-submit-btn:active,
.teo-btn-back:active {
    transform: translateY(0);
}

/* ==========================================================================
   Controles Segmentados (Apple Style Abas do e-SIC)
   ========================================================================== */
.teo-esic-tabs {
    display: inline-flex;
    background-color: var(--apple-gray-bg);
    border-radius: 30px;
    padding: 4px;
    border: 1px solid var(--apple-border);
    margin-bottom: 35px;
    width: 100%;
    box-sizing: border-box;
}

.teo-esic-tab-btn {
    font-family: inherit;
    flex: 1;
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.teo-esic-tab-btn i {
    font-size: 1rem;
}

.teo-esic-tab-btn:hover {
    color: var(--text-primary);
}

.teo-esic-tab-btn.active {
    color: var(--apple-blue);
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 600px) {
    .teo-esic-tabs {
        flex-direction: column;
        border-radius: 16px;
        padding: 6px;
    }
    .teo-esic-tab-btn {
        border-radius: 12px;
        padding: 12px 10px;
    }
}

/* Transições de Conteúdo das Abas */
.teo-esic-tab-contents {
    margin-top: 10px;
}

.teo-esic-tab-pane {
    display: none;
}

.teo-esic-tab-pane.active {
    display: block;
    animation: appleFadeIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes appleFadeIn {
    from { opacity: 0; transform: scale(0.98) translateY(6px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==========================================================================
   Apresentação do e-SIC e Ouvidoria
   ========================================================================== */
.teo-ouvidoria-intro,
.teo-esic-presentation {
    margin-bottom: 30px;
}

.teo-ouvidoria-intro h3,
.teo-esic-secao h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.teo-ouvidoria-intro p,
.teo-esic-secao p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

/* ==========================================================================
   Cards Estilo M3 Elevated (Prazo, Recursos, etc.)
   ========================================================================== */
.teo-esic-secao-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0 45px 0;
}

.teo-esic-card-info {
    background-color: var(--apple-card-bg);
    border: 1px solid var(--apple-border);
    padding: 26px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
}

.teo-esic-card-info:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
    border-color: var(--apple-blue);
}

.teo-esic-card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--apple-gray-bg);
    color: var(--apple-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.teo-esic-card-info:hover .teo-esic-card-icon {
    background-color: var(--apple-blue);
    color: #ffffff;
}

.teo-esic-card-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.teo-esic-card-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   Cards Selecionadores da Ouvidoria
   ========================================================================== */
.teo-ouvidoria-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    margin: 30px 0 40px 0;
}

.teo-ouvidoria-card-select {
    background: var(--apple-card-bg);
    border: 1px solid var(--apple-border);
    border-radius: 16px;
    padding: 24px 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.teo-ouvidoria-card-select:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
    border-color: var(--apple-blue);
}

.teo-ouvidoria-card-select.selected {
    border-width: 2px;
    border-color: var(--apple-blue);
    background: rgba(0, 113, 227, 0.02);
    box-shadow: 0 12px 30px rgba(0, 113, 227, 0.1);
}

.teo-ouvidoria-card-select .card-select-icon {
    font-size: 1.8rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.teo-ouvidoria-card-select h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 5px 0 0 0;
    color: var(--text-primary);
}

.teo-ouvidoria-card-select p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* Cores específicas dos ícones da Ouvidoria */
.card-reclamacao .card-select-icon { background: rgba(255, 69, 58, 0.08); color: var(--system-red); }
.card-reclamacao.selected { border-color: var(--system-red); background: rgba(255, 69, 58, 0.02); }

.card-denuncia .card-select-icon { background: rgba(29, 29, 31, 0.08); color: var(--text-primary); }
.card-denuncia.selected { border-color: var(--text-primary); background: rgba(29, 29, 31, 0.02); }

.card-sugestao .card-select-icon { background: rgba(255, 159, 10, 0.08); color: var(--system-orange); }
.card-sugestao.selected { border-color: var(--system-orange); background: rgba(255, 159, 10, 0.02); }

.card-elogio .card-select-icon { background: rgba(48, 209, 88, 0.08); color: var(--system-green); }
.card-elogio.selected { border-color: var(--system-green); background: rgba(48, 209, 88, 0.02); }

.card-solicitacao .card-select-icon { background: rgba(0, 113, 227, 0.08); color: var(--apple-blue); }
.card-solicitacao.selected { border-color: var(--apple-blue); background: rgba(0, 113, 227, 0.02); }

/* ==========================================================================
   SIC Físico / Atendimento Presencial
   ========================================================================== */
.teo-esic-sic-presencial {
    background-color: var(--apple-gray-bg);
    border: 1px solid var(--apple-border);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.teo-esic-sic-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.teo-esic-sic-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.teo-esic-sic-header h3 i {
    color: var(--apple-blue);
}

.teo-esic-sic-base-legal {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 5px 0 0 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teo-esic-sic-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .teo-esic-sic-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.teo-esic-sic-servidor {
    background-color: #ffffff;
    border: 1px solid var(--apple-border);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.teo-esic-sic-servidor-icone {
    width: 48px;
    height: 48px;
    background-color: var(--apple-blue);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.teo-esic-sic-servidor-info {
    display: flex;
    flex-direction: column;
}

.teo-esic-sic-servidor-info small {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.teo-esic-sic-servidor-info strong {
    font-size: 1rem;
    color: var(--text-primary);
}

.teo-esic-sic-servidor-info span {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.teo-esic-sic-dados {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.teo-esic-sic-dados div {
    display: grid;
    grid-template-columns: 160px 1fr;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

@media (max-width: 480px) {
    .teo-esic-sic-dados div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

.teo-esic-sic-dados dt {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.teo-esic-sic-dados dt i {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.teo-esic-sic-dados dd {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.88rem;
}

.teo-esic-sic-dados dd a {
    color: var(--apple-blue);
    text-decoration: none;
    font-weight: 600;
}

.teo-esic-sic-dados dd a:hover {
    text-decoration: underline;
}

/* Download do ato */
.teo-btn-download-designacao {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #ffffff;
    color: var(--apple-blue) !important;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.82rem;
    border: 1px solid var(--apple-border);
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.teo-btn-download-designacao:hover {
    background-color: var(--apple-blue);
    color: #ffffff !important;
    border-color: var(--apple-blue);
    box-shadow: 0 4px 10px rgba(0, 113, 227, 0.2);
}

/* ==========================================================================
   Seção CTA Final e Estatísticas M3
   ========================================================================== */
.teo-esic-cta {
    background: linear-gradient(135deg, #1d1d1f 0%, #3a3a3c 100%);
    color: #ffffff;
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.teo-esic-cta h3 {
    font-size: 1.35rem;
    color: #ffffff;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.teo-esic-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0 0 25px 0;
}

.teo-presentation-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Estatísticas */
.teo-esic-statistics h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.teo-esic-statistics p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.teo-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    margin: 30px 0;
}

.teo-stat-card {
    background: var(--apple-card-bg);
    border: 1px solid var(--apple-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.teo-stat-card .stat-number {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1;
}

.teo-stat-card .stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teo-stat-card.card-total { border-top: 4px solid var(--apple-blue); }
.teo-stat-card.card-total .stat-number { color: var(--apple-blue); }

.teo-stat-card.card-respondido { border-top: 4px solid var(--system-green); }
.teo-stat-card.card-respondido .stat-number { color: var(--system-green); }

.teo-stat-card.card-analise { border-top: 4px solid var(--system-orange); }
.teo-stat-card.card-analise .stat-number { color: var(--system-orange); }

.teo-stat-card.card-indeferido { border-top: 4px solid var(--system-red); }
.teo-stat-card.card-indeferido .stat-number { color: var(--system-red); }

/* Gráficos em Linhas M3 */
.teo-chart-wrapper {
    margin-top: 40px;
    background: var(--apple-gray-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--apple-border);
}

.teo-chart-wrapper h4 {
    margin: 0 0 20px 0;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.chart-row {
    margin-bottom: 20px;
}

.chart-row:last-child {
    margin-bottom: 0;
}

.chart-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.chart-bar-bg {
    background: rgba(0, 0, 0, 0.05);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
}

.chart-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Widget de Avaliação (Apple Segmented Style)
   ========================================================================== */
.teo-evaluation-widget {
    background: var(--apple-card-bg);
    border: 1px solid var(--apple-border);
    border-radius: 16px;
    padding: 35px 25px;
    margin-top: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    text-align: center;
}

.teo-evaluation-widget-header h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.teo-evaluation-widget-header h4 i {
    color: var(--system-orange);
}

.teo-evaluation-widget-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 25px 0;
}

.teo-evaluation-scale-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.evaluation-scale-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

.teo-evaluation-buttons-grid {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Botões do Widget */
.teo-eval-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--apple-border);
    background: #ffffff;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
}

.teo-eval-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Spectrum de cores da Apple no hover / active */
.teo-eval-btn.btn-score-0:hover, .teo-eval-btn.btn-score-0.active { background-color: var(--system-red); color: #fff; border-color: var(--system-red); }
.teo-eval-btn.btn-score-1:hover, .teo-eval-btn.btn-score-1.active { background-color: #ff6961; color: #fff; border-color: #ff6961; }
.teo-eval-btn.btn-score-2:hover, .teo-eval-btn.btn-score-2.active { background-color: #ff7b72; color: #fff; border-color: #ff7b72; }
.teo-eval-btn.btn-score-3:hover, .teo-eval-btn.btn-score-3.active { background-color: #ff8c82; color: #fff; border-color: #ff8c82; }
.teo-eval-btn.btn-score-4:hover, .teo-eval-btn.btn-score-4.active { background-color: var(--system-orange); color: #fff; border-color: var(--system-orange); }
.teo-eval-btn.btn-score-5:hover, .teo-eval-btn.btn-score-5.active { background-color: #ffb340; color: #fff; border-color: #ffb340; }
.teo-eval-btn.btn-score-6:hover, .teo-eval-btn.btn-score-6.active { background-color: #ffd60a; color: #1d1d1f; border-color: #ffd60a; }
.teo-eval-btn.btn-score-7:hover, .teo-eval-btn.btn-score-7.active { background-color: #d4e157; color: #1d1d1f; border-color: #d4e157; }
.teo-eval-btn.btn-score-8:hover, .teo-eval-btn.btn-score-8.active { background-color: #afb42b; color: #fff; border-color: #afb42b; }
.teo-eval-btn.btn-score-9:hover, .teo-eval-btn.btn-score-9.active { background-color: #81c784; color: #fff; border-color: #81c784; }
.teo-eval-btn.btn-score-10:hover, .teo-eval-btn.btn-score-10.active { background-color: var(--system-green); color: #fff; border-color: var(--system-green); }

.teo-eval-btn.active {
    transform: scale(1.22);
    box-shadow: 0 0 14px currentColor;
}

/* Textarea do comentário */
.teo-evaluation-form-part textarea {
    width: 100%;
    max-width: 600px;
    padding: 14px;
    border: 1px solid var(--apple-border);
    border-radius: 12px;
    outline: none;
    font-size: 0.95rem;
    background-color: #ffffff;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin: 20px auto 0 auto;
    display: block;
    box-sizing: border-box;
}

.teo-evaluation-form-part textarea:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 4px var(--apple-blue-focus);
}

.teo-evaluation-submit-container {
    margin-top: 20px;
}

.teo-submit-eval-btn {
    font-family: inherit;
    padding: 10px 28px;
    background-color: var(--apple-blue);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.teo-submit-eval-btn:disabled {
    background-color: #e5e7eb;
    color: var(--text-tertiary);
    cursor: not-allowed;
    box-shadow: none;
}

.teo-submit-eval-btn:not(:disabled):hover {
    background-color: var(--apple-blue-hover);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
    transform: translateY(-1px);
}

/* Sucesso do AJAX */
.teo-evaluation-feedback-msg {
    margin-top: 20px;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-block;
    animation: appleFadeIn 0.3s ease;
}

.teo-evaluation-feedback-msg.success {
    background-color: rgba(48, 209, 88, 0.08);
    color: #1e7e34;
    border: 1px solid rgba(48, 209, 88, 0.2);
}

.teo-evaluation-feedback-msg.error {
    background-color: rgba(255, 69, 58, 0.08);
    color: #d32f2f;
    border: 1px solid rgba(255, 69, 58, 0.2);
}

/* ==========================================================================
   Telas de Resultados e Caixas de Sucesso Geral
   ========================================================================== */
.teo-success-box {
    text-align: center;
    padding: 40px;
    background: var(--apple-card-bg);
    border-radius: 16px;
    border: 1px solid var(--apple-border);
}

.teo-success-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.teo-success-box h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.teo-success-box p {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.teo-protocol-badge {
    background-color: var(--apple-gray-bg);
    border: 1px dashed var(--apple-border);
    padding: 16px 24px;
    border-radius: 12px;
    margin: 25px auto;
    max-width: 300px;
}

.teo-protocol-badge span {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-tertiary);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.teo-protocol-badge strong {
    font-size: 1.6rem;
    color: var(--apple-blue);
    font-family: monospace;
}

.teo-results-box {
    border: 1px solid var(--apple-border);
    border-radius: 16px;
    margin-top: 30px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.teo-result-header {
    background-color: var(--apple-gray-bg);
    padding: 18px 24px;
    border-bottom: 1px solid var(--apple-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.teo-result-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
}

.teo-result-body {
    padding: 30px;
}

.teo-result-body p {
    font-size: 0.98rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.teo-result-body code {
    font-family: monospace;
    font-size: 1.05rem;
    background: var(--apple-gray-bg);
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--apple-blue);
    border: 1px solid var(--apple-border);
}

.teo-result-content-box {
    margin-top: 20px;
    background-color: var(--apple-gray-bg);
    border: 1px solid var(--apple-border);
    border-radius: 10px;
    padding: 20px;
}

.teo-result-content-box strong {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.teo-answer-box {
    border-left: 4px solid var(--apple-blue);
    background-color: rgba(0, 113, 227, 0.01);
}

.teo-badge-status {
    font-size: 0.75rem;
    font-weight: 750;
    padding: 5px 14px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teo-badge-status.status-novo { background-color: rgba(0, 113, 227, 0.08); color: var(--apple-blue); }
.teo-badge-status.status-analise { background-color: rgba(255, 159, 10, 0.08); color: var(--system-orange); }
.teo-badge-status.status-respondido { background-color: rgba(48, 209, 88, 0.08); color: var(--system-green); }
.teo-badge-status.status-arquivado { background-color: var(--apple-gray-bg); color: var(--text-secondary); }
