/* ===== Estilo do Spartacus ===== */
/* Cores principais: verde trabalho e dourado */

:root {
    --verde: #00A88E;
    --verde-escuro: #00806C;
    --dourado: #f5b942;
    --fundo: #f2f8f6;
    --texto: #2b2b2b;
}

html, body {
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    background-color: var(--fundo);
    color: var(--texto);
    margin: 0;
}

/* ===== Barra do topo ===== */

.topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topo .marca {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--verde);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.topo .marca img {
    height: 40px;
}

.topo nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.topo nav a {
    text-decoration: none;
    color: var(--texto);
    font-weight: 600;
}

.topo nav a:hover {
    color: var(--verde);
}

.topo nav a.destaque {
    background: var(--verde);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
}

/* O nome vira um link para editar o cadastro */
.topo .ola {
    color: var(--verde-escuro);
    text-decoration: underline dotted;
}

/* Bolinha verde com o número de notificações */
.bolinha {
    background: var(--verde);
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.75rem;
    margin-left: 4px;
}

.conteudo {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

/* ===== Página inicial ===== */

.inicio {
    text-align: center;
    padding-top: 20px;
}

.inicio img.mascote {
    width: 220px;
}

.inicio h1 {
    color: var(--verde-escuro);
    font-weight: 800;
    letter-spacing: 3px;
}

.inicio p.frase {
    font-size: 1.2rem;
    color: #666;
    max-width: 480px;
    margin: 10px auto 30px;
}

/* ===== Cartão estilo Tinder ===== */

.cartao {
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-width: 420px;
    margin: 0 auto;
    overflow: hidden;
    animation: aparecer 0.3s ease;
}

@keyframes aparecer {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cartao img.foto {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #eee;
}

/* Logotipo da empresa no cartão da vaga */
.cartao img.logo-empresa {
    display: block;
    max-height: 90px;
    max-width: 200px;
    margin: 18px auto 0;
    object-fit: contain;
}

.cartao .corpo {
    padding: 18px 22px 22px;
}

.cartao h3 {
    margin: 0 0 4px;
    color: var(--verde-escuro);
}

.cartao .salario {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a7d36;
}

.cartao .etiqueta {
    display: inline-block;
    background: var(--dourado);
    color: #5a3c00;
    border-radius: 12px;
    padding: 2px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 4px 4px 4px 0;
}

/* Etiqueta verde usada para os cargos */
.cartao .etiqueta.cargo {
    background: #d8f3ee;
    color: var(--verde-escuro);
}

.cartao p.texto {
    white-space: pre-line; /* respeita as quebras de linha do texto corrido */
    color: #555;
}

.cartao a {
    color: var(--verde-escuro);
}

/* Botões redondos de Passar e Match */
.botoes-match {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 24px;
}

.botao-redondo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s;
    background: white;
}

.botao-redondo:hover {
    transform: scale(1.12);
}

.botao-redondo.passar {
    color: #999;
}

.botao-redondo.match {
    background: var(--verde);
    color: white;
}

.acabou {
    text-align: center;
    color: #888;
    padding: 50px 0;
}

.acabou img {
    width: 140px;
    opacity: 0.8;
}

/* ===== Formulários ===== */

.caixa-form {
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    max-width: 480px;
    margin: 0 auto;
    padding: 28px;
}

.caixa-form h2 {
    color: var(--verde-escuro);
    margin-top: 0;
}

.caixa-form label {
    font-weight: 600;
    margin-top: 12px;
    display: block;
}

.caixa-form input, .caixa-form textarea, .caixa-form select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-top: 4px;
    box-sizing: border-box;
}

.botao-principal {
    background: var(--verde);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 11px 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
}

.botao-principal:hover {
    background: var(--verde-escuro);
}

.erro {
    color: #c0182f;
    font-weight: 600;
}

.sucesso {
    color: var(--verde-escuro);
    font-weight: 600;
}

.validation-message {
    color: #c0182f;
    font-size: 0.85rem;
}

/* ===== Lista de cargos (caixinhas de marcar) ===== */

.lista-cargos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.cargo-item {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #ddd;
    border-radius: 18px;
    padding: 5px 14px;
    cursor: pointer;
    font-weight: 500 !important;
    margin-top: 0 !important;
    font-size: 0.9rem;
    user-select: none;
}

.cargo-item input {
    width: auto !important;
    margin: 0 !important;
    accent-color: var(--verde);
}

