/* ==========================================================================
   SUGESTAO.CSS — popup "Ajude a melhorar sua análise" (item 1 raso->fundo)
   Cores fixas (não usa tokens do global.css) porque este componente aparece
   em dois temas diferentes: a SPA clara (data/) e o portal escuro (dash/).
   ========================================================================== */

.sug-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 15, 20, 0.55);
    backdrop-filter: blur(3px);
}

/* o "display: flex" acima sempre vence a regra padrão do navegador pro
   atributo [hidden] — sem isto, overlay.hidden = true não escondia nada
   (mesmo problema já corrigido no auth.css). */
.sug-overlay[hidden] {
    display: none;
}

.sug-card {
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    border: 1px solid #E4E2DB;
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    /* mesmo valor do --shadow-card-hover do global.css, mas escrito direto
       (sem var()) porque esse componente também aparece no dash, que não
       carrega o global.css — ver nota no topo do arquivo. */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
}

.sug-title {
    font-size: 20px;
    font-weight: 700;
    color: #0d2240;
    line-height: 1.3;
    margin: 0 0 12px;
}

.sug-pergunta {
    font-size: 14px;
    font-weight: 400;
    color: #15171C;
    line-height: 1.5;
    margin: 0 0 10px;
}

.sug-sub {
    font-size: 12px;
    color: #8A8C93;
    font-style: italic;
    line-height: 1.5;
    margin: 0 0 18px;
}

.sug-msg {
    font-size: 13px;
    color: #C1552F;
    background: #FBE9E3;
    border: 1px solid #C1552F;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
    text-align: left;
}

.sug-textarea {
    width: 100%;
    resize: vertical;
    min-height: 90px;
    padding: 12px 14px;
    border: 1px solid #E4E2DB;
    border-radius: 12px;
    background: #FAFAF8;
    font-family: inherit;
    font-size: 14px;
    color: #15171C;
    outline: none;
    margin-bottom: 16px;
}

.sug-textarea:focus {
    border-color: #435ec8;
}

.sug-acoes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sug-agora-nao {
    border: none;
    background: none;
    font-size: 13px;
    color: #8A8C93;
    cursor: pointer;
}

.sug-agora-nao:hover {
    text-decoration: underline;
}

.sug-enviar {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 9px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.03em;
    background: #15171C;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.15s;
}

.sug-enviar:hover {
    background: #000000;
}

.sug-enviar:disabled {
    opacity: 0.6;
    cursor: default;
}

/* card fixo no dashboard (dash/index.html) — some assim que responder.
   [hidden] precisa vir depois e vencer o "display: flex" abaixo (mesmo caso
   do overlay). */
.sug-banner[hidden] {
    display: none;
}

.sug-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(147, 180, 232, 0.1);
    border: 1px solid rgba(147, 180, 232, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.sug-banner-txt {
    font-size: 13px;
    color: #93b4e8;
    line-height: 1.5;
}

.sug-banner-btn {
    flex-shrink: 0;
    border: 1px solid rgba(147, 180, 232, 0.4);
    background: transparent;
    color: #93b4e8;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.sug-banner-btn:hover {
    background: rgba(147, 180, 232, 0.16);
}
