/* Fonte padrão */
body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    height: 100%;
}

/* Fundo da tela de login em gradiente suave + cenário 3D */
.bg-gradient-login {
    min-height: 100vh;
    background: radial-gradient(circle at 0% 0%, #c084fc 0%, #7c3aed 22%, transparent 60%),
                radial-gradient(circle at 100% 0%, #38bdf8 0%, #0ea5e9 28%, transparent 60%),
                linear-gradient(135deg, #1d1b4b 0%, #312e81 40%, #1d4ed8 100%);
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #f9fafb;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Esferas decorativas ao fundo */
.bg-gradient-login::before,
.bg-gradient-login::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.7;
    pointer-events: none;
}

.bg-gradient-login::before {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle at 30% 30%, #a855f7, #6366f1);
    left: -80px;
    top: 10%;
}

.bg-gradient-login::after {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle at 30% 30%, #22d3ee, #3b82f6);
    right: -60px;
    bottom: -40px;
}

/* ======================
   LAYOUT DA TELA DE LOGIN
   ====================== */

.login-hero-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 2.5rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-hero-inner {
    width: 100%;
    max-width: 1180px;
    border-radius: 1.75rem;
    padding: 2.5rem 3rem;
    display: flex;
    gap: 3rem;
    align-items: stretch;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12),
        rgba(148, 163, 184, 0.08)
    );
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(30px);
    box-shadow:
        0 28px 80px rgba(123, 161, 250, 0.7),
        0 0 0 1px rgba(148, 163, 184, 0.25);
}

/* Lado esquerdo: texto institucional */
.login-hero-left {
    flex: 1.1;
    color: #f9fafb;
}

.login-brand-main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.login-logo-circle {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #f97316, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.login-brand-name {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.login-brand-tagline {
    font-size: 0.8rem;
    opacity: 0.8;
}

.login-hero-title {
    margin-top: 1.8rem;
    font-size: 2.1rem;
    line-height: 1.25;
    font-weight: 700;
}

.login-hero-text {
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    max-width: 30rem;
    color: rgba(241, 245, 249, 0.9);
}

.login-hero-highlights {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.86rem;
    color: rgba(226, 232, 240, 0.95);
}

.login-hero-highlights li::before {
    content: "•";
    margin-right: 0.4rem;
    color: #a5b4fc;
}

/* Lado direito: card de login */
.login-hero-right {
    flex: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-glass-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(
        135deg,
        rgba(144, 177, 253, 0),
        rgba(10, 181, 223, 0)
    );
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.65);
    padding: 2.1rem 2.4rem;
    color: #f9fafb;
    backdrop-filter: blur(26px);
}

/* Cabeçalho do card */
.login-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.login-logo-mini {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #22c55e, #14b8a6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #f9fafb;
    box-shadow: 0 10px 26px rgba(15, 118, 110, 0.7);
}

.login-card-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.8;
}

.login-card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Inputs e botão dentro do card de login */
.login-input {
    background: rgba(15, 23, 42, 0.288);
    border: 1px solid rgba(148, 163, 184, 0.75);
    color: #f9fafb;
    box-shadow: 0 0 0 1px transparent;
}

.login-input:focus {
    background: rgba(15, 23, 42, 0.9);
    border-color: #a855f7;
    color: #f9fafb;
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.9);
}

.login-input::placeholder {
    color: rgba(148, 163, 184, 0.8);
}