/* Quando o cargo está marcado, fica verdinho */
.cargo-item.marcado {
    background: #d8f3ee;
    border-color: var(--verde);
    color: var(--verde-escuro);
}

/* ===== Listas (notificações, matches, minhas vagas) ===== */

.item-lista {
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.item-lista img.mini-foto {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}

.item-lista .info {
    flex: 1;
    min-width: 200px;
}

.item-lista .info h4 {
    margin: 0;
    color: var(--verde-escuro);
}

.item-lista .info p {
    margin: 4px 0 0;
    color: #666;
    font-size: 0.9rem;
}

.botao-pequeno {
    border: none;
    border-radius: 18px;
    padding: 8px 18px;
    font-weight: 700;
    cursor: pointer;
}

.botao-pequeno.aceitar {
    background: var(--verde);
    color: white;
}

.botao-pequeno.recusar {
    background: #eee;
    color: #666;
}

/* ===== Chat ===== */

.chat {
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 70vh;
}

.chat .cabecalho {
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    color: var(--verde-escuro);
}

.chat .mensagens {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.balao {
    max-width: 75%;
    padding: 9px 14px;
    border-radius: 16px;
    font-size: 0.95rem;
}

/* Mensagem que EU enviei (lado direito, verde) */
.balao.minha {
    align-self: flex-end;
    background: var(--verde);
    color: white;
    border-bottom-right-radius: 4px;
}

/* Mensagem do outro lado (esquerda, cinza) */
.balao.outra {
    align-self: flex-start;
    background: #f0f0f0;
    border-bottom-left-radius: 4px;
}

.balao .hora {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 2px;
}

/* Foto enviada no chat: miniatura de 50x50; clicando, amplia no modal */
.balao img.foto-chat {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    cursor: zoom-in;
}

/* Linha da mensagem: a foto de quem enviou + o balão */
.linha-balao {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    max-width: 78%;
}

.linha-balao.minha {
    align-self: flex-end;
    flex-direction: row-reverse; /* minha foto fica do lado direito */
}

.linha-balao.outra {
    align-self: flex-start;
}

/* Fotinha redonda de quem enviou a mensagem */
.avatar-chat {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Áudio enviado no chat */
.balao audio {
    max-width: 220px;
    display: block;
}

/* Arquivo enviado no chat */
.balao a.arquivo-chat {
    color: inherit;
    font-weight: 600;
}

.chat .digitar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid #eee;
}

.chat .digitar input[type="text"] {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 9px 16px;
    min-width: 80px;
}

/* Botões de anexo: foto, arquivo e áudio */
.botao-anexo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    background: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.botao-anexo:hover {
    background: #d8f3ee;
    border-color: var(--verde);
}

/* Quando está gravando áudio, o botão fica vermelho piscando */
.botao-anexo.gravando {
    background: #e0263d;
    border-color: #e0263d;
    animation: piscar 1s infinite;
}

@keyframes piscar {
    50% { opacity: 0.5; }
}

/* ===== Aviso de "Deu Match!" ===== */

.deu-match {
    text-align: center;
    background: linear-gradient(135deg, var(--verde), var(--verde-escuro));
    color: white;
    border-radius: 18px;
    padding: 30px;
    max-width: 420px;
    margin: 0 auto 20px;
}

.deu-match h2 {
    margin: 8px 0;
}

/* ===== Cabeçalho de página com botão (ex: Minhas Vagas) ===== */

.cabecalho-pagina {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 480px;
    margin: 0 auto;
}

/* A lista de cargos com rolagem (usada no cadastro de vagas) */
.lista-cargos.com-scroll {
    max-height: 170px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 8px;
}

/* Link com o número de matches da vaga */
.link-matches {
    color: var(--verde-escuro);
    font-weight: 700;
}

/* ===== Modal (ampliar foto do chat e perfil completo) ===== */

.modal-fundo {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
}

.modal-caixa {
    background: white;
    border-radius: 18px;
    padding: 24px 28px;
    max-width: 460px;
    width: 90%;
    max-height: 82vh;
    overflow-y: auto;
    cursor: default;
}

.modal-caixa a {
    color: var(--verde-escuro);
}

/* Foto grande do profissional dentro do modal de perfil */
.foto-perfil-modal {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    background: #eee;
}

/* Foto do chat ampliada no modal */
.modal-fundo img.foto-grande {
    max-width: 92vw;
    max-height: 86vh;
    border-radius: 12px;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
