.menu-text {
    color: black;
    font-weight: bold;
    font-size: 20px
}

.nav-link.active {
    background-color: #e9b459 !important;
    color: black !important;
}

.nav-link:hover {
    background-color: #fef1da;
    color: #004085;
}

.nav-link {
    color: black;
}


.cartao-cadastro {
    background-color: #e9b459;
    border: 3px solid #000000;
    color: black
}

.cartao-cadastro:hover {
    background-color: #fff282;
    color: #004085;
}


.btn-sub {
    background-color: #e9b459;
    color: black;
    font-weight: bold;
    font-size: 17px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-sub:hover {
    background-color: #e9b600;
    color: white;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.alert-fixo {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 400px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}


.btn-limpa {
    color: #6c757d; /* cor padrão do btn-outline-secondary */
    border: 1px solid #6c757d;
    background-color: transparent;
    font-weight: bold;
    font-size: 17px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}

.btn-limpa:hover {
    color: white;
    background-color: #6c757d;
    border-color: #6c757d;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}


/* Paginação ativa personalizada */
.page-item.active .page-link {
    background-color: #6c757d !important;
    border-color: #0d6efd !important;
    color: white !important;
}


/* === SIDEBAR MODERNA === */

.sidebar-modern {
    width: 240px;
    height: 100vh;
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.70);
    border-right: 1px solid rgba(255,255,255,0.08);
    box-shadow: 4px 0 20px rgba(0,0,0,0.25);
}

.sidebar-logo {
    width: 110px;
    filter: drop-shadow(0px 0px 6px rgba(255, 217, 0, 0.6));
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: #f1f1f1;
    font-weight: 500;
    border-radius: 10px;
    transition: all .3s ease;
    background: transparent;
}

.sidebar-link i {
    font-size: 1.2rem;
}

.sidebar-link:hover {
    background: rgba(233,180,89,0.15);
    color: #e9b459;
    transform: translateX(4px);
}

.sidebar-link.active {
    background: linear-gradient(135deg, #e9b459, #d39b41);
    color: #000;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(233,180,89,0.4);
}


/* Remover sublinhado dos links da sidebar moderna */
.sidebar-link {
    text-decoration: none !important;
}

.sidebar-link span {
    text-decoration: none !important;
}

.sidebar-link i {
    text-decoration: none !important;
}

.sidebar-link:hover,
.sidebar-link.active {
    text-decoration: none !important;
}

/* BOTÕES MODERNOS PARA A SIDEBAR */

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    color: #f8f8f8;
    font-weight: 600;
    font-size: 17px;
    text-decoration: none !important;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.05);
    transition: all .25s ease;
}

/* Ícone */
.sidebar-link i {
    font-size: 1.3rem;
    opacity: 0.85;
    transition: .25s;
}

/* HOVER - vira um botão dourado suave */
.sidebar-link:hover {
    background: rgba(233,180,89,0.25);
    color: #e9b459;
    transform: translateX(6px);
    box-shadow: inset 0 0 0 2px rgba(233,180,89,0.65),
                0 4px 12px rgba(233,180,89,0.25);
}

/* Ativo - botão dourado premium */
.sidebar-link.active {
    background: linear-gradient(135deg, #e9b459, #d39b41);
    color: #000;
    box-shadow: 0 4px 14px rgba(233,180,89,0.45);
    transform: translateX(6px);
    border-left: 4px solid black;
}

/* Subir opacidade do ícone */
.sidebar-link:hover i,
.sidebar-link.active i {
    opacity: 1;
}


/* === BOTÕES MODERNOS PARA GERAR COBRANÇA — AJUSTE DE COR === */

.botao-cobranca {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: #ffffff;
    border-radius: 14px;
    text-decoration: none !important;
    color: #333 !important; /* TEXTO ESCURO */
    font-weight: 600;
    font-size: 18px;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.botao-cobranca i {
    font-size: 1.8rem;
    opacity: 0.7;
    color: #555; /* ÍCONE ESCURO */
    transition: .25s ease;
}

.botao-cobranca:hover {
    background: rgba(233,180,89,0.15);
    color: #000 !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(233,180,89,0.30);
    border: 1px solid rgba(233,180,89,0.50);
}

.botao-cobranca:hover i {
    opacity: 1;
    color: #d39b41; /* dourado escuro */
}

/* Espaçamento entre a sidebar e o conteúdo */
.main-content {
    margin-left: 10px; /* sidebar (240px) + respiro */
    padding: 30px 40px; /* padding interno bonito */
}


/* Linha elegante entre logo e botões */
.sidebar-divider {
    width: 80%;
    height: 3px;
    background: linear-gradient(to right, transparent, #000, transparent);
    margin: 1px auto 18px auto;
    opacity: 0.55;
}


@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    10% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* Container para flash automático */
.flash-auto-container {
    position: fixed;
    top: 70px; /* abaixo do navbar sem encostar */
    right: 20px;
    width: 500px; /* largura máxima */
    z-index: 99999;
    pointer-events: none; /* não interfere no layout */
}

/* Mensagem de flash */
.flash-auto-container .alert {
    pointer-events: auto;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    animation: fadeInOut 8s ease forwards;
}

/* Animação suave */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    10% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-10px); }
}


.flash-container {
    position: fixed;
    top: 90px; /* abaixo do navbar */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

.flash-message {
    background: rgba(233, 180, 89, 0.22);
    border: 1px solid #e9b459;
    color: #e9b459;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    text-align: center;
    animation: flashFade 0.4s ease-out;
}

/* Animação de entrada */
@keyframes flashFade {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Sumir depois de 4 segundos (opcional) */
.flash-message {
    animation: flashFade 0.4s ease-out,
               flashHide 0.4s ease-in 4s forwards;
}

@keyframes flashHide {
    from { opacity: 1; }
    to   { opacity: 0; }
}
