/* Tema visual das telas de usuario (nao afeta admin) */

body.user-theme {
    --user-primary: #0b2f63;
    --user-primary-2: #1d4f9b;
    --user-accent: #0891b2;
    --user-bg: #f2f5fb;
    --user-surface: #ffffff;
    --user-line: #d6deea;
    --user-text: #0f172a;
    --user-muted: #475569;
    color: var(--user-text);
    background:
        radial-gradient(900px 380px at -10% -15%, rgba(29, 79, 155, 0.14), transparent 64%),
        radial-gradient(760px 340px at 110% -20%, rgba(8, 145, 178, 0.1), transparent 60%),
        var(--user-bg);
}

body.user-theme .card {
    border-color: var(--user-line);
    border-radius: 0.9rem;
    background: var(--user-surface);
}

body.user-theme .card.shadow-sm,
body.user-theme .shadow-sm {
    box-shadow: 0 10px 24px rgba(11, 47, 99, 0.08) !important;
}

body.user-theme .card-header-custom {
    border-bottom-color: var(--user-line);
}

body.user-theme .card-title,
body.user-theme .section-title,
body.user-theme .form-section h4 {
    color: var(--user-primary);
}

body.user-theme .text-muted,
body.user-theme small,
body.user-theme .form-text {
    color: var(--user-muted) !important;
}

body.user-theme .btn-back {
    color: var(--user-primary);
}

body.user-theme .btn-back:hover {
    color: var(--user-primary-2);
}

body.user-theme .btn-primary {
    background: linear-gradient(135deg, var(--user-primary) 0%, var(--user-primary-2) 100%);
    border-color: var(--user-primary-2);
}

