/* Importação da fonte Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Paleta de Cores Estrita */
:root {
    --navy-primary: #1e3a8a;
    /* Azul Marinho Principal */
    --navy-dark: #0f172a;
    /* Azul Marinho Muito Escuro (Sidebar) */
    --navy-hover: #1e40af;
    /* Azul Marinho Destaque / Hover */
    --white: #ffffff;
    /* Branco */
    --grey-bg: #f8fafc;
    /* Fundo Geral - Cinza Muito Claro */
    --grey-border: #cbd5e1;
    /* Bordas - Cinza Claro */
    --grey-text-muted: #64748b;
    /* Texto Secundário - Cinza Médio */
    --grey-hover: #f1f5f9;
    /* Fundo Hover - Cinza Médio-Claro */
    --transition-speed: 0.2s;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--grey-bg);
    color: var(--navy-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Estrutura Base do Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Estilo */
.app-sidebar {
    width: 260px;
    background-color: var(--navy-dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-text {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
    color: var(--white);
}

.sidebar-nav {
    flex-grow: 1;
    padding: 1.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: var(--grey-text-muted);
    padding: 1rem 0.75rem 0.5rem 0.75rem;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease-in-out;
}

.nav-link-custom:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-link-custom.active {
    color: var(--white);
    background-color: var(--navy-primary);
    font-weight: 600;
}

.sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Área Principal de Conteúdo */
.app-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Evita quebra de flexbox com elementos largos */
}

/* Cabeçalho do App */
.app-header {
    height: 70px;
    background-color: var(--white);
    border-bottom: 1px solid var(--grey-border);
    display: flex;
    align-items: center;
}

.text-dark-blue {
    color: var(--navy-dark);
}

.text-primary-blue {
    color: var(--navy-primary);
}

.bg-navy {
    background-color: var(--navy-primary) !important;
    color: var(--white) !important;
}

.text-navy {
    color: var(--navy-primary) !important;
}

.border-navy {
    border-color: var(--navy-primary) !important;
}

/* Componentes Comuns customizados com a Paleta */
.card-custom {
    background-color: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-custom:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.badge-tipo {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.38em 0.7em;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-pd {
    background-color: rgba(124, 58, 237, 0.12) !important;
    color: #6d28d9 !important;
    border: 1px solid rgba(124, 58, 237, 0.3) !important;
}

.badge-hc {
    background-color: rgba(14, 116, 144, 0.12) !important;
    color: #0e7490 !important;
    border: 1px solid rgba(14, 116, 144, 0.3) !important;
}

.badge-pr {
    background-color: rgba(217, 119, 6, 0.12) !important;
    color: #b45309 !important;
    border: 1px solid rgba(217, 119, 6, 0.3) !important;
}


.btn-navy {
    background-color: var(--navy-primary);
    color: var(--white);
    font-weight: 500;
    border: 1px solid transparent;
    transition: all var(--transition-speed) ease-in-out;
}

.btn-navy:hover {
    background-color: var(--navy-hover);
    color: var(--white);
}

.table-custom {
    background-color: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: 8px;
    overflow: hidden;
}

.table-custom th {
    background-color: var(--grey-hover);
    color: var(--navy-dark);
    font-weight: 600;
    border-bottom: 2px solid var(--grey-border);
}

.table-custom td {
    vertical-align: middle;
    border-bottom: 1px solid var(--grey-hover);
}

/* Responsividade e Navegação Mobile da Sidebar */
@media (min-width: 769px) {
    #sidebarMenuCollapse {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
        height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    }

    .sidebar-header {
        height: 60px;
        padding: 0 1.25rem;
    }

    .sidebar-nav {
        flex-direction: column;
        overflow-x: visible;
        padding: 0.75rem 1.25rem;
        gap: 0.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-section-title {
        display: block;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: rgba(255, 255, 255, 0.45);
        margin: 0.85rem 0 0.35rem 0.5rem;
        font-weight: 700;
    }

    .nav-section-title:first-child {
        margin-top: 0.25rem;
    }

    .nav-link-custom {
        white-space: normal;
        padding: 0.65rem 0.85rem;
        border-radius: 8px;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    .app-header {
        height: 60px;
    }
}


/* Global Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    z-index: 9999;
    display: none;
    /* Oculto por padrão, JS exibe como flex */
    justify-content: center;
    align-items: center;
}

.loading-spinner-container {
    text-align: center;
    color: var(--white);
}

.loading-text {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Estilo padrão de Inputs */
.form-control,
.form-select {
    border-color: var(--grey-border);
}

/* Classes Utilitárias do Design System */
.fs-7 {
    font-size: 0.75rem !important;
}

.spinner-loading {
    width: 3rem !important;
    height: 3rem !important;
}

.login-row {
    min-height: calc(100vh - 180px);
}

.switch-large {
    width: 2.5em !important;
    height: 1.25em !important;
}

.border-dashed-custom {
    border-style: dashed !important;
    border-color: var(--grey-border) !important;
}

.divider-grey {
    border-top: 1px solid var(--grey-border) !important;
    opacity: 1 !important;
}

.th-w-40 {
    width: 40%;
}

.th-w-30 {
    width: 30%;
}

.btn-outline-navy {
    color: var(--navy-primary);
    border-color: var(--navy-primary);
    background-color: transparent;
    transition: all var(--transition-speed) ease-in-out;
}

.btn-outline-navy:hover {
    color: var(--white);
    background-color: var(--navy-primary);
    border-color: var(--navy-primary);
}

/* =============================================================================
   MÓDULO DE FREQUÊNCIA - DESIGN SYSTEM & TOUCH TARGETS (MOBILE & DESKTOP)
   ============================================================================= */
.attendance-container {
    max-width: 1140px;
    margin: 0 auto;
}

.attendance-card-header {
    background-color: var(--grey-hover);
    border-bottom: 1px solid var(--grey-border);
    padding: 1rem 1.25rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.attendance-list {
    max-height: 520px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Item de Frequência com Área de Toque Grande (Touch Target) */
.attendance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border: 1px solid var(--grey-border);
    border-radius: 8px;
    background-color: var(--white);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 54px;
    /* Touch target grande para navegação mobile com dedos */
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.attendance-item:hover {
    background-color: var(--grey-hover);
    border-color: var(--navy-primary);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.attendance-item:has(input:checked) {
    background-color: rgba(30, 58, 138, 0.04);
    border-color: var(--navy-primary);
}

.attendance-checkbox {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    cursor: pointer;
    accent-color: var(--navy-primary);
    margin-right: 0.85rem;
}

.attendance-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy-dark);
    line-height: 1.3;
    margin-bottom: 0;
}

/* Barra de Ação Fixa de Salvamento Rápido */
.attendance-submit-bar {
    position: sticky;
    bottom: 1.25rem;
    z-index: 100;
    background-color: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

@media (max-width: 576px) {
    .attendance-item {
        padding: 0.95rem 0.85rem;
        min-height: 58px;
        /* Touch target ampliado para celulares */
    }

    .attendance-checkbox {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
        margin-right: 1rem;
    }

    .attendance-submit-bar {
        bottom: 0.5rem;
        padding: 0.85rem 1rem;
    }
}

/* =============================================================================
   HISTÓRICO E DETALHES DE FREQUÊNCIA - CARDS RESPONSIVOS E LEITURA (READ-ONLY)
   ============================================================================= */
.history-card {
    background-color: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.history-card:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    border-color: var(--navy-primary);
}

.history-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-dark);
}

.badge-presente {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.45em 0.75em;
    border-radius: 6px;
}

.badge-falta {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #b91c1c !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.45em 0.75em;
    border-radius: 6px;
}

.badge-professor-papel {
    background-color: var(--navy-primary) !important;
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.4em 0.75em;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
}

.badge-monitor-papel {
    background-color: var(--grey-hover) !important;
    color: var(--navy-dark) !important;
    border: 1px solid var(--grey-border) !important;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.4em 0.75em;
    border-radius: 6px;
}

/* Badges para Alerta de Abandono (Faltas Consecutivas) */
.badge-faltas-aviso {
    background-color: rgba(245, 158, 11, 0.12) !important;
    color: #b45309 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.badge-faltas-alerta {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #b91c1c !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: pulseAlert 2s infinite ease-in-out;
}

@keyframes pulseAlert {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.82;
    }
}

/* =============================================================================
   RESPONSIVIDADE: TABELA DE PACIENTES PARA CARDS MOBILE
   ============================================================================= */
@media (max-width: 768px) {
    .table-patient-desktop {
        display: none !important;
    }

    .patient-cards-mobile {
        display: flex !important;
        flex-direction: column;
        gap: 0.85rem;
    }

    .patient-card-item {
        background-color: var(--white);
        border: 1px solid var(--grey-border);
        border-radius: 10px;
        padding: 1.1rem;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .patient-card-item:hover {
        border-color: var(--navy-primary);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    }

    .patient-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .patient-card-title {
        font-weight: 700;
        font-size: 1rem;
        color: var(--navy-dark);
        margin: 0;
    }

    .patient-card-body {
        font-size: 0.85rem;
        color: var(--grey-text-muted);
        margin-bottom: 0.85rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .patient-card-footer {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 0.4rem;
        border-top: 1px solid var(--grey-hover);
        padding-top: 0.75rem;
    }
}

@media (min-width: 769px) {

    .patient-cards-mobile,
    .group-cards-mobile,
    .exam-cards-mobile,
    .dashboard-groups-mobile {
        display: none !important;
    }
}

@media (max-width: 768px) {

    .table-patient-desktop,
    .table-group-desktop,
    .table-exam-desktop,
    .table-dashboard-groups-desktop {
        display: none !important;
    }

    .group-cards-mobile,
    .exam-cards-mobile,
    .dashboard-groups-mobile {
        display: flex !important;
        flex-direction: column;
        gap: 0.75rem;
    }


    .group-card-item,
    .exam-card-item {
        background-color: var(--white);
        border: 1px solid var(--grey-border);
        border-radius: 8px;
        padding: 0.95rem;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    }

    .group-card-header,
    .exam-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .group-card-title {
        font-weight: 700;
        font-size: 0.95rem;
        color: var(--navy-dark);
        margin: 0;
    }

    .group-card-dates {
        font-size: 0.825rem;
        color: var(--grey-text-muted);
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-bottom: 0.35rem;
    }

    .group-card-actions {
        display: flex;
        justify-content: flex-end;
        border-top: 1px solid var(--grey-hover);
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }

    /* Transformação da Tabela de Lançamento Rápido em Cards Mobile */
    .table-exam-form {
        overflow-x: visible !important;
    }

    .table-exam-form table,
    .table-exam-form thead,
    .table-exam-form tbody,
    .table-exam-form th,
    .table-exam-form td,
    .table-exam-form tr {
        padding: 0.35rem;
        display: block;
        width: 100% !important;
    }

    .table-exam-form thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .table-exam-form tr {
        background-color: var(--white);
        border: 1px solid var(--grey-border);
        border-radius: 10px;
        padding: 1.1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    }

    .table-exam-form tr:last-child {
        margin-bottom: 0;
    }

    .table-exam-form td {
        border: none !important;
        padding: 0.35rem 0 !important;
    }

    .table-exam-form td.exam-title-cell {
        border-bottom: 1px dashed var(--grey-border) !important;
        padding-bottom: 0.75rem !important;
        margin-bottom: 0.65rem;
    }
}

/* =============================================================================
   MÓDULO WIZARD UPDRS PARTE I - TOUCH TARGETS & BLOCOS VISUAIS
   ============================================================================= */

.updrs-wizard-card {
    background-color: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    padding: 2rem;
}

/* Blocos de Instrução Destacados */
.alert-navy-light {
    background-color: rgba(30, 58, 138, 0.06);
    border-left: 4px solid var(--navy-primary);
    color: var(--navy-dark);
}

.alert-amber-light {
    background-color: rgba(217, 119, 6, 0.08);
    border-left: 4px solid #d97706;
    color: #78350f;
}

.text-amber-dark {
    color: #92400e;
}

/* Touch Targets para Alternativas do Exame (Mobile & Desktop) */
.updrs-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.updrs-option-card {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border: 2px solid var(--grey-border);
    border-radius: 10px;
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    min-height: 58px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.updrs-option-card:hover {
    border-color: var(--navy-primary);
    background-color: var(--grey-hover);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.05);
}

.updrs-option-card.selected,
.updrs-option-card:has(input:checked) {
    border-color: var(--navy-primary);
    background-color: rgba(30, 58, 138, 0.05);
    box-shadow: 0 0 0 1px var(--navy-primary);
}

.updrs-option-badge {
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--grey-hover);
    color: var(--navy-dark);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    border: 1px solid var(--grey-border);
    transition: all 0.2s ease;
}

.updrs-option-card.selected .updrs-option-badge,
.updrs-option-card:has(input:checked) .updrs-option-badge {
    background-color: var(--navy-primary);
    color: var(--white);
    border-color: var(--navy-primary);
}

.updrs-radio {
    width: 20px;
    height: 20px;
    margin-top: 0.3rem;
    margin-right: 0.85rem;
    accent-color: var(--navy-primary);
    cursor: pointer;
}

.updrs-option-label {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--navy-dark);
    font-weight: 500;
    margin-bottom: 0;
    flex-grow: 1;
}

@media (max-width: 576px) {
    .updrs-wizard-card {
        padding: 1.25rem;
    }
    
    .updrs-option-card {
        padding: 0.9rem 1rem;
        min-height: 64px;
    }
}

.page-title-header {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    line-height: 1.2;
    max-width: calc(100% - 100px);
}

.updrs-wrapper {
    max-width: 960px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .page-title-header {
        font-size: 0.95rem;
        max-width: calc(100% - 70px);
    }

    .content-body {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-top: 0.75rem !important;
    }

    .updrs-wizard-card {
        padding: 1rem !important;
    }
}

/* Modal de Detalhamento do Exame */
.resposta-num-box {
    background-color: var(--grey-hover);
    border: 1px solid var(--grey-border);
    color: var(--navy-dark);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    display: inline-block;
    min-width: 36px;
    text-align: center;
}

@media (max-width: 576px) {
    #modalDetalhesExame .modal-body {
        padding: 0.85rem !important;
    }

    #modalDetalhesExame .table th,
    #modalDetalhesExame .table td {
        padding: 0.5rem 0.35rem !important;
        font-size: 0.825rem;
    }

    #modalDetalhesExame .resposta-num-box {
        font-size: 0.85rem;
        padding: 0.15rem 0.5rem;
        min-width: 32px;
    }
}

/* Gold-DSI Wizard Mobile-First Component Styles */
.gold-wizard-card {
    background-color: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.gold-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--grey-border);
}