.login-submit-btn {
    border-radius: 999px;
    font-weight: 500;
    padding-block: 0.9rem;
    background: radial-gradient(circle at 30% 30%, #21062c, #04111b);
    border: none;
    transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-submit-btn:hover {
    background: #111827;
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
}

.login-help-text {
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.85);
    text-align: center;
}

/* Responsivo login */
@media (max-width: 991.98px) {
    .login-hero-inner {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .login-hero-left {
        text-align: center;
        align-items: center;
    }

    .login-hero-text,
    .login-hero-highlights {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .login-hero-highlights {
        align-items: center;
    }
}

@media (max-width: 575.98px) {
    .login-hero-wrapper {
        padding: 1.5rem 1rem;
    }

    .login-hero-inner {
        padding: 1.6rem 1.25rem;
        border-radius: 1.25rem;
    }

    .login-glass-card {
        padding: 1.75rem 1.5rem;
    }

    .login-hero-title {
        font-size: 1.7rem;
    }
}

/* Card do login (fallback simples) */
.login-card {
    max-width: 420px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-radius: 1.5rem;
}

/* Layout geral do app (dashboard) */

/* Fundo geral do sistema – mesmo estilo do login, porém mais suave */
.app-bg {
    min-height: 100vh;
    background:
        radial-gradient(circle at 0% 0%, rgba(192, 132, 252, 0.18) 0, transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.16) 0, transparent 55%),
        linear-gradient(135deg, #f9fafb 0%, #eef2ff 40%, #e0f2fe 100%);
}

/* Layout geral: tela cheia, sem rolagem no body */
.app-layout {
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

/* ===========================
   SIDEBAR – ESTILO CONFERÊNCIA
   =========================== */

.sidebar {
    position: sticky;
    top: 1.25rem;
    flex: 0 0 280px;
    align-self: flex-start;
    height: calc(100vh - 2.5rem);

    margin: 1.25rem 1.25rem 1.25rem 1.5rem;
    padding: 22px 18px;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.9));
    /*background: linear-gradient(160deg, rgba(30, 63, 85, 0.95), rgba(30, 64, 175, 0.9));*/
    border-radius: 24px;
    color: #e5e7eb;

    display: flex;
    flex-direction: column;
    gap: 20px;

    box-shadow:
        0 10px 20px rgba(15, 23, 42, 0.55),
        0 0 0 1px rgba(148, 163, 184, 0.35);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow-y: auto;
}

/* Cabeçalho do sidebar */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 38px;
    height: 38px;
    border-radius: 16px;
    background: radial-gradient(circle at 30% 20%, #facc15, #ea580c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.sidebar-title {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-title span:first-child {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9ca3af;
}

.sidebar-title span:last-child {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Título de seção */
.sidebar-section-title {
    margin-top: 10px;
    margin-bottom: 6px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9ca3af;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
}

/* Links do menu */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 0.95rem;
    color: #d1d5db;
    opacity: 0.9;
    transition: background 0.25s ease, transform 0.18s ease,
                color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 4px;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
}

.sidebar-link span {
    flex: 1;
    white-space: nowrap;
}

.sidebar-link.active,
.sidebar-link:hover {
    background: radial-gradient(circle at 0% 0%, #f97316, #f97373);
    color: #111827;
    box-shadow: 0 8px 12px rgba(15, 23, 42, 0.199);
    transform: translateY(-1px);
}

/* Divider */
.sidebar-divider {
    border-color: rgba(148, 163, 184, 0.35);
    margin: 10px 0;
}

/* Rodapé do sidebar */
.sidebar-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.8rem;
    color: #9ca3af;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: radial-gradient(circle at 20% 0%, #f97316, #db2777);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #f9fafb;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sidebar-user-info span:first-child {
    font-size: 0.8rem;
    color: #e5e7eb;
}

.sidebar-user-info span:last-child {
    font-size: 0.72rem;
    color: #9ca3af;
}

.sidebar-logout {
    margin-top: 6px;
}

.sidebar-logout a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(248, 113, 113, 0.14);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.35);
    transition: background 0.25s ease, transform 0.15s ease;
    text-decoration: none;
}

.sidebar-logout a:hover {
    background: rgba(248, 113, 113, 0.3);
    transform: translateY(-1px);
}

/* Conteúdo principal */
.main-content {
    flex: 1 1 auto;
    max-height: 100vh;
    min-width: 0;
    overflow-x: auto;
    overflow-y: auto;
    padding: 1.5rem;
}

/* =========================
   TOP NAVBAR / HEADER NOVO
   ========================= */

/* Barra superior sem card de fundo */
.top-navbar {
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 1rem 1.5rem 0.75rem;
    margin-bottom: 0.75rem;
    border: none;
}

/* Container interno do header */
.app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo no header */
.navbar-company-logo {
    height: 52px;
    width: auto;
    border-radius: 16px;
    object-fit: contain;
}

