/**
 * Neuro Diverte Experience - Design System Theme
 * Baseado estritamente em docs/DESIGN.md
 */

:root {
    /* Cores Primárias e Superfícies Terapêuticas */
    --nd-primary: #00696f;
    --nd-primary-container: #32bec8;
    --nd-on-primary: #ffffff;
    --nd-on-primary-container: #00484d;

    /* Aliases e Retrocompatibilidade de Tokens */
    --color-primary: var(--nd-primary);
    --color-primary-dark: #00484d;
    --color-primary-light: var(--nd-primary-container);
    --color-surface-container-low: var(--nd-surface-container-low);

    /* Secundária (Coral Suave / Afeto e Acolhimento) */
    --nd-secondary: #924849;
    --nd-secondary-container: #fd9f9e;
    --nd-soft-coral: #ee9392;
    --nd-on-secondary-container: #783435;

    /* Terciária e Atenção (Céu Terapêutico e Amarelo Suave) */
    --nd-tertiary: #1d667a;
    --nd-tertiary-container: #75b6cb;
    --nd-sky-cyan: #90d1e7;
    --nd-butter-yellow: #fde780;
    --nd-mint-green: #b2ecc1;
    --nd-mint-dark: #1d5f35;

    /* Superfícies e Fundos */
    --nd-background: #f1fbff;
    --nd-surface: #ffffff;
    --nd-surface-container-low: #e6f6fd;
    --nd-surface-container: #e0f1f7;
    --nd-surface-container-high: #daebf1;
    --nd-border-subtle: #e6f2f4;
    --nd-border-input: #d4e7ea;

    /* Tipografia e Neutros de Alto Contraste (WCAG AAA) */
    --nd-text-dark: #142327;
    --nd-text-muted: #334449;
    --nd-text-subtle: #4b6066;

    /* Erro / Alerta */
    --nd-error: #ba1a1a;
    --nd-error-container: #ffdad6;
    --nd-on-error-container: #93000a;

    /* Raio de Arredondamento */
    --nd-radius-sm: 0.25rem;
    --nd-radius-md: 0.5rem;
    --nd-radius-lg: 0.75rem;
    --nd-radius-xl: 1rem;
    --nd-radius-pill: 9999px;

    /* Tipografia Padrão */
    --nd-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--nd-font-family);
    background-color: var(--nd-background);
    color: var(--nd-text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/* Áreas e containers principais respeitam estritamente a largura máxima da tela */
main,
.container,
.container-fluid,
header.navbar,
footer,
.card,
.card-body {
    max-width: 100vw;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

/* Preserva rolagem horizontal suave e intencional APENAS em componentes com scroll */
.table-responsive,
.overflow-x-auto,
.segmented-control,
.nav-pills {
    touch-action: pan-x pan-y !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Previne que imagens, vetores ou mídias ultrapassem a largura da tela */
img, svg, canvas, video {
    max-width: 100%;
    height: auto;
}

/* =========================================================================
   Acessibilidade e Alto Contraste Tipográfico (Mitigação de Letras Invisíveis)
   ========================================================================= */

/* Placeholders Nítidos e Confortáveis */
::placeholder {
    color: #4b6066 !important;
    opacity: 0.85 !important;
    font-weight: 400;
}
::-webkit-input-placeholder {
    color: #4b6066 !important;
    opacity: 0.85 !important;
    font-weight: 400;
}
::-moz-placeholder {
    color: #4b6066 !important;
    opacity: 0.85 !important;
    font-weight: 400;
}
:-ms-input-placeholder {
    color: #4b6066 !important;
    opacity: 0.85 !important;
    font-weight: 400;
}
.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder,
input::placeholder {
    color: #4b6066 !important;
    opacity: 0.85 !important;
    font-weight: 400;
}

/* Rótulos e Textos Auxiliares de Alto Contraste */
.form-label,
label {
    color: #142327 !important;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.text-muted {
    color: #334449 !important;
}

.text-secondary {
    color: #334449 !important;
}

/* Inputs e Selects com Delimitação Visual Clara */
.form-control,
.form-select {
    color: #142327;
    border: 1.5px solid #b8ced3;
    border-radius: var(--nd-radius-lg);
    background-color: #ffffff;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #29a8b1;
    box-shadow: 0 0 0 3px rgba(50, 190, 200, 0.2);
    color: #142327;
}

/* Áreas Mínimas de Toque para Acessibilidade Motora (Mobile-first >= 48px) */
.btn-touch,
button,
.btn,
.form-control,
.form-select {
    min-height: 48px;
}

/* Botão Primário Padrão Institucional */
.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--nd-primary, #00696f);
    --bs-btn-border-color: var(--nd-primary, #00696f);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #00565b;
    --bs-btn-hover-border-color: #004d52;
    --bs-btn-focus-shadow-rgb: 0, 105, 111;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #004d52;
    --bs-btn-active-border-color: #004549;
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: var(--nd-primary, #00696f);
    --bs-btn-disabled-border-color: var(--nd-primary, #00696f);
    background-color: var(--nd-primary, #00696f) !important;
    border-color: var(--nd-primary, #00696f) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #00565b !important;
    border-color: #004d52 !important;
    color: #ffffff !important;
}

/* Botão Primário Terapêutico */
.btn-primary-therapeutic {
    background-color: var(--nd-primary-container);
    color: #ffffff;
    border: none;
    border-radius: var(--nd-radius-lg);
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-primary-therapeutic:hover,
.btn-primary-therapeutic:focus {
    background-color: #29a8b1;
    color: #ffffff;
    transform: translateY(-1px) scale(1.01);
}

/* Botão Secundário Terapêutico (Alternador de Visão de Agenda e Ações de Apoio) */
.btn-secondary-therapeutic {
    background-color: #ffffff;
    color: var(--nd-primary, #00696f);
    border: 1.5px solid #a8ced6;
    border-radius: var(--nd-radius-lg);
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 105, 111, 0.08);
    text-decoration: none !important;
    min-height: 48px;
}

.btn-secondary-therapeutic:hover,
.btn-secondary-therapeutic:focus {
    background-color: var(--nd-surface-container-low, #e6f6fd);
    color: var(--nd-primary, #00696f);
    border-color: var(--nd-primary, #00696f);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 105, 111, 0.15);
}

.btn-secondary-therapeutic:active {
    transform: translateY(0);
}

/* Harmonização do botão outline secondary padrão do Bootstrap */
.btn-outline-secondary {
    color: #1e3338;
    border: 1.5px solid #c2d8dc;
    background-color: #ffffff;
    border-radius: var(--nd-radius-lg);
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: var(--nd-surface-container-low, #e6f6fd);
    color: var(--nd-primary, #00696f);
    border-color: var(--nd-primary-container, #32bec8);
    box-shadow: 0 2px 6px rgba(0, 105, 111, 0.1);
}

/* Container de Alto Contraste para Logomarca em Fundos Claros (conforme DESIGN.md e INSUMOS.md) */
.logo-container-dark {
    background-color: var(--nd-primary);
    border-radius: var(--nd-radius-xl);
    padding: 0.6rem 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px -2px rgba(39, 54, 59, 0.08);
}

.logo-container-dark img {
    max-height: 42px;
    width: auto;
    display: block;
}

/* Chips e Badges de Salas Físicas */
.chip-sala-kid {
    background-color: var(--nd-butter-yellow);
    color: var(--nd-text-dark);
    font-weight: 600;
    border-radius: var(--nd-radius-pill);
    padding: 0.35rem 0.85rem;
    display: inline-block;
    font-size: 0.85rem;
}

.chip-sala-adultos {
    background-color: var(--nd-sky-cyan);
    color: var(--nd-text-dark);
    font-weight: 600;
    border-radius: var(--nd-radius-pill);
    padding: 0.35rem 0.85rem;
    display: inline-block;
    font-size: 0.85rem;
}

/* Badges de Status Operacional */
.badge-status-agendado {
    background-color: #e0f8fa;
    color: var(--nd-on-primary-container);
    border: 1px solid var(--nd-primary-container);
    border-radius: var(--nd-radius-pill);
    padding: 0.3rem 0.75rem;
    font-weight: 600;
}

.badge-status-realizado {
    background-color: var(--nd-mint-green);
    color: var(--nd-mint-dark);
    border-radius: var(--nd-radius-pill);
    padding: 0.3rem 0.75rem;
    font-weight: 600;
}

.badge-status-faltou {
    background-color: #fee2e2;
    color: #991b1b;
    border-radius: var(--nd-radius-pill);
    padding: 0.3rem 0.75rem;
    font-weight: 600;
}

.badge-status-cancelado {
    background-color: var(--nd-surface-container-high);
    color: var(--nd-text-muted);
    border-radius: var(--nd-radius-pill);
    padding: 0.3rem 0.75rem;
    font-weight: 600;
}

/* Cartões Acolhedores com Elevação Suave */
.card-therapeutic {
    background-color: var(--nd-surface);
    border: 1px solid var(--nd-border-subtle);
    border-radius: var(--nd-radius-xl);
    box-shadow: 0 4px 16px -2px rgba(39, 54, 59, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* =========================================================================
   Componentes Específicos do Prontuário e Acolhimento Clínico
   ========================================================================= */

/* Banner de Alerta Temporário Clínico / Sensorial */
.alerta-clinico-banner {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.alerta-clinico-banner.alerta-ativo {
    background-color: #fff8e1;
    border: 1px solid #ffe082;
}
.alerta-clinico-banner.alerta-ativo .alerta-banner-icon {
    fill: #f59f00;
}
.alerta-clinico-banner.alerta-ativo .alerta-banner-title {
    color: #855306;
}
.alerta-clinico-banner.alerta-ativo .alerta-banner-text {
    color: #492e03;
    font-weight: 500;
}
.alerta-clinico-banner.alerta-inativo {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}
.alerta-clinico-banner.alerta-inativo .alerta-banner-icon {
    fill: #6c797b;
}
.alerta-clinico-banner.alerta-inativo .alerta-banner-title {
    color: #212529;
}
.alerta-clinico-banner.alerta-inativo .alerta-banner-text {
    color: #6c757d;
}

/* Cards do Guia Rápido & Anamnese */
.card-guia-rapido {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-guia-gatilhos {
    background-color: #ffdad6;
    border-left: 6px solid #ba1a1a !important;
}
.card-guia-gatilhos .card-guia-title,
.card-guia-gatilhos .card-guia-btn {
    color: #ba1a1a;
}
.card-guia-gatilhos .card-guia-text {
    color: #491010;
}

.card-guia-hiperfocos {
    background-color: #e0f1f7;
    border-left: 6px solid #1d667a !important;
}
.card-guia-hiperfocos .card-guia-title,
.card-guia-hiperfocos .card-guia-btn {
    color: #005a61;
}
.card-guia-hiperfocos .card-guia-text {
    color: #0d3b46;
}

.card-guia-acolhimento {
    background-color: #d1f2d9;
    border-left: 6px solid #28a745 !important;
}
.card-guia-acolhimento .card-guia-title,
.card-guia-acolhimento .card-guia-btn {
    color: #115729;
}
.card-guia-acolhimento .card-guia-text {
    color: #0d3d19;
}

/* Blocos de Notas Sigilosas e Confidenciais */
.bloco-nota-sigilosa {
    background-color: #fff9db;
    border: 1.5px dashed #f59f00;
}
.bloco-nota-sigilosa .bloco-sigiloso-title {
    color: #856404;
}
.bloco-nota-sigilosa .bloco-sigiloso-text {
    color: #3f2f03;
}

/* Badge de Alerta Temporário nas Listagens */
.badge-alerta-temporario {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}


/* =========================================================================
   Segmented Control Terapêutico (Harmonia, Ergonomia e Alinhamento Suave)
   ========================================================================= */
.segmented-container {
    background-color: #e6f6fd;
    background-color: var(--nd-surface-container-low, #e6f6fd);
    padding: 4px;
    border-radius: var(--nd-radius-pill, 9999px);
    border: 1px solid #d4e7ea;
    border: 1px solid var(--nd-border-subtle, #d4e7ea);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.segmented-item {
    border: 1px solid transparent;
    background: transparent;
    color: #142327;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 6px 14px;
    border-radius: var(--nd-radius-pill, 9999px);
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.2s ease;
    min-height: 38px;
    white-space: nowrap;
    cursor: pointer;
}

.segmented-item:hover {
    color: var(--nd-primary, #00696f);
    background-color: rgba(255, 255, 255, 0.9);
    text-decoration: none !important;
}

/* Estado Ativo: Navegação de Datas */
.segmented-item.active-date {
    background-color: #ffffff !important;
    color: var(--nd-primary, #00696f) !important;
    box-shadow: 0 2px 6px rgba(0, 50, 60, 0.12);
    font-weight: 700;
    border-color: rgba(0, 105, 111, 0.15);
}

/* Estados Ativos: Filtros de Salas Físicas */
.segmented-item.active-sala-todas {
    background-color: var(--nd-primary, #00696f) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 105, 111, 0.25);
    font-weight: 700;
}

.segmented-item.active-sala-kid {
    background-color: var(--nd-butter-yellow, #fde780) !important;
    color: #5a4300 !important;
    box-shadow: 0 2px 6px rgba(180, 130, 0, 0.2);
    font-weight: 700;
}

.segmented-item.active-sala-adultos {
    background-color: var(--nd-sky-cyan, #90d1e7) !important;
    color: #0f4c5c !important;
    box-shadow: 0 2px 6px rgba(15, 76, 92, 0.2);
    font-weight: 700;
}

.segmented-item.active-pendente {
    background-color: var(--nd-butter-yellow, #fde780) !important;
    color: #5a4300 !important;
    box-shadow: 0 2px 6px rgba(180, 130, 0, 0.25);
    font-weight: 700;
    border-color: rgba(180, 130, 0, 0.3);
}

/* =========================================================================
   Segmented Control de Pacientes (Ativos / Desativados)
   Simetria 50%/50%, Anti-Colisão e Anti-Overflow
   ========================================================================= */
.segmented-pacientes-container {
    background-color: var(--nd-surface-container-low, #e6f6fd);
    border: 1.5px solid var(--nd-border-subtle, #d4e7ea);
    border-radius: var(--nd-radius-pill, 9999px);
    padding: 4px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.segmented-pacientes-item {
    flex: 1 1 50%;
    max-width: 50%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    min-height: 42px;
    border-radius: var(--nd-radius-pill, 9999px);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: none !important;
    background: transparent;
    color: var(--nd-text-dark, #142327);
    cursor: pointer;
    outline: none;
    overflow: hidden;
}

.segmented-pacientes-item:hover {
    color: var(--nd-primary, #00696f);
    background-color: rgba(255, 255, 255, 0.7);
    text-decoration: none !important;
}

.segmented-pacientes-item.active-ativos {
    background-color: var(--nd-primary, #00696f) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 105, 111, 0.25);
    font-weight: 700;
}

.segmented-pacientes-item.active-inativos {
    background-color: #55696d !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(85, 105, 109, 0.25);
    font-weight: 700;
}

.segmented-pacientes-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--nd-radius-pill, 9999px);
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.segmented-pacientes-item.active-ativos .segmented-pacientes-badge,
.segmented-pacientes-item.active-inativos .segmented-pacientes-badge {
    background-color: #ffffff;
    color: #142327;
}

.segmented-pacientes-item:not(.active-ativos):not(.active-inativos) .segmented-pacientes-badge {
    background-color: rgba(20, 35, 39, 0.08);
    color: #3f494b;
}

@media (max-width: 767.98px) {
    .segmented-pacientes-container {
        max-width: 320px;
        padding: 3px;
    }
    .segmented-pacientes-item {
        padding: 6px 8px;
        font-size: 0.82rem;
        gap: 5px;
        min-height: 38px;
    }
    .segmented-pacientes-badge {
        font-size: 0.72rem;
        padding: 1px 6px;
    }
}

/* Input de Data Integrado e Harmonizado */
.input-date-therapeutic {
    height: 46px;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid var(--nd-border-input);
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--nd-text-dark);
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-date-therapeutic:focus {
    border-color: var(--nd-primary);
    box-shadow: 0 0 0 3px rgba(0, 105, 111, 0.12);
    outline: none;
}

/* =========================================================================
   Botões de Ação Harmoniosos dos Cards de Agendamento (Design Terapêutico)
   ========================================================================= */
.btn-pill-action {
    border-radius: var(--nd-radius-pill, 9999px) !important;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.35rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.3;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
    border: 1px solid transparent;
    box-shadow: 0 1px 3px rgba(39, 54, 59, 0.05);
}

.btn-pill-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(39, 54, 59, 0.12);
}

.btn-pill-action:active {
    transform: translateY(0);
}

/* Ação: Realizado */
.btn-pill-realizado {
    background-color: #d1f2d9 !important;
    color: #0b6833 !important;
    border-color: #b5e8c1 !important;
}
.btn-pill-realizado:hover {
    background-color: #bdf0c7 !important;
    color: #064e24 !important;
    border-color: #0b6833 !important;
}

/* Ação: Faltou */
.btn-pill-faltou {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
    border-color: #fca5a5 !important;
}
.btn-pill-faltou:hover {
    background-color: #fecaca !important;
    color: #991b1b !important;
    border-color: #b91c1c !important;
}

/* Ação: Reabrir */
.btn-pill-reabrir {
    background-color: var(--nd-surface-container-low, #e6f6fd) !important;
    color: var(--nd-text-dark, #27363b) !important;
    border-color: var(--nd-border-subtle, #d4e7ea) !important;
}
.btn-pill-reabrir:hover {
    background-color: #ffffff !important;
    color: var(--nd-primary, #00696f) !important;
    border-color: var(--nd-primary, #00696f) !important;
}

/* Ação: Evoluir */
.btn-pill-evoluir {
    background-color: var(--nd-primary, #00696f) !important;
    color: #ffffff !important;
    border-color: var(--nd-primary, #00696f) !important;
    box-shadow: 0 2px 6px rgba(0, 105, 111, 0.25);
}
.btn-pill-evoluir:hover {
    background-color: #005358 !important;
    color: #ffffff !important;
}

/* Ação: WhatsApp */
.btn-pill-whatsapp {
    background-color: rgba(37, 211, 102, 0.12) !important;
    color: #0f6f3a !important;
    border-color: rgba(37, 211, 102, 0.35) !important;
}
.btn-pill-whatsapp:hover,
.btn-pill-whatsapp:focus {
    background-color: rgba(37, 211, 102, 0.22) !important;
    color: #075E54 !important;
    border-color: #25D366 !important;
}

/* Ação: Reagendar */
.btn-pill-reagendar {
    background-color: #ffffff !important;
    color: var(--nd-text-dark, #27363b) !important;
    border-color: var(--nd-border-subtle, #d4e7ea) !important;
}
.btn-pill-reagendar:hover {
    background-color: var(--nd-surface-container-low, #e6f6fd) !important;
    color: var(--nd-primary, #00696f) !important;
    border-color: var(--nd-primary, #00696f) !important;
}

/* Ação: Cancelar */
.btn-pill-cancelar {
    background-color: #fff1f0 !important;
    color: #cf222e !important;
    border-color: #ffdcd7 !important;
}
.btn-pill-cancelar:hover {
    background-color: #ffe3e0 !important;
    color: #a40e26 !important;
    border-color: #cf222e !important;
}

/* =========================================================================
   Abas e Controles de Navegação (nav-pills) Terapêuticas
   ========================================================================= */
.nav-pills .nav-link {
    color: #142327;
    font-weight: 600;
    border-radius: var(--nd-radius-pill, 9999px);
    transition: all 0.2s ease;
    border: 1.5px solid #c2d8dc;
    background-color: #ffffff;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 1px 3px rgba(39, 54, 59, 0.04);
}
.nav-pills .nav-link:hover {
    color: var(--nd-primary, #00696f);
    background-color: var(--nd-surface-container-low, #e6f6fd);
    border-color: var(--nd-primary-container, #32bec8);
}
.nav-pills .nav-link.active {
    background-color: var(--nd-primary, #00696f) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 105, 111, 0.25);
    border-color: var(--nd-primary, #00696f) !important;
}

/* =========================================================================
   Avatares Terapêuticos da Marca para Pacientes e Usuários
   ========================================================================= */
.avatar-terapeutico {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(20, 35, 39, 0.08);
}

.avatar-terapeutico-sm {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    aspect-ratio: 1 / 1;
    font-size: 0.8rem;
}

.avatar-terapeutico-lg {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    aspect-ratio: 1 / 1;
    font-size: 1.5rem;
}

.avatar-cor-teal {
    background-color: #e0f1f7;
    color: #00696f;
}

.avatar-cor-coral {
    background-color: #feebe8;
    color: #924849;
}

.avatar-cor-sky {
    background-color: #e6f6fd;
    color: #1d667a;
}

.avatar-cor-mint {
    background-color: #e5f8ec;
    color: #1d5f35;
}

.avatar-cor-amber {
    background-color: #fff9db;
    color: #744210;
}

/* =========================================================================
   Modais Terapêuticos - Espaçamento, Cores de Marca e Ergonomia Acolhedora
   ========================================================================= */
.modal-content-therapeutic {
    border: 1px solid var(--nd-border-subtle);
    border-radius: var(--nd-radius-xl);
    box-shadow: 0 12px 36px -4px rgba(20, 35, 39, 0.15);
    overflow: hidden;
}

.modal-header-therapeutic {
    background: linear-gradient(135deg, var(--nd-surface-container-low, #e6f6fd) 0%, #ffffff 100%);
    border-bottom: 1.5px solid var(--nd-border-subtle, #e6f2f4);
    padding: 1.25rem 1.5rem;
}

.modal-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--nd-radius-lg, 0.75rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--nd-primary, #00696f) 0%, var(--nd-primary-container, #32bec8) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 105, 111, 0.2);
    flex-shrink: 0;
}

.modal-footer-therapeutic {
    background-color: var(--nd-surface-container-low, #e6f6fd);
    border-top: 1.5px solid var(--nd-border-subtle, #e6f2f4);
    padding: 1rem 1.5rem;
}

/* Bloco Acolhedor de Observações Clínicas / Sensoriais */
.bloco-sensorial-container {
    background: linear-gradient(135deg, #f7fcfe 0%, var(--nd-surface-container-low, #e6f6fd) 100%);
    border: 1.5px solid #d2e8ed;
    border-radius: var(--nd-radius-lg, 0.75rem);
    padding: 1rem 1.25rem;
}

.bloco-sensorial-badge {
    background-color: var(--nd-butter-yellow, #fde780);
    color: #523b00;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--nd-radius-pill, 9999px);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 1px 3px rgba(82, 59, 0, 0.1);
}

/* Card Principal Terapêutico com Borda e Sombra Suaves */
.card-content-therapeutic {
    background-color: #ffffff;
    border: 1.5px solid #d8eaee;
    border-radius: var(--nd-radius-xl, 1rem);
    box-shadow: 0 4px 16px -2px rgba(20, 35, 39, 0.05);
    overflow: hidden;
}

.table-header-therapeutic {
    background-color: #eaf5f8 !important;
    border-bottom: 2px solid #d4e7ea !important;
    color: var(--nd-primary, #00696f) !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
}

/* =========================================================================
   Botão de Alternância de Dark Theme (.btn-toggle-theme)
   ========================================================================= */
.btn-toggle-theme {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    border-radius: var(--nd-radius-pill, 9999px) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.25s ease;
    border: 1.5px solid var(--nd-border-input, #c2d8dc);
    background-color: var(--nd-surface-container-low, #e6f6fd);
    color: var(--nd-text-dark, #142327);
    cursor: pointer;
    flex-shrink: 0;
}

.btn-toggle-theme:hover,
.btn-toggle-theme:focus-visible {
    background-color: var(--nd-surface-container, #e0f1f7);
    color: var(--nd-primary, #00696f);
    border-color: var(--nd-primary-container, #32bec8);
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 3px 10px rgba(0, 105, 111, 0.15);
    outline: none;
}

.btn-toggle-theme:active {
    transform: translateY(0) scale(0.98);
}

.btn-toggle-theme svg {
    transition: transform 0.3s ease, color 0.2s ease;
}

.btn-toggle-theme:hover svg {
    transform: rotate(15deg);
}

/* =========================================================================
   Neuro Diverte - Tema Escuro Terapêutico (Dark Theme)
   Sincronizado estritamente para [data-bs-theme="dark"], [data-theme="dark"],
   .dark e .dark-theme, garantindo WCAG AAA e mitigando double-toggle
   ========================================================================= */
[data-bs-theme="dark"],
[data-theme="dark"],
html.dark,
html.dark-theme,
body.dark,
body.dark-theme {
    /* Cores Primárias e Superfícies Terapêuticas no Dark (Conforme DESIGN.md) */
    --nd-primary: #32bec8;
    --nd-primary-container: #004f54;
    --nd-on-primary: #002022;
    --nd-on-primary-container: #77f5ff;

    /* Secundária (Coral Suave / Afeto e Acolhimento) */
    --nd-secondary: #ffb3b1;
    --nd-secondary-container: #753132;
    --nd-soft-coral: #ee9392;
    --nd-on-secondary-container: #ffdad8;

    /* Terciária e Atenção */
    --nd-tertiary: #75b6cb;
    --nd-tertiary-container: #004757;
    --nd-sky-cyan: #3b8296;
    --nd-butter-yellow: #fde780;
    --nd-mint-green: #256a42;
    --nd-mint-dark: #b2ecc1;

    /* Superfícies e Fundos Terapêuticos Escuros (Sem preto puro; conforto sensorial) */
    --nd-background: #0f1c20;
    --nd-surface: #15272d;
    --nd-surface-container-low: #1a3037;
    --nd-surface-container: #203a42;
    --nd-surface-container-high: #27454f;
    --nd-border-subtle: #253e46;
    --nd-border-input: #2e4d57;

    /* Tipografia e Neutros de Alto Contraste para Dark Mode */
    --nd-text-dark: #e6f6f9;
    --nd-text-muted: #9dc4cd;
    --nd-text-subtle: #82a8b2;

    /* Erro / Alerta */
    --nd-error: #ffb4ab;
    --nd-error-container: #93000a;
    --nd-on-error-container: #ffdad6;

    /* Adaptação de variáveis nativas do Bootstrap */
    --bs-body-bg: #0f1c20;
    --bs-body-color: #e6f6f9;
    --bs-border-color: #253e46;
}

/* Aplicação Global das Superfícies e Textos no Dark Theme */
[data-bs-theme="dark"] body,
[data-theme="dark"] body,
html.dark body,
html.dark-theme body {
    background-color: var(--nd-background) !important;
    color: var(--nd-text-dark) !important;
}

/* Header, Footer e Superfícies Brancas adaptadas para Dark */
[data-bs-theme="dark"] header.navbar.bg-white,
[data-theme="dark"] header.navbar.bg-white,
html.dark header.navbar.bg-white,
html.dark-theme header.navbar.bg-white,
[data-bs-theme="dark"] footer.bg-white,
[data-theme="dark"] footer.bg-white,
html.dark footer.bg-white,
html.dark-theme footer.bg-white {
    background-color: var(--nd-surface) !important;
    border-color: var(--nd-border-subtle) !important;
    color: var(--nd-text-dark) !important;
}

[data-bs-theme="dark"] .bg-white,
[data-theme="dark"] .bg-white,
html.dark .bg-white,
html.dark-theme .bg-white {
    background-color: var(--nd-surface) !important;
    color: var(--nd-text-dark) !important;
}

[data-bs-theme="dark"] .bg-light,
[data-theme="dark"] .bg-light,
html.dark .bg-light,
html.dark-theme .bg-light {
    background-color: var(--nd-surface-container-low) !important;
    color: var(--nd-text-dark) !important;
}

/* Tipografia e Rótulos no Dark Theme */
[data-bs-theme="dark"] .text-dark,
[data-theme="dark"] .text-dark,
html.dark .text-dark,
html.dark-theme .text-dark {
    color: var(--nd-text-dark) !important;
}

[data-bs-theme="dark"] .text-muted,
[data-theme="dark"] .text-muted,
html.dark .text-muted,
html.dark-theme .text-muted,
[data-bs-theme="dark"] .text-secondary,
[data-theme="dark"] .text-secondary,
html.dark .text-secondary,
html.dark-theme .text-secondary {
    color: var(--nd-text-muted) !important;
}

[data-bs-theme="dark"] .form-label,
[data-theme="dark"] .form-label,
html.dark .form-label,
html.dark-theme .form-label,
[data-bs-theme="dark"] label,
[data-theme="dark"] label,
html.dark label,
html.dark-theme label {
    color: var(--nd-text-dark) !important;
}

/* Placeholders no Dark Theme */
[data-bs-theme="dark"] ::placeholder,
[data-theme="dark"] ::placeholder,
html.dark ::placeholder,
html.dark-theme ::placeholder,
[data-bs-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .form-control::placeholder,
html.dark .form-control::placeholder,
html.dark-theme .form-control::placeholder,
[data-bs-theme="dark"] .form-select::placeholder,
[data-theme="dark"] .form-select::placeholder,
html.dark .form-select::placeholder,
html.dark-theme .form-select::placeholder {
    color: var(--nd-text-subtle) !important;
    opacity: 0.85 !important;
}

/* Controles de Formulário (Inputs, Selects, Textareas) no Dark Theme */
[data-bs-theme="dark"] .form-control,
[data-theme="dark"] .form-control,
html.dark .form-control,
html.dark-theme .form-control,
[data-bs-theme="dark"] .form-select,
[data-theme="dark"] .form-select,
html.dark .form-select,
html.dark-theme .form-select {
    background-color: var(--nd-surface-container-low) !important;
    color: var(--nd-text-dark) !important;
    border-color: var(--nd-border-input) !important;
}

[data-bs-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-control:focus,
html.dark .form-control:focus,
html.dark-theme .form-control:focus,
[data-bs-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-select:focus,
html.dark .form-select:focus,
html.dark-theme .form-select:focus {
    border-color: var(--nd-primary) !important;
    box-shadow: 0 0 0 3px rgba(50, 190, 200, 0.25) !important;
    color: var(--nd-text-dark) !important;
}

/* Cards e Painéis no Dark Theme */
[data-bs-theme="dark"] .card,
[data-theme="dark"] .card,
html.dark .card,
html.dark-theme .card,
[data-bs-theme="dark"] .card-therapeutic,
[data-theme="dark"] .card-therapeutic,
html.dark .card-therapeutic,
html.dark-theme .card-therapeutic,
[data-bs-theme="dark"] .card-content-therapeutic,
[data-theme="dark"] .card-content-therapeutic,
html.dark .card-content-therapeutic,
html.dark-theme .card-content-therapeutic {
    background-color: var(--nd-surface) !important;
    border-color: var(--nd-border-subtle) !important;
    color: var(--nd-text-dark) !important;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.35) !important;
}

/* Tabelas no Dark Theme */
[data-bs-theme="dark"] .table,
[data-theme="dark"] .table,
html.dark .table,
html.dark-theme .table {
    color: var(--nd-text-dark) !important;
    border-color: var(--nd-border-subtle) !important;
}

[data-bs-theme="dark"] .table > :not(caption) > * > *,
[data-theme="dark"] .table > :not(caption) > * > *,
html.dark .table > :not(caption) > * > *,
html.dark-theme .table > :not(caption) > * > * {
    background-color: transparent !important;
    color: inherit !important;
    border-bottom-color: var(--nd-border-subtle) !important;
}

[data-bs-theme="dark"] .table-header-therapeutic,
[data-theme="dark"] .table-header-therapeutic,
html.dark .table-header-therapeutic,
html.dark-theme .table-header-therapeutic {
    background-color: var(--nd-surface-container-high) !important;
    border-bottom-color: var(--nd-border-subtle) !important;
    color: var(--nd-primary) !important;
}

[data-bs-theme="dark"] .table-hover > tbody > tr:hover > *,
[data-theme="dark"] .table-hover > tbody > tr:hover > *,
html.dark .table-hover > tbody > tr:hover > *,
html.dark-theme .table-hover > tbody > tr:hover > * {
    background-color: var(--nd-surface-container-low) !important;
}

/* Dropdowns no Dark Theme */
[data-bs-theme="dark"] .dropdown-menu,
[data-theme="dark"] .dropdown-menu,
html.dark .dropdown-menu,
html.dark-theme .dropdown-menu {
    background-color: var(--nd-surface) !important;
    border-color: var(--nd-border-subtle) !important;
    color: var(--nd-text-dark) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

[data-bs-theme="dark"] .dropdown-item,
[data-theme="dark"] .dropdown-item,
html.dark .dropdown-item,
html.dark-theme .dropdown-item {
    color: var(--nd-text-dark) !important;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:hover,
html.dark .dropdown-item:hover,
html.dark-theme .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus,
[data-theme="dark"] .dropdown-item:focus,
html.dark .dropdown-item:focus,
html.dark-theme .dropdown-item:focus {
    background-color: var(--nd-surface-container-high) !important;
    color: var(--nd-primary) !important;
}

[data-bs-theme="dark"] .dropdown-divider,
[data-theme="dark"] .dropdown-divider,
html.dark .dropdown-divider,
html.dark-theme .dropdown-divider {
    border-top-color: var(--nd-border-subtle) !important;
}

/* Modais no Dark Theme */
[data-bs-theme="dark"] .modal-content,
[data-theme="dark"] .modal-content,
html.dark .modal-content,
html.dark-theme .modal-content,
[data-bs-theme="dark"] .modal-content-therapeutic,
[data-theme="dark"] .modal-content-therapeutic,
html.dark .modal-content-therapeutic,
html.dark-theme .modal-content-therapeutic {
    background-color: var(--nd-surface) !important;
    border-color: var(--nd-border-subtle) !important;
    color: var(--nd-text-dark) !important;
    box-shadow: 0 16px 48px -4px rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] .modal-header-therapeutic,
[data-theme="dark"] .modal-header-therapeutic,
html.dark .modal-header-therapeutic,
html.dark-theme .modal-header-therapeutic {
    background: linear-gradient(135deg, var(--nd-surface-container-high) 0%, var(--nd-surface) 100%) !important;
    border-bottom-color: var(--nd-border-subtle) !important;
}

[data-bs-theme="dark"] .modal-footer-therapeutic,
[data-theme="dark"] .modal-footer-therapeutic,
html.dark .modal-footer-therapeutic,
html.dark-theme .modal-footer-therapeutic {
    background-color: var(--nd-surface-container-low) !important;
    border-top-color: var(--nd-border-subtle) !important;
}

/* Segmented Control e Datepicker no Dark Theme */
[data-bs-theme="dark"] .segmented-container,
[data-theme="dark"] .segmented-container,
html.dark .segmented-container,
html.dark-theme .segmented-container {
    background-color: var(--nd-surface-container-low) !important;
    border-color: var(--nd-border-subtle) !important;
}

[data-bs-theme="dark"] .segmented-item,
[data-theme="dark"] .segmented-item,
html.dark .segmented-item,
html.dark-theme .segmented-item {
    color: var(--nd-text-dark) !important;
}

[data-bs-theme="dark"] .segmented-item:hover,
[data-theme="dark"] .segmented-item:hover,
html.dark .segmented-item:hover,
html.dark-theme .segmented-item:hover {
    color: var(--nd-primary) !important;
    background-color: var(--nd-surface-container-high) !important;
}

[data-bs-theme="dark"] .segmented-item.active-date,
[data-theme="dark"] .segmented-item.active-date,
html.dark .segmented-item.active-date,
html.dark-theme .segmented-item.active-date {
    background-color: var(--nd-surface-container-high) !important;
    color: var(--nd-primary) !important;
    border-color: var(--nd-primary) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

[data-bs-theme="dark"] .segmented-item.active-pendente,
[data-theme="dark"] .segmented-item.active-pendente,
html.dark .segmented-item.active-pendente,
html.dark-theme .segmented-item.active-pendente {
    background-color: #d39e00 !important;
    color: #000000 !important;
    box-shadow: 0 2px 6px rgba(211, 158, 0, 0.4) !important;
    border-color: rgba(255, 193, 7, 0.4) !important;
}

/* Segmented Control de Pacientes no Dark Theme */
[data-bs-theme="dark"] .segmented-pacientes-container,
[data-theme="dark"] .segmented-pacientes-container,
html.dark .segmented-pacientes-container,
html.dark-theme .segmented-pacientes-container {
    background-color: #15272d !important;
    border-color: #233b43 !important;
}

[data-bs-theme="dark"] .segmented-pacientes-item,
[data-theme="dark"] .segmented-pacientes-item,
html.dark .segmented-pacientes-item,
html.dark-theme .segmented-pacientes-item {
    color: #92b0b8 !important;
}

[data-bs-theme="dark"] .segmented-pacientes-item:hover,
[data-theme="dark"] .segmented-pacientes-item:hover,
html.dark .segmented-pacientes-item:hover,
html.dark-theme .segmented-pacientes-item:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .segmented-pacientes-item.active-ativos {
    background-color: #008189 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .segmented-pacientes-item.active-inativos {
    background-color: #3b4e52 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .segmented-pacientes-item:not(.active-ativos):not(.active-inativos) .segmented-pacientes-badge {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: #cadfe4 !important;
}

[data-bs-theme="dark"] .input-date-therapeutic,
[data-theme="dark"] .input-date-therapeutic,
html.dark .input-date-therapeutic,
html.dark-theme .input-date-therapeutic {
    background-color: var(--nd-surface-container-low) !important;
    color: var(--nd-text-dark) !important;
    border-color: var(--nd-border-input) !important;
}

/* Botões Secundários e de Ação no Dark Theme */
[data-bs-theme="dark"] .btn-secondary-therapeutic,
[data-theme="dark"] .btn-secondary-therapeutic,
html.dark .btn-secondary-therapeutic,
html.dark-theme .btn-secondary-therapeutic {
    background-color: var(--nd-surface-container-low) !important;
    color: var(--nd-primary) !important;
    border-color: var(--nd-border-input) !important;
}

[data-bs-theme="dark"] .btn-secondary-therapeutic:hover,
[data-theme="dark"] .btn-secondary-therapeutic:hover,
html.dark .btn-secondary-therapeutic:hover,
html.dark-theme .btn-secondary-therapeutic:hover {
    background-color: var(--nd-surface-container-high) !important;
    border-color: var(--nd-primary) !important;
}

[data-bs-theme="dark"] .btn-outline-secondary,
[data-theme="dark"] .btn-outline-secondary,
html.dark .btn-outline-secondary,
html.dark-theme .btn-outline-secondary {
    background-color: var(--nd-surface-container-low) !important;
    color: var(--nd-text-dark) !important;
    border-color: var(--nd-border-input) !important;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover,
[data-theme="dark"] .btn-outline-secondary:hover,
html.dark .btn-outline-secondary:hover,
html.dark-theme .btn-outline-secondary:hover {
    background-color: var(--nd-surface-container-high) !important;
    color: var(--nd-primary) !important;
    border-color: var(--nd-primary) !important;
}

/* Botão Toggle Theme no Dark Mode */
[data-bs-theme="dark"] .btn-toggle-theme,
[data-theme="dark"] .btn-toggle-theme,
html.dark .btn-toggle-theme,
html.dark-theme .btn-toggle-theme {
    background-color: var(--nd-surface-container-low) !important;
    color: #fde780 !important;
    border-color: var(--nd-border-input) !important;
}

[data-bs-theme="dark"] .btn-toggle-theme:hover,
[data-theme="dark"] .btn-toggle-theme:hover,
html.dark .btn-toggle-theme:hover,
html.dark-theme .btn-toggle-theme:hover {
    background-color: var(--nd-surface-container-high) !important;
    border-color: #fde780 !important;
    box-shadow: 0 0 12px rgba(253, 231, 128, 0.25) !important;
}

/* Nav Pills no Dark Theme */
[data-bs-theme="dark"] .nav-pills .nav-link,
[data-theme="dark"] .nav-pills .nav-link,
html.dark .nav-pills .nav-link,
html.dark-theme .nav-pills .nav-link {
    background-color: var(--nd-surface-container-low) !important;
    border-color: var(--nd-border-input) !important;
    color: var(--nd-text-dark) !important;
}

[data-bs-theme="dark"] .nav-pills .nav-link:hover,
[data-theme="dark"] .nav-pills .nav-link:hover,
html.dark .nav-pills .nav-link:hover,
html.dark-theme .nav-pills .nav-link:hover {
    background-color: var(--nd-surface-container-high) !important;
    color: var(--nd-primary) !important;
}

[data-bs-theme="dark"] .nav-pills .nav-link.active,
[data-theme="dark"] .nav-pills .nav-link.active,
html.dark .nav-pills .nav-link.active,
html.dark-theme .nav-pills .nav-link.active {
    background-color: var(--nd-primary) !important;
    color: var(--nd-on-primary) !important;
    border-color: var(--nd-primary) !important;
}

/* Blocos de Ações e Reabertura no Dark Theme */
[data-bs-theme="dark"] .btn-pill-reabrir,
[data-theme="dark"] .btn-pill-reabrir,
html.dark .btn-pill-reabrir,
html.dark-theme .btn-pill-reabrir,
[data-bs-theme="dark"] .btn-pill-reagendar,
[data-theme="dark"] .btn-pill-reagendar,
html.dark .btn-pill-reagendar,
html.dark-theme .btn-pill-reagendar {
    background-color: var(--nd-surface-container-low) !important;
    color: var(--nd-text-dark) !important;
    border-color: var(--nd-border-input) !important;
}

[data-bs-theme="dark"] .btn-pill-reabrir:hover,
[data-theme="dark"] .btn-pill-reabrir:hover,
html.dark .btn-pill-reabrir:hover,
html.dark-theme .btn-pill-reabrir:hover,
[data-bs-theme="dark"] .btn-pill-reagendar:hover,
[data-theme="dark"] .btn-pill-reagendar:hover,
html.dark .btn-pill-reagendar:hover,
html.dark-theme .btn-pill-reagendar:hover {
    background-color: var(--nd-surface-container-high) !important;
    color: var(--nd-primary) !important;
}

/* Bloco Sensorial no Dark Theme */
[data-bs-theme="dark"] .bloco-sensorial-container,
[data-theme="dark"] .bloco-sensorial-container,
html.dark .bloco-sensorial-container,
html.dark-theme .bloco-sensorial-container {
    background: linear-gradient(135deg, var(--nd-surface-container-high) 0%, var(--nd-surface-container-low) 100%) !important;
    border-color: var(--nd-border-subtle) !important;
}

/* Card de Login no Dark Theme */
[data-bs-theme="dark"] .login-card,
[data-theme="dark"] .login-card,
html.dark .login-card,
html.dark-theme .login-card {
    background-color: rgba(21, 39, 45, 0.95) !important;
    border-color: var(--nd-border-subtle) !important;
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.6) !important;
}

/* =========================================================================
   Seletor de Horários e Chips de Duração da Agenda
   ========================================================================= */
.btn-slot-horario {
    min-width: 58px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--nd-radius-md);
    transition: all 0.15s ease;
}
.btn-slot-horario:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 105, 111, 0.2);
}
.btn-slot-horario.btn-slot-ocupado,
.btn-slot-horario:disabled {
    background-color: #f1f3f5 !important;
    color: #8c98a4 !important;
    border-color: #dee2e6 !important;
    text-decoration: line-through !important;
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-duracao {
    border: 1px solid var(--nd-border-input);
    background-color: var(--nd-surface, #fff);
    color: var(--nd-text-dark, #333);
    font-size: 0.72rem;
    font-weight: 500;
    transition: all 0.15s ease;
}
.btn-duracao:hover {
    border-color: var(--nd-primary);
    color: var(--nd-primary);
}
.btn-duracao.active {
    background-color: var(--nd-primary) !important;
    border-color: var(--nd-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 105, 111, 0.25);
}

[data-bs-theme="dark"] .btn-duracao,
[data-theme="dark"] .btn-duracao,
html.dark .btn-duracao,
html.dark-theme .btn-duracao {
    background-color: var(--nd-surface-container-low) !important;
    color: var(--nd-text-light) !important;
    border-color: var(--nd-border-input) !important;
}
[data-bs-theme="dark"] .btn-duracao.active,
[data-theme="dark"] .btn-duracao.active,
html.dark .btn-duracao.active,
html.dark-theme .btn-duracao.active {
    background-color: var(--nd-primary) !important;
    color: #ffffff !important;
}

/* =========================================================================
   Área de Upload e Dropzone Clínica (Drag & Drop + Botão Centralizado)
   ========================================================================= */
.dropzone-clinica {
    border: 2px dashed var(--nd-primary, #00696f) !important;
    background-color: #f7fcfe !important;
    border-radius: 1.25rem !important;
    padding: 2.75rem 1.5rem !important;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    position: relative;
}

.dropzone-clinica:hover {
    background-color: #eef8fc !important;
    border-color: #004f54 !important;
}

.dropzone-clinica.is-dragover {
    background-color: #e0f4fa !important;
    border-color: var(--nd-primary, #00696f) !important;
    border-style: solid !important;
    transform: scale(1.012);
    box-shadow: 0 12px 28px rgba(0, 105, 111, 0.16) !important;
}

.dropzone-clinica-compacta {
    border: 2px dashed #75b6cb !important;
    background-color: #f7fcfe !important;
    border-radius: 1rem !important;
    padding: 1rem 1.25rem !important;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.dropzone-clinica-compacta:hover {
    background-color: #eef8fc !important;
    border-color: var(--nd-primary, #00696f) !important;
}

.dropzone-clinica-compacta.is-dragover {
    background-color: #e0f4fa !important;
    border-color: var(--nd-primary, #00696f) !important;
    border-style: solid !important;
    box-shadow: 0 6px 18px rgba(0, 105, 111, 0.12) !important;
}

/* =========================================================================
   Adaptação dos Componentes do Prontuário e Acolhimento no Dark Theme
   ========================================================================= */

/* Banner de Alerta Temporário no Dark Theme */
[data-bs-theme="dark"] .alerta-clinico-banner.alerta-ativo,
[data-theme="dark"] .alerta-clinico-banner.alerta-ativo,
html.dark .alerta-clinico-banner.alerta-ativo,
html.dark-theme .alerta-clinico-banner.alerta-ativo {
    background-color: rgba(245, 159, 0, 0.16) !important;
    border: 1px solid rgba(245, 159, 0, 0.45) !important;
}

[data-bs-theme="dark"] .alerta-clinico-banner.alerta-ativo .alerta-banner-icon,
[data-theme="dark"] .alerta-clinico-banner.alerta-ativo .alerta-banner-icon,
html.dark .alerta-clinico-banner.alerta-ativo .alerta-banner-icon,
html.dark-theme .alerta-clinico-banner.alerta-ativo .alerta-banner-icon {
    fill: #fde780 !important;
}

[data-bs-theme="dark"] .alerta-clinico-banner.alerta-ativo .alerta-banner-title,
[data-theme="dark"] .alerta-clinico-banner.alerta-ativo .alerta-banner-title,
html.dark .alerta-clinico-banner.alerta-ativo .alerta-banner-title,
html.dark-theme .alerta-clinico-banner.alerta-ativo .alerta-banner-title {
    color: #fde780 !important;
}

[data-bs-theme="dark"] .alerta-clinico-banner.alerta-ativo .alerta-banner-text,
[data-theme="dark"] .alerta-clinico-banner.alerta-ativo .alerta-banner-text,
html.dark .alerta-clinico-banner.alerta-ativo .alerta-banner-text,
html.dark-theme .alerta-clinico-banner.alerta-ativo .alerta-banner-text {
    color: #fff9db !important;
}

[data-bs-theme="dark"] .alerta-clinico-banner.alerta-inativo,
[data-theme="dark"] .alerta-clinico-banner.alerta-inativo,
html.dark .alerta-clinico-banner.alerta-inativo,
html.dark-theme .alerta-clinico-banner.alerta-inativo {
    background-color: var(--nd-surface-container-low) !important;
    border: 1px solid var(--nd-border-subtle) !important;
}

[data-bs-theme="dark"] .alerta-clinico-banner.alerta-inativo .alerta-banner-icon,
[data-theme="dark"] .alerta-clinico-banner.alerta-inativo .alerta-banner-icon,
html.dark .alerta-clinico-banner.alerta-inativo .alerta-banner-icon,
html.dark-theme .alerta-clinico-banner.alerta-inativo .alerta-banner-icon {
    fill: var(--nd-text-muted) !important;
}

[data-bs-theme="dark"] .alerta-clinico-banner.alerta-inativo .alerta-banner-title,
[data-theme="dark"] .alerta-clinico-banner.alerta-inativo .alerta-banner-title,
html.dark .alerta-clinico-banner.alerta-inativo .alerta-banner-title,
html.dark-theme .alerta-clinico-banner.alerta-inativo .alerta-banner-title {
    color: var(--nd-text-dark) !important;
}

[data-bs-theme="dark"] .alerta-clinico-banner.alerta-inativo .alerta-banner-text,
[data-theme="dark"] .alerta-clinico-banner.alerta-inativo .alerta-banner-text,
html.dark .alerta-clinico-banner.alerta-inativo .alerta-banner-text,
html.dark-theme .alerta-clinico-banner.alerta-inativo .alerta-banner-text {
    color: var(--nd-text-muted) !important;
}

/* Cards do Guia Rápido no Dark Theme */
[data-bs-theme="dark"] .card-guia-gatilhos,
[data-theme="dark"] .card-guia-gatilhos,
html.dark .card-guia-gatilhos,
html.dark-theme .card-guia-gatilhos {
    background-color: rgba(186, 26, 26, 0.18) !important;
    border: 1px solid rgba(255, 180, 171, 0.22) !important;
    border-left: 6px solid #ff897d !important;
}
[data-bs-theme="dark"] .card-guia-gatilhos .card-guia-title,
[data-theme="dark"] .card-guia-gatilhos .card-guia-title,
html.dark .card-guia-gatilhos .card-guia-title,
html.dark-theme .card-guia-gatilhos .card-guia-title,
[data-bs-theme="dark"] .card-guia-gatilhos .card-guia-btn,
[data-theme="dark"] .card-guia-gatilhos .card-guia-btn,
html.dark .card-guia-gatilhos .card-guia-btn,
html.dark-theme .card-guia-gatilhos .card-guia-btn {
    color: #ffb4ab !important;
}
[data-bs-theme="dark"] .card-guia-gatilhos .card-guia-text,
[data-theme="dark"] .card-guia-gatilhos .card-guia-text,
html.dark .card-guia-gatilhos .card-guia-text,
html.dark-theme .card-guia-gatilhos .card-guia-text {
    color: #ffdad6 !important;
}

[data-bs-theme="dark"] .card-guia-hiperfocos,
[data-theme="dark"] .card-guia-hiperfocos,
html.dark .card-guia-hiperfocos,
html.dark-theme .card-guia-hiperfocos {
    background-color: rgba(29, 102, 122, 0.22) !important;
    border: 1px solid rgba(117, 182, 203, 0.25) !important;
    border-left: 6px solid #32bec8 !important;
}
[data-bs-theme="dark"] .card-guia-hiperfocos .card-guia-title,
[data-theme="dark"] .card-guia-hiperfocos .card-guia-title,
html.dark .card-guia-hiperfocos .card-guia-title,
html.dark-theme .card-guia-hiperfocos .card-guia-title,
[data-bs-theme="dark"] .card-guia-hiperfocos .card-guia-btn,
[data-theme="dark"] .card-guia-hiperfocos .card-guia-btn,
html.dark .card-guia-hiperfocos .card-guia-btn,
html.dark-theme .card-guia-hiperfocos .card-guia-btn {
    color: #77f5ff !important;
}
[data-bs-theme="dark"] .card-guia-hiperfocos .card-guia-text,
[data-theme="dark"] .card-guia-hiperfocos .card-guia-text,
html.dark .card-guia-hiperfocos .card-guia-text,
html.dark-theme .card-guia-hiperfocos .card-guia-text {
    color: #e6f6f9 !important;
}

[data-bs-theme="dark"] .card-guia-acolhimento,
[data-theme="dark"] .card-guia-acolhimento,
html.dark .card-guia-acolhimento,
html.dark-theme .card-guia-acolhimento {
    background-color: rgba(40, 167, 69, 0.18) !important;
    border: 1px solid rgba(178, 236, 193, 0.22) !important;
    border-left: 6px solid #28a745 !important;
}
[data-bs-theme="dark"] .card-guia-acolhimento .card-guia-title,
[data-theme="dark"] .card-guia-acolhimento .card-guia-title,
html.dark .card-guia-acolhimento .card-guia-title,
html.dark-theme .card-guia-acolhimento .card-guia-title,
[data-bs-theme="dark"] .card-guia-acolhimento .card-guia-btn,
[data-theme="dark"] .card-guia-acolhimento .card-guia-btn,
html.dark .card-guia-acolhimento .card-guia-btn,
html.dark-theme .card-guia-acolhimento .card-guia-btn {
    color: #b2ecc1 !important;
}
[data-bs-theme="dark"] .card-guia-acolhimento .card-guia-text,
[data-theme="dark"] .card-guia-acolhimento .card-guia-text,
html.dark .card-guia-acolhimento .card-guia-text,
html.dark-theme .card-guia-acolhimento .card-guia-text {
    color: #e6f6f9 !important;
}

/* Blocos de Notas Sigilosas no Dark Theme */
[data-bs-theme="dark"] .bloco-nota-sigilosa,
[data-theme="dark"] .bloco-nota-sigilosa,
html.dark .bloco-nota-sigilosa,
html.dark-theme .bloco-nota-sigilosa {
    background-color: rgba(245, 159, 0, 0.14) !important;
    border: 1.5px dashed rgba(245, 159, 0, 0.5) !important;
}
[data-bs-theme="dark"] .bloco-nota-sigilosa .bloco-sigiloso-title,
[data-theme="dark"] .bloco-nota-sigilosa .bloco-sigiloso-title,
html.dark .bloco-nota-sigilosa .bloco-sigiloso-title,
html.dark-theme .bloco-nota-sigilosa .bloco-sigiloso-title {
    color: #fde780 !important;
}
[data-bs-theme="dark"] .bloco-nota-sigilosa .bloco-sigiloso-text,
[data-theme="dark"] .bloco-nota-sigilosa .bloco-sigiloso-text,
html.dark .bloco-nota-sigilosa .bloco-sigiloso-text,
html.dark-theme .bloco-nota-sigilosa .bloco-sigiloso-text {
    color: #e6f6f9 !important;
}

/* Badge de Alerta Temporário no Dark Theme */
[data-bs-theme="dark"] .badge-alerta-temporario,
[data-theme="dark"] .badge-alerta-temporario,
html.dark .badge-alerta-temporario,
html.dark-theme .badge-alerta-temporario {
    background-color: rgba(245, 159, 0, 0.18) !important;
    color: #fde780 !important;
    border: 1px solid rgba(245, 159, 0, 0.45) !important;
}

/* Dropzone Clínica no Dark Theme */
[data-bs-theme="dark"] .dropzone-clinica,
[data-theme="dark"] .dropzone-clinica,
html.dark .dropzone-clinica,
html.dark-theme .dropzone-clinica {
    background-color: var(--nd-surface-container-low) !important;
    border-color: var(--nd-primary) !important;
    color: var(--nd-text-dark) !important;
}

[data-bs-theme="dark"] .dropzone-clinica:hover,
[data-theme="dark"] .dropzone-clinica:hover,
html.dark .dropzone-clinica:hover,
html.dark-theme .dropzone-clinica:hover {
    background-color: var(--nd-surface-container) !important;
    border-color: var(--nd-primary) !important;
}

[data-bs-theme="dark"] .dropzone-clinica-compacta,
[data-theme="dark"] .dropzone-clinica-compacta,
html.dark .dropzone-clinica-compacta,
html.dark-theme .dropzone-clinica-compacta {
    background-color: var(--nd-surface-container-low) !important;
    border-color: var(--nd-tertiary) !important;
    color: var(--nd-text-dark) !important;
}

/* =========================================================================
   COMPACTAÇÃO EXCLUSIVA DE AGENDAMENTOS PARA MOBILE (< 768px)
   ========================================================================= */
@media (min-width: 768px) {
    /* No Desktop e Tablet: a visão encurtada é totalmente oculta e os detalhes ficam sempre visíveis */
    .card-agenda-mobile-resumo {
        display: none !important;
    }
    .card-agenda-detalhes-completo {
        display: block !important;
    }
}

@media (max-width: 767.98px) {
    /* No Mobile: por padrão, o card fica encurtado e os detalhes completos ficam ocultos */
    .card-agenda-item:not(.is-mobile-expanded) .card-agenda-mobile-resumo {
        display: block !important;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .card-agenda-item:not(.is-mobile-expanded) .card-agenda-detalhes-completo {
        display: none !important;
    }

    /* Quando expandido no Mobile: esconde o resumo e exibe os detalhes completos com animação */
    .card-agenda-item.is-mobile-expanded .card-agenda-mobile-resumo {
        display: none !important;
    }

    .card-agenda-item.is-mobile-expanded .card-agenda-detalhes-completo {
        display: block !important;
        animation: ndFadeInMobile 0.22s ease-out;
    }

    .card-agenda-mobile-resumo:active {
        opacity: 0.88;
    }

    .btn-toggle-card-mobile {
        transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    }

    .card-agenda-mobile-resumo:hover .btn-toggle-card-mobile {
        background-color: var(--nd-primary) !important;
        color: #ffffff !important;
    }
}

@keyframes ndFadeInMobile {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   VERSÃO 3.2: FLUIDEZ OPERACIONAL, PRIVACIDADE FINANCEIRA E ACOLHIMENTO
   ========================================================================== */

/* 1. Modo Privacidade Financeira ("Olho Mágico") */
body.privacy-mode .valor-monetario,
html.privacy-mode .valor-monetario {
    filter: blur(6px);
    user-select: none;
    transition: filter 0.2s ease-in-out;
    cursor: pointer;
}

body.privacy-mode .valor-monetario:hover,
html.privacy-mode .valor-monetario:hover {
    filter: blur(0);
}

.btn-toggle-privacy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--nd-radius-pill);
    background-color: var(--nd-surface-container-low);
    border: 1px solid var(--nd-border-subtle);
    color: var(--nd-text-dark);
    cursor: pointer;
    font-size: 1.15rem;
    padding: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-toggle-privacy:hover {
    background-color: var(--nd-surface-container-high);
    border-color: var(--nd-primary);
    transform: scale(1.05);
}

.btn-toggle-privacy:active {
    transform: scale(0.95);
}

body.privacy-mode .btn-toggle-privacy,
html.privacy-mode .btn-toggle-privacy {
    background-color: var(--nd-primary-container) !important;
    color: #ffffff !important;
    border-color: var(--nd-primary) !important;
}

/* 2. Chip / Botão de Acolhimento Clínico Imediato na Agenda (Área >= 48px) */
.btn-chip-acolhimento {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 48px;
    padding: 0.4rem 0.85rem;
    border-radius: var(--nd-radius-pill);
    background-color: var(--nd-surface-container-low);
    border: 1px solid var(--nd-border-subtle);
    color: var(--nd-primary);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-chip-acolhimento:hover {
    background-color: var(--nd-primary-container);
    color: #ffffff;
    border-color: var(--nd-primary);
    box-shadow: 0 2px 8px rgba(0, 105, 111, 0.2);
}

.btn-chip-acolhimento-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    width: 48px;
    height: 48px;
    border-radius: var(--nd-radius-pill);
    background-color: var(--nd-surface-container-low);
    border: 1px solid var(--nd-border-subtle);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-chip-acolhimento-mobile:hover {
    background-color: var(--nd-surface-container-high);
    border-color: var(--nd-primary);
}

/* 3. Seções Acolhedoras do Modal de Acolhimento */
.acolhimento-card-item {
    border-radius: var(--nd-radius-md);
    padding: 0.85rem 1rem;
    border: 1px solid var(--nd-border-subtle);
    background-color: var(--nd-surface-container-low);
    margin-bottom: 0.75rem;
}

.acolhimento-card-item.gatilhos {
    border-left: 5px solid #ef4444;
}

.acolhimento-card-item.hiperfocos {
    border-left: 5px solid #f59e0b;
}

.acolhimento-card-item.condutas {
    border-left: 5px solid #10b981;
}

/* 4. Micro-Badges de Mensalidade na Agenda Diária */
.badge-mensalidade-agenda {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: var(--nd-radius-pill);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: default;
    transition: transform 0.15s ease;
}

.badge-mensalidade-paga {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.badge-mensalidade-pendente {
    background-color: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
    cursor: pointer !important;
}

.badge-mensalidade-pendente:hover {
    background-color: #fde68a;
    transform: scale(1.04);
}

.badge-mensalidade-sem-atendimento {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

/* 5. Touch Canvas de Assinatura / Rubrica */
.touch-canvas-wrapper {
    position: relative;
    border: 2px dashed var(--nd-primary);
    border-radius: var(--nd-radius-lg);
    background-color: #ffffff;
    overflow: hidden;
    touch-action: none;
}

.touch-canvas-wrapper canvas {
    display: block;
    width: 100%;
    touch-action: none;
    cursor: crosshair;
}

.touch-canvas-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    user-select: none;
}

/* =========================================================================
   6. Neuro Diverte 4.0: Menos Sistema. Mais Rotina (UX & Ergonomia)
   ========================================================================= */

/* 6.1. Bottom Navigation Mobile (< 768px) */
.bottom-nav-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1045;
    background-color: var(--nd-surface);
    border-top: 1px solid var(--nd-border-subtle);
    display: none;
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.07);
    justify-content: space-around;
    align-items: center;
}

@media (max-width: 767.98px) {
    .bottom-nav-mobile {
        display: flex !important;
    }
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    min-height: 48px;
    text-decoration: none;
    color: var(--nd-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    gap: 3px;
    padding: 4px 2px;
    transition: color 0.15s ease, transform 0.1s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus {
    color: var(--nd-primary);
    text-decoration: none;
}

.bottom-nav-item.active {
    color: var(--nd-primary);
    font-weight: 700;
}

.bottom-nav-item.active .bottom-nav-icon {
    background-color: var(--nd-surface-container-low);
    color: var(--nd-primary);
    border-radius: var(--nd-radius-pill);
}

.bottom-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 26px;
    font-size: 1.15rem;
    line-height: 1;
    transition: all 0.15s ease;
}

/* Botão de Destaque central '+' no Bottom Nav */
.bottom-nav-cta {
    color: #ffffff !important;
}

.bottom-nav-cta .bottom-nav-icon {
    background: linear-gradient(135deg, var(--nd-primary), var(--nd-tertiary));
    color: #ffffff;
    width: 42px;
    height: 34px;
    border-radius: var(--nd-radius-pill);
    box-shadow: 0 2px 8px rgba(0, 105, 111, 0.35);
}

/* 6.3. Central de Pendências Operacionais */
.card-central-pendencias {
    border: 1px solid var(--nd-border-subtle);
    border-left: 5px solid #f59e0b !important;
    background-color: var(--nd-surface-container-low);
    border-radius: var(--nd-radius-lg);
    transition: all 0.2s ease;
}

.card-central-pendencias-item {
    background: #ffffff;
    border-radius: var(--nd-radius-md);
    padding: 8px 12px;
    border: 1px solid var(--nd-border-subtle);
}

/* 6.4. Botões de Ação Única nos Cards da Agenda (UX 4.0) */
.btn-cta-agenda {
    min-height: 48px;
    border-radius: var(--nd-radius-pill);
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.btn-cta-agenda:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.btn-cta-finalizar {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff !important;
    border: none;
}

.btn-cta-finalizar:hover {
    background: linear-gradient(135deg, #059669, #047857);
    color: #ffffff !important;
}

.btn-cta-evoluir {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff !important;
    border: none;
}

.btn-cta-evoluir:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff !important;
}

.btn-cta-abrir {
    background-color: var(--nd-surface);
    color: var(--nd-primary) !important;
    border: 1.5px solid var(--nd-primary);
}

.btn-cta-abrir:hover {
    background-color: var(--nd-primary);
    color: #ffffff !important;
}

.btn-secundaria-dropdown {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--nd-radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--nd-surface-container-low);
    color: var(--nd-text-muted);
    border: 1px solid var(--nd-border-subtle);
    transition: all 0.15s ease;
}

.btn-secundaria-dropdown:hover,
.btn-secundaria-dropdown:focus {
    background-color: var(--nd-surface-container);
    color: var(--nd-primary);
}