.gold-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.gold-step-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--grey-hover);
    color: var(--grey-text);
    border: 2px solid var(--grey-border);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gold-step-item.active .gold-step-badge {
    background-color: var(--navy-primary);
    color: var(--white);
    border-color: var(--navy-primary);
}

.gold-step-item.completed .gold-step-badge {
    background-color: #10b981;
    color: var(--white);
    border-color: #10b981;
}

.gold-step-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--grey-text);
}

.gold-step-item.active .gold-step-title {
    color: var(--navy-primary);
    font-weight: 700;
}

.gold-card-item {
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.gold-card-item:hover {
    border-color: var(--navy-primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.gold-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.gold-item-id-badge {
    background-color: rgba(15, 23, 42, 0.08);
    color: var(--navy-primary);
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.85rem;
    min-width: 46px;
    text-align: center;
}

.gold-rule-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.gold-rule-direta {
    background-color: #e0f2fe;
    color: #0369a1;
}

.gold-rule-reversa {
    background-color: #fef3c7;
    color: #b45309;
}

.gold-rule-naolinear {
    background-color: #f3e8ff;
    color: #6b21a8;
}

.gold-options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gold-option-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    min-height: 48px;
    border: 1.5px solid var(--grey-border);
    border-radius: 8px;
    background-color: var(--white);
    color: var(--navy-dark);
    font-weight: 500;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.gold-option-btn:hover {
    border-color: var(--navy-primary);
    background-color: var(--grey-hover);
}

.gold-option-btn.active {
    border-color: var(--navy-primary) !important;
    background-color: rgba(15, 23, 42, 0.06) !important;
    color: var(--navy-primary) !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.gold-option-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background-color: var(--grey-hover);
    color: var(--navy-dark);
    font-weight: 700;
    font-size: 0.825rem;
    margin-right: 0.75rem;
    transition: all 0.15s ease;
}

.gold-option-btn.active .gold-option-num {
    background-color: var(--navy-primary);
    color: var(--white);
}

@media (max-width: 576px) {
    .gold-step-title {
        display: none;
    }
    .gold-wizard-card {
        padding: 0.85rem !important;
    }
    .gold-card-item {
        padding: 1rem !important;
    }
    .gold-option-btn {
        padding: 0.65rem 0.85rem;
        font-size: 0.85rem;
    }
}

/* ==========================================
   Estilização Redesign Tela de Login (Instituto Viva)
   ========================================== */
.login-hero-side {
    background-image: url('../img/login_bg.jpg');
    background-size: cover;
    background-position: center center;
    min-height: 360px;
}

@media (min-width: 768px) {
    .login-hero-side {
        min-height: 100vh;
    }
}

.login-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 58, 138, 0.85) 100%);
    z-index: 1;
}

.login-viva-logo {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.08));
}

.max-w-420 {
    max-width: 420px;
}

.max-w-600 {
    max-width: 600px;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.85);
}

.text-shadow {
    text-shadow: 0px 2px 12px rgba(0, 0, 0, 0.4);
}

.hover-navy:hover {
    color: var(--navy-primary) !important;
}