.navbar-title-group .dashboard-title {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Card da direita com tema, notificação e usuário */
.header-right-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    padding: 0.35rem 0.6rem 0.35rem 0.6rem;
    box-shadow:
        0 14px 30px rgba(148, 163, 184, 0.5),
        0 0 0 1px rgba(226, 232, 240, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Botões circulares de ícone (tema + notificação) */
.icon-button {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: rgba(248, 250, 252, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.12s ease, box-shadow 0.16s ease;
    position: relative;
}

.icon-button i {
    font-size: 1rem;
    color: #4b5563;
}

.icon-button:hover {
    background: #eef2ff;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(148, 163, 184, 0.6);
}

.theme-toggle-icon {
    margin-right: 0.15rem;
}

/* Pill do usuário (avatar + nome + função + chevron) */
.user-dropdown .btn:focus-visible {
    box-shadow: none;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 999px;
    padding: 6px 12px 6px 7px;
    box-shadow:
        0 10px 20px rgba(148, 163, 184, 0.4),
        0 0 0 1px rgba(226, 232, 240, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.user-pill-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-size: 0.9rem;
    font-weight: 600;
}

.user-pill-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    max-width: 190px;
}

.user-pill-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-pill-role {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-pill-chevron {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Dropdown do usuário */
.user-dropdown-menu {
    min-width: 190px;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.25),
        0 0 0 1px rgba(241, 245, 249, 0.9);
    padding: 0.35rem 0;
    font-size: 0.85rem;
}

.user-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
}

.user-dropdown-menu .dropdown-item i {
    font-size: 1rem;
}

.user-dropdown-menu .dropdown-item:hover {
    background-color: #f3f4ff;
}

/* Ícone de notificação + badge */
.notif-button {
    margin-right: 0.15rem;
}

.notif-badge {
    position: absolute;
    top: -3px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #00c2ff;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #ffffff;
}

/* Dropdown de notificações – estilo cartão com "triângulo" */
.notification-menu {
    width: 320px;
    padding: 0;
    border-radius: 1.25rem;
    background: #ffffff;
    border: none;
    box-shadow:
        0 26px 55px rgba(15, 23, 42, 0.45),
        0 0 0 1px rgba(229, 231, 235, 0.9);
    overflow: hidden;
    margin-top: 0.7rem; 
    position: absolute; 
    z-index: 1050;      
}

/* Animação suave para os dropdowns do header */
.notification-menu,
.user-dropdown-menu {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
    /*transition:
        opacity 0.18s ease-out,
        transform 0.18s ease-out;*/
    transition:
        opacity 0.22s ease-out,
        transform 0.22s ease-out;

}

/* Quando o Bootstrap adiciona .show, fazemos o fade + slide/zoom */
.notification-dropdown .dropdown-menu.show,
.user-dropdown .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* Triângulo apontando para o botão */
.notification-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 42px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow:
        -1px -1px 2px rgba(148, 163, 184, 0.12);
}

/* Cabeçalho do dropdown */
.notification-header {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-title-text {
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
}

.notification-count-pill {
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #00c2ff;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Item de notificação */
.notification-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    background: #f9fafb;
}

.notification-item + .notification-item {
    border-top: 1px solid rgba(229, 231, 235, 0.9);
}

.notification-item:nth-child(odd) {
    background: #f9fafb;
}

.notification-item:nth-child(even) {
    background: #f3f4f6;
}

.notification-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, #f97316, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-weight: 700;
    font-size: 0.85rem;
}

.notification-body {
    display: flex;
    flex-direction: column;
    font-size: 0.86rem;
}

.notification-text-main {
    font-weight: 600;
    color: #374151;
}

.notification-text-sub {
    color: #6b7280;
    font-size: 0.82rem;
}

/* Mensagem quando não há notificações */
.notification-empty {
    padding: 0.9rem 1rem 1rem;
    font-size: 0.86rem;
    color: #6b7280;
}

/* TEXTOS GENÉRICOS */
.dashboard-title {
    font-size: 1.35rem;
}

.text-muted-extra {
    color: #9ca3af;
}

.tiny {
    font-size: 0.7rem;
}

/* Cards principais */
.info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.info-label {
    font-size: 0.85rem;
    color: #9ca3af;
}

.info-value {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.info-icon-soft {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fee2e2, #fef3c7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f97316;
}

/* Painéis */
.panel-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.panel-dark {
    background: radial-gradient(circle at top left, #111827, #020617);
    color: #e5e7eb;
    border: none;
}

.panel-title {
    font-size: 1rem;
    font-weight: 600;
}

.kpi-value {
    font-size: 2.2rem;
    font-weight: 600;
}

.kpi-label {
    font-size: 0.85rem;
}

/* Placeholder para gráfico */
.placeholder-chart {
    height: 180px;
    background: repeating-linear-gradient(
        135deg,
        rgba(148, 163, 184, 0.12),
        rgba(148, 163, 184, 0.12) 6px,
        rgba(148, 163, 184, 0.08) 6px,
        rgba(148, 163, 184, 0.08) 12px
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card "Próximos vencimentos" - timeline base */
.upcoming-card {
    position: relative;
    overflow: hidden;
}

.upcoming-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.upcoming-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.65rem 0;
}

.upcoming-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 14px;
    margin-top: 0.15rem;
}

.upcoming-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

.upcoming-line {
    flex: 1;
    width: 2px;
    margin-top: 0.3rem;
    background: linear-gradient(
        to bottom,
        rgba(248, 250, 252, 0.18),
        rgba(148, 163, 184, 0.32)
    );
}

.upcoming-item:last-child .upcoming-line {
    display: none;
}

.upcoming-content {
    flex: 1;
}

.upcoming-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.upcoming-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.upcoming-meta {
    font-size: 0.8rem;
    margin-top: 0.1rem;
    color: #9ca3af;
}

.upcoming-value-pill {
    padding: 0.25rem 0.95rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(22, 163, 74, 0.16);
    color: #4ade80;
    border: 1px solid rgba(22, 163, 74, 0.75);
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(22, 163, 74, 0.4);
}

/* Badges suaves */
.badge.bg-soft-success {
    background-color: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.badge.bg-soft-danger {
    background-color: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

/* Botão claro no painel dark */
.btn-light-soft {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e5e7eb;
    font-size: 0.8rem;
}

.btn-light-soft:hover {
    background: rgba(248, 250, 252, 0.16);
}

/* Responsividade layout principal */
@media (max-width: 991.98px) {
    .sidebar {
        display: none; /* sidebar some no mobile */
    }

    .main-content {
        padding: 1rem;
    }

    .top-navbar {
        padding-inline: 1rem;
    }

    .header-right-card {
        padding-right: 0.4rem;
    }
}

/* ================================
   MODO ESCURO (body.theme-dark)
   ================================ */

body.theme-dark {
    background-color: #111526;
    color: #eeeff3;
}

/* Fundo geral do app */
body.theme-dark.app-bg {
    background: #111526;
}

/* Sidebar no dark – mantemos o mesmo estilo da Conferência */
body.theme-dark .sidebar {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.92));
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(30, 64, 175, 0.5);
    color: #eeeff3;
}

body.theme-dark .sidebar-title span:first-child,
body.theme-dark .sidebar-section-title {
    color: #9ca3af;
}

/* Navbar superior no dark */
body.theme-dark .top-navbar {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Card da direita no dark */
body.theme-dark .header-right-card {
    background: #171c31;
    border-color: #242a45;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
}

/* Botões de ícone no dark */
body.theme-dark .icon-button {
    background: #171c31;
    border: 1px solid #2b3250;
}

body.theme-dark .icon-button i {
    color: #e5e7eb;
}

body.theme-dark .icon-button:hover {
    background: #222848;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.7);
}

/* Pill do usuário no dark */
body.theme-dark .user-pill {
    background: #171c31;
    border-color: #242a45;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

body.theme-dark .user-pill-name {
    color: #eeeff3;
}

body.theme-dark .user-pill-role {
    color: #c2c3c9;
}

body.theme-dark .user-pill-chevron {
    color: #9ca3af;
}

/* Dropdown do usuário no dark */
body.theme-dark .user-dropdown-menu {
    background-color: #0f172a;
    border-color: #1f2937;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.9);
}

body.theme-dark .user-dropdown-menu .dropdown-item {
    color: #e5e7eb;
}

body.theme-dark .user-dropdown-menu .dropdown-item:hover {
    background-color: #1f2937;
}

body.theme-dark .user-dropdown-menu .dropdown-item.text-danger {
    color: #fecaca !important;
}

/* Dropdown de notificações no dark */
body.theme-dark .notification-menu {
    background-color: #0f172a;
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.95);
}

body.theme-dark .notification-menu::before {
    background-color: #0f172a;
}

body.theme-dark .notification-header {
    border-bottom-color: #1f2937;
}

body.theme-dark .notification-title-text {
    color: #e5e7eb;
}

body.theme-dark .notification-item {
    background-color: #111827;
}

body.theme-dark .notification-item:nth-child(even) {
    background-color: #020617;
}

body.theme-dark .notification-text-main {
    color: #e5e7eb;
}

body.theme-dark .notification-text-sub {
    color: #9ca3af;
}

body.theme-dark .notification-empty {
    color: #9ca3af;
}

/* Botão de toggle de tema */
.theme-toggle-btn {
    border-radius: 999px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Tabelas */
body.theme-dark .table {
    color: #eeeff3;
}

body.theme-dark .table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: #242a45;
}

/* Inputs e selects */
body.theme-dark .form-control,
body.theme-dark .form-select {
    background-color: #111526;
    border-color: #2a304b;
    color: #eeeff3;
}

body.theme-dark .form-control:focus,
body.theme-dark .form-select:focus {
    background-color: #111526;
    border-color: #d863ca;
    color: #eeeff3;
    box-shadow: 0 0 0 1px rgba(216, 99, 202, 0.55);
}

body.theme-dark .form-control::placeholder,
body.theme-dark .form-select::placeholder {
    color: #7e7f80;
}

/* ===========================================
   Movimentações Recentes – estilo "Visão por tipo"
   =========================================== */

.recent-mov-card {
    border-radius: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.recent-mov-card .panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.recent-mov-card .panel-subtitle {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
}

.recent-mov-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    border: 0;
    padding-top: 0.25rem;
    padding-bottom: 0.4rem;
}

.recent-mov-table tbody td {
    font-size: 0.9rem;
    color: #111827;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.recent-mov-table tbody tr + tr td {
    border-top: 1px dashed rgba(148, 163, 184, 0.55);
}

/* Badges pill */
.badge.bg-soft-success,
.badge.bg-soft-danger {
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* DARK – versão do card */
body.theme-dark .recent-mov-card {
    background: #171c31;
    border-color: #242a45;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
}

body.theme-dark .recent-mov-card .panel-title {
    color: #c2c3c9;
}

body.theme-dark .recent-mov-card .panel-subtitle {
    color: #7e7f80;
}

body.theme-dark .recent-mov-table thead th {
    color: #7e7f80;
}

body.theme-dark .recent-mov-table tbody td {
    color: #eeeff3;
}

body.theme-dark .recent-mov-table tbody tr + tr td {
    border-top: 1px dashed #242a45;
}

/* Listras + hover */
.recent-mov-table tbody tr:nth-child(odd) td {
    background-color: rgba(255, 255, 255, 0.95);
}

.recent-mov-table tbody tr:nth-child(even) td {
    background-color: rgba(249, 250, 251, 0.95);
}

.recent-mov-table tbody tr:hover td {
    background-color: #f3f4ff;
    box-shadow: 0 6px 18px rgba(148, 163, 184, 0.25);
    position: relative;
    z-index: 1;
}

.recent-mov-table tbody tr + tr td {
    border-top: 1px dashed rgba(148, 163, 184, 0.55);
}

/* Dark – listras */
body.theme-dark .recent-mov-table tbody tr:nth-child(odd) td {
    background-color: rgba(23, 28, 49, 0.95);
}

body.theme-dark .recent-mov-table tbody tr:nth-child(even) td {
    background-color: rgba(17, 21, 38, 0.95);
}

body.theme-dark .recent-mov-table tbody tr:hover td {
    background-color: #20253d;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 1;
}

body.theme-dark .recent-mov-table tbody tr + tr td {
    border-top: 1px dashed #242a45;
}

/* ---------------------------------
   Contas bancárias - agrupamento / mostrar mais
   --------------------------------- */

.contas-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.contas-toggle-btn {
    border-radius: 999px;
    font-size: 0.75rem;
    padding: 0.25rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background-color: rgba(255, 255, 255, 0.9);
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.contas-toggle-btn i {
    font-size: 0.8rem;
}

.contas-toggle-btn:hover {
    background-color: #eef2ff;
}

/* Área oculta com transição */
.contas-extra-collapse {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.contas-extra-collapse.contas-extra-open {
    max-height: 1200px;
    opacity: 1;
    margin-top: 0.25rem;
}

/* Dark mode para o botão */
body.theme-dark .contas-header-row .badge.bg-light {
    background-color: #171c31;
    color: #c2c3c9;
    border-color: #2b3250;
}

body.theme-dark .contas-toggle-btn {
    background-color: #171c31;
    border-color: #2b3250;
    color: #eeeff3;
}

body.theme-dark .contas-toggle-btn:hover {
    background-color: #222848;
}
.notification-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.notification-item-link:hover .notification-item {
    background: #e5f0ff;
}

body.theme-dark .notification-item-link:hover .notification-item {
    background: #1f2937;
}