body.user-theme .btn-primary:hover,
body.user-theme .btn-primary:focus {
    background: linear-gradient(135deg, #0a2854 0%, #1a478c 100%);
    border-color: #1a478c;
}

body.user-theme .btn-outline-primary {
    color: var(--user-primary-2);
    border-color: #9fb8de;
}

body.user-theme .btn-outline-primary:hover,
body.user-theme .btn-outline-primary:focus {
    background-color: #eef4ff;
    color: var(--user-primary);
    border-color: var(--user-primary-2);
}

body.user-theme .btn-secondary {
    border-color: #6f7f95;
}

body.user-theme .text-primary,
body.user-theme .button-card .bi {
    color: var(--user-primary-2) !important;
}

body.user-theme .spinner-border.text-primary {
    color: var(--user-primary-2) !important;
}

body.user-theme .button-card {
    border-color: var(--user-line);
}

body.user-theme .button-card:hover {
    box-shadow: 0 12px 24px rgba(11, 47, 99, 0.12);
    border-color: #b7c9e6;
}

body.user-theme .button-card h5 {
    color: #143765;
}

body.user-theme .logout-btn {
    color: var(--user-primary);
    border-color: #8aa5cf;
}

body.user-theme .logout-btn:hover {
    background: var(--user-primary);
    border-color: var(--user-primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(11, 47, 99, 0.24);
}

body.user-theme .logout-btn:hover i,
body.user-theme .logout-btn:focus i,
body.user-theme .logout-btn:focus-visible i {
    color: inherit;
}

body.user-theme .logout-btn:focus,
body.user-theme .logout-btn:focus-visible {
    color: #fff;
    background: var(--user-primary);
    border-color: var(--user-primary);
}

body.user-theme .form-control:focus,
body.user-theme .form-select:focus {
    border-color: #8fb2e2;
    box-shadow: 0 0 0 0.2rem rgba(29, 79, 155, 0.16);
}

body.user-theme .nav-tabs .nav-link {
    color: #5f6f87;
}

body.user-theme .nav-tabs .nav-link.active {
    color: var(--user-primary-2);
    border-bottom-color: var(--user-primary-2);
}

body.user-theme .ui-tabs {
    background: #eff4fc;
    border-color: #dbe6f6;
}

body.user-theme .ui-tabs .nav-link {
    color: var(--user-primary-2);
}

body.user-theme .ui-tabs .nav-link.active,
body.user-theme .ui-tabs .show > .nav-link {
    color: #fff !important;
    background: linear-gradient(135deg, var(--user-primary) 0%, var(--user-primary-2) 100%);
    box-shadow: 0 8px 18px rgba(11, 47, 99, 0.24);
}

body.user-theme .associar-interno-page .nav-pills .nav-link {
    color: var(--user-primary-2);
    background: #eef3fb;
    border-color: #d4e1f5;
}

body.user-theme .associar-interno-page .nav-pills .nav-link.active,
body.user-theme .associar-interno-page .nav-pills .show > .nav-link {
    color: #fff !important;
    background: linear-gradient(135deg, var(--user-primary) 0%, var(--user-primary-2) 100%);
    border-color: var(--user-primary-2);
    box-shadow: 0 8px 18px rgba(11, 47, 99, 0.24);
}

body.user-theme .social-info-compact {
    background: #edf6ff;
    border-color: #c9dff7;
    color: #13375f;
}

body.user-theme .social-info-compact i {
    color: var(--user-primary-2) !important;
}

body.user-theme .alert-info {
    color: #12365f;
    background-color: #ebf4ff;
    border-color: #cfe1f8;
}

/* Padronizacao visual do wizard de visita social */
body.user-theme .step::after {
    background: #d9e4f6;
}

body.user-theme .step-number {
    background: #e8eef8;
    color: #60708a;
}

body.user-theme .step.active .step-number {
    background: linear-gradient(135deg, var(--user-primary) 0%, var(--user-primary-2) 100%);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(29, 79, 155, 0.2);
}

body.user-theme .step.active .step-label {
    color: var(--user-primary);
}

body.user-theme .calendar-nav-btn {
    color: var(--user-primary-2);
}

body.user-theme .calendar-nav-btn:hover {
    color: var(--user-primary);
}

body.user-theme .calendar-day.selected {
    border-color: var(--user-primary-2);
    box-shadow: 0 0 0 2px rgba(29, 79, 155, 0.34);
    background-color: #e9f1ff;
}

body.user-theme .pessoa-card:hover,
body.user-theme .pessoa-card.selected {
    border-color: var(--user-primary-2);
    background: #eef4ff;
}

body.user-theme .social-modal-alert .modal-card {
    border-left-color: var(--user-primary-2);
}

/* ─── Sub-filtros da página de Notificações ──────────────────────────────────
   Estilo segmentado leve: sem cápsula, apenas underline no item ativo.
   Faz contraste visual com as abas principais (ui-tabs com fundo pill).
─────────────────────────────────────────────────────────────────────────── */
body.user-theme .notif-subfilter {
    gap: 0;
    border: none;
    background: transparent;
    padding: 0;
    border-bottom: 1px solid var(--user-line);
    border-radius: 0;
    flex-wrap: nowrap;
    justify-content: center;
}

body.user-theme .notif-subfilter .nav-item {
    display: flex;
    align-items: stretch;
}

body.user-theme .notif-subfilter .nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--user-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.35rem 0.85rem;
    margin-bottom: -1px;  /* alinha com a borda do container */
    transition: color 0.18s ease, border-color 0.18s ease;
    box-shadow: none !important;
}

body.user-theme .notif-subfilter .nav-link:hover {
    color: var(--user-primary-2);
    background: transparent;
    border-bottom-color: rgba(29, 79, 155, 0.3);
}

body.user-theme .notif-subfilter .nav-link.active,
body.user-theme .notif-subfilter .show > .nav-link {
    color: var(--user-primary) !important;
    background: transparent !important;
    border-bottom: 2px solid var(--user-primary-2) !important;
    box-shadow: none !important;
    font-weight: 600;
}

/* Botões de escolha de tipo no 1º passo do modal Nova Solicitação */
body.user-theme .visit-type-btn {
    border: 2px solid var(--user-line);
    border-radius: 1rem;
    background: #fff;
    color: var(--user-primary);
    transition: all 0.2s ease;
    padding: 1.1rem 0.75rem;
}

body.user-theme .visit-type-btn:hover:not(:disabled) {
    border-color: var(--user-primary-2);
    background: #eef4ff;
    box-shadow: 0 6px 16px rgba(11, 47, 99, 0.12);
    transform: translateY(-2px);
}

body.user-theme .visit-type-btn.selected {
    border-color: var(--user-primary-2);
    background: linear-gradient(135deg, #e8f0ff 0%, #dceeff 100%);
    box-shadow: 0 0 0 3px rgba(29, 79, 155, 0.18);
}

body.user-theme .visit-type-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

body.user-theme .visit-type-btn .vt-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--user-primary-2);
}

body.user-theme .visit-type-btn .vt-label {
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
    color: var(--user-primary);
}

body.user-theme .visit-type-btn .vt-quota {
    font-size: 0.75rem;
    display: block;
    margin-top: 0.3rem;
    color: var(--user-muted);
}

body.user-theme .visit-type-btn .vt-quota.quota-esgotada {
    color: #dc3545;
    font-weight: 600;
}
