/**
 * ALL CONSULTANTS
 * Estilos globais compartilhados
 *
 * Este arquivo deve ficar na mesma pasta do index.html.
 */

:root {
    --verde-principal: #1f3d3b;
    --verde-secundario: #2d5a57;
    --azul-claro: #a8d5e2;
    --fundo: #f4f7f6;
    --texto: #1f2937;
    --texto-suave: #4a5568;
    --branco: #ffffff;
    --erro: #b42318;
    --sucesso: #166534;
    --borda: #d9e2e8;
    --sombra: 0 5px 15px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--texto);
    background: var(--fundo);
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}

/* Utilidades */
.container {
    width: min(1120px, 90%);
    margin: 0 auto;
}

.texto-centralizado {
    text-align: center;
}

.somente-leitor-tela {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Botões reutilizáveis */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        background-color 0.2s ease;
}

.btn:hover {
    filter: brightness(1.05);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.btn-principal {
    color: var(--branco);
    background: var(--verde-principal);
}

.btn-secundario {
    color: var(--verde-principal);
    background: transparent;
    border: 2px solid var(--verde-principal);
}

/* Formulários reutilizáveis */
.form-grupo {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-grupo label {
    color: var(--texto-suave);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-grupo input,
.form-grupo select,
.form-grupo textarea {
    width: 100%;
    padding: 12px 13px;
    color: var(--texto);
    background: var(--branco);
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    outline: none;
}

.form-grupo input:focus,
.form-grupo select:focus,
.form-grupo textarea:focus {
    border-color: var(--verde-principal);
    box-shadow: 0 0 0 3px rgba(31, 61, 59, 0.12);
}

/* Dropdown compartilhado */
.menu-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-conteudo {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 100;
    display: none;
    min-width: 210px;
    overflow: hidden;
    background: var(--branco);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
}

.menu-dropdown:hover .dropdown-conteudo,
.menu-dropdown:focus-within .dropdown-conteudo {
    display: block;
}

.dropdown-conteudo a {
    display: block;
    padding: 12px 18px;
    color: var(--verde-principal);
    text-decoration: none;
    border-bottom: 1px solid #edf2f7;
}

.dropdown-conteudo a:hover,
.dropdown-conteudo a:focus-visible {
    background: #edf4f9;
}

/* Painéis internos */
.painel-container {
    width: min(1200px, 90%);
    margin: 40px auto;
    display: flex;
    gap: 30px;
}

.menu-lateral {
    width: 250px;
    height: fit-content;
    padding: 20px 0;
    background: var(--branco);
    border-radius: 12px;
    box-shadow: var(--sombra);
}

.menu-lateral a {
    display: block;
    padding: 15px 25px;
    color: var(--texto-suave);
    text-decoration: none;
    font-weight: 500;
    border-left: 4px solid transparent;
}

.menu-lateral a:hover,
.menu-lateral a.ativo {
    color: var(--verde-principal);
    background: #edf4f9;
}

.menu-lateral a.ativo {
    border-left-color: var(--verde-principal);
    font-weight: 700;
}

.conteudo-aba {
    flex: 1;
    min-width: 0;
    padding: 40px;
    background: var(--branco);
    border-radius: 12px;
    box-shadow: var(--sombra);
}

@media (max-width: 800px) {
    .painel-container {
        flex-direction: column;
    }

    .menu-lateral {
        width: 100%;
    }

    .conteudo-aba {
        padding: 25px;
    }
}