/* ============================================
   NOVA IDENTIDADE VISUAL - NeD-SMPT
   ============================================ */

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== VARIÁVEIS DE COR ===== */
:root {
    --cor-primaria: #f17140;
    --cor-primaria-hover: #d65f34;
    --cor-secundaria: #768d9c;
    --cor-secundaria-hover: #5f737f;
    --cor-terciaria: #c9ca76;
    --cor-terciaria-hover: #b0b15f;
    --cor-bege: #f6efe3;
    --cor-marrom: #4d3837;
    --cor-marrom-claro: #b34e30;
    --cor-branco: #ffffff;
    --cor-cinza-claro: #f4f4f9;
    --cor-cinza: #889ba5;
    --cor-texto-escuro: #333333;
    --cor-texto-medio: #666666;
    --cor-verde-sucesso: #7FC965;
}

/* ===== TIPOGRAFIA ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--cor-texto-escuro);
    line-height: 1.6;
    background-color: var(--cor-branco);
}

.font-graphie,
.title,
.title-list,
.title-about,
.title-area {
    font-family: 'Graphie', 'Inter', sans-serif;
}

.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

/* ===== TÍTULOS ===== */
.title,
.title-list {
    font-family: 'Graphie', 'Inter', sans-serif;
    color: var(--cor-marrom);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.title-list {
    text-align: center;
    margin-bottom: 3rem;
}

.title-about,
.title-area {
    font-family: 'Graphie', 'Inter', sans-serif;
    color: var(--cor-marrom);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-family: 'Graphie', 'Inter', sans-serif;
    color: var(--cor-marrom);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ===== CONTAINERS ===== */
.externa,
.externa-list {
    min-height: 100vh;
    padding: 2rem 1rem;
    background-color: var(--cor-branco);
}

.externa-list {
    background-color: var(--cor-cinza-claro);
}

/* Espaçamento para compensar header fixo (inclui formulários e telas de perfil) */
.externa-list.mt-header,
.externa.mt-header,
.externa-list-psi.mt-header {
    padding-top: 8rem;
    padding-bottom: 100px;  /* Espaçamento para compensar header fixo */
}

@media (max-width: 767.98px) {
    .externa-list.mt-header,
    .externa.mt-header,
    .externa-list-psi.mt-header {
        padding-top: 6rem;
        padding-bottom: 100px;  /* Espaçamento para compensar header fixo */
    }
}

.interna,
.interna-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--cor-branco);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: visible;
    position: relative;
}

/* Garante que o card interno fique contido */
.interna-list #show-psi,
.interna #show-psi {
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .externa,
    .externa-list {
        padding: 3rem 2rem;
    }

    .interna,
    .interna-list {
        padding: 3rem;
    }
}

/* ===== BOTÕES ===== */
/* Estilos para botões - excluindo header/navbar */
button:not(.navbar-toggler),
.btn,
.btn-wpp,
.cta-button {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 32px;
    gap: 8px;
    min-width: 198px;
    height: 46px;
    background: var(--cor-marrom-claro);
    border-radius: 25px !important;
    color: var(--cor-branco);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Reset para botões do header/navbar */
header button,
nav button,
.navbar-toggler,
header .navbar-toggler,
nav .navbar-toggler {
    background: initial !important;
    border-radius: initial !important;
    padding: initial !important;
    min-width: initial !important;
    height: initial !important;
    color: initial !important;
}

button:hover,
.btn:hover,
.btn-wpp:hover,
.cta-button:hover {
    background: var(--cor-primaria);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 113, 64, 0.3);
}

button:active,
.btn:active,
.btn-wpp:active,
.cta-button:active {
    transform: translateY(0);
}

.btn-wpp a {
    color: var(--cor-branco);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Aplica apenas aos botões dentro dos formulários */
.buttons button[id="previous"],
.buttons .btn-secondary {
    background: var(--cor-secundaria);
    border-radius: 25px !important;
}

.buttons button[id="previous"]:hover,
.buttons .btn-secondary:hover {
    background: var(--cor-secundaria-hover);
    box-shadow: 0 4px 12px rgba(118, 141, 156, 0.3);
}

button:disabled,
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ===== FORMULÁRIOS ===== */
.input,
.options-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background-color: var(--cor-branco);
    color: var(--cor-texto-escuro);
}

.input:focus,
.options-select:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(241, 113, 64, 0.1);
}

.input::placeholder {
    color: var(--cor-cinza);
}

textarea.input {
    min-height: 120px;
    resize: vertical;
}

.form-check-input:checked {
    background-color: var(--cor-marrom-claro);
    border-color: var(--cor-marrom-claro);
}

.form-check-label {
    color: var(--cor-texto-escuro);
    font-family: 'Inter', sans-serif;
}

/* ===== PROGRESS BAR ===== */
progress {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

progress::-webkit-progress-bar {
    background-color: #e0e0e0;
    border-radius: 10px;
}

progress::-webkit-progress-value {
    background-color: var(--cor-marrom-claro);
    border-radius: 10px;
}

progress::-moz-progress-bar {
    background-color: var(--cor-marrom-claro);
    border-radius: 10px;
}

label[for="progress-steps"] {
    font-size: 0.875rem;
    color: var(--cor-texto-medio);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

/* ===== CARDS ===== */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

/* Bootstrap já cuida da maioria dos estilos de card */

/* ===== FEEDBACK E SUCESSO ===== */
.success {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.feedback {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.feedback .img {
    margin-bottom: 2rem;
}

.feedback .title {
    color: var(--cor-verde-sucesso);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.feedback .label {
    font-size: 1.125rem;
    color: var(--cor-texto-escuro);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ===== ALERTAS E AVISOS ===== */
.alert {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

#aviso {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    font-size: 0.938rem;
    line-height: 1.8;
}

.text-danger {
    color: #dc3545;
    font-size: 0.875rem;
    display: block;
    margin-top: 0.5rem;
}

/* ===== MATCH ===== */
.match {
    color: var(--cor-verde-sucesso);
    font-weight: 600;
}

/* ===== LOADING ===== */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.cursor-not-allowed {
    cursor: not-allowed !important;
}

.spin {
    animation: spin 1s linear infinite;
}

/* ===== MODAL ===== */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e0e0e0;
    background-color: var(--cor-bege);
}

.modal-title {
    color: var(--cor-marrom-claro);
    font-family: 'Graphie', 'Inter', sans-serif;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
    padding: 1rem 2rem;
}

.modal-footer button {
    min-width: auto;
    padding: 8px 24px;
}

/* ===== BLOG ===== */
.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post {
    background-color: var(--cor-branco);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-family: 'Graphie', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--cor-marrom-claro);
}

.post-excerpt {
    font-size: 1rem;
    color: var(--cor-texto-medio);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
footer a {
    text-decoration: none !important;
    color: var(--cor-branco) !important;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 767.98px) {
    .title,
    .title-list {
        font-size: 1.5rem;
    }

    .title-about,
    .title-area {
        font-size: 1.25rem;
    }

    .nome-psi {
        font-size: 1.5rem;
    }

    button,
    .btn,
    .btn-wpp {
        min-width: auto;
        width: 100%;
    }

    .buttons {
        flex-direction: column;
    }

    .card-body-btn,
    .card-body-selecionar {
        flex-direction: column;
    }

    .interna,
    .interna-list {
        padding: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .title {
        font-size: 1.75rem;
    }
}

@media (min-width: 992px) {
    .title,
    .title-list {
        font-size: 2.25rem;
    }

    .externa,
    .externa-list {
        padding: 4rem 2rem;
    }
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.text-start {
    text-align: start;
}

.text-end {
    text-align: end;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.fw-bold {
    font-weight: 700;
}

.fw-normal {
    font-weight: 400;
}

.uppercase {
    text-transform: uppercase;
}

/* ===== UTILITIES ESPECÍFICAS ===== */
.py-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Espaçamento extra para páginas com cabeçalho fixo (ex.: supervisão de casos) */
/* Aplicado diretamente nos containers para garantir que o conteúdo fique dentro do card */

/* Links sem decoração */
a[wire\:click\.prevent] {
    text-decoration: none !important;
}

a[wire\:click\.prevent]:hover {
    text-decoration: none !important;
}

