/* =====================================================
   NAVBAR SUPERIOR — ESTILO SIDEBAR ADAPTADO
===================================================== */

.navbar-modern {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: 72px;
    padding: 0 28px;

    display: flex;
    align-items: center;

    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.70);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* LOGO */
.navbar-brand-modern img {
    height: 42px;
    filter: drop-shadow(0px 0px 6px rgba(255, 217, 0, 0.6));
}

/* MENU */
.navbar-menu {
    list-style: none;
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0;
}

/* LINKS — reaproveitando sidebar-link */
.navbar-link {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 18px;
    border-radius: 12px;

    background: rgba(255,255,255,0.05);
    color: #f8f8f8;
    font-weight: 600;
    font-size: 16px;

    text-decoration: none !important;

    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.05);
    transition: all .25s ease;
}

.navbar-link i {
    font-size: 1.2rem;
    opacity: 0.85;
    transition: .25s;
}

/* HOVER */
.navbar-link:hover {
    background: rgba(233,180,89,0.25);
    color: #e9b459;
    box-shadow: inset 0 0 0 2px rgba(233,180,89,0.65),
                0 4px 12px rgba(233,180,89,0.25);
    transform: translateY(-2px);
}

/* ATIVO */
.navbar-link.active {
    background: linear-gradient(135deg, #e9b459, #d39b41);
    color: #000;
    box-shadow: 0 4px 14px rgba(233,180,89,0.45);
}

.navbar-link:hover i,
.navbar-link.active i {
    opacity: 1;
}


/* === BOTÕES COBRANÇA === */

.botao-cobranca {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: #ffffff;
    border-radius: 14px;
    text-decoration: none !important;
    color: #333 !important;
    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;
    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;
}

.main-content {
    margin-left: 240px; /* mesmo width da sidebar */
    padding: 24px 20px;
    min-height: 100vh;
}


.sidebar-divider {
    width: 80%;
    height: 3px;
    background: linear-gradient(to right, transparent, #000, transparent);
    margin: 1px auto 18px auto;
    opacity: 0.55;
}


/* === FLASH AUTOMÁTICO (VERSÃO NOVA) === */

.flash-container {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}


/* ==========================================================
   FLASH-MESSAGE — VISUAL PADRÃO + CORES ESPECÍFICAS POR TIPO
   ========================================================== */

.flash-message {
    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;
    position: relative;           /* ADICIONADO */
    left: 50%;                    /* ADICIONADO */
    transform: translateX(-50%);  /* ADICIONADO */
    animation: flashFade 0.4s ease-out;
}


/* SUCESSO */
.alert-success.flash-message {
    background: rgba(25,135,84,0.25) !important;
    border: 1px solid #198754 !important;
    color: #198754 !important;
}

/* ERRO */
.alert-danger.flash-message {
    background: rgba(220,53,69,0.25) !important;
    border: 1px solid #dc3545 !important;
    color: #dc3545 !important;
}

/* AVISO */
.alert-warning.flash-message {
    background: rgba(255,193,7,0.25) !important;
    border: 1px solid #ffc107 !important;
    color: #664d03 !important;
}

/* INFORMAÇÃO */
.alert-info.flash-message {
    background: rgba(13,110,253,0.25) !important;
    border: 1px solid #0d6efd !important;
    color: #0d6efd !important;
}


/* Animações */
@keyframes flashFade {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

.flash-message {
    animation: flashFade 0.4s ease-out,
               flashHide 0.4s ease-in 4s forwards;
}

@keyframes flashHide {
    from { opacity: 1; }
    to   { opacity: 0; }
}


#overlay-execucao {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75); /* azul escuro elegante */
    backdrop-filter: blur(6px);
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 42px;
    max-width: 420px;
    width: 90%;
    text-align: center;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    animation: fadeInUp 0.4s ease;
}

.overlay-card h4 {
    margin-top: 20px;
    font-weight: 600;
    color: #1f2937;
}

.overlay-card p {
    margin-top: 8px;
    color: #4b5563;
    font-size: 15px;
}

.overlay-info {
    display: block;
    margin-top: 18px;
    font-size: 13px;
    color: #6b7280;
}

/* Spinner moderno */
.spinner {
    width: 56px;
    height: 56px;
    border: 5px solid #e5e7eb;
    border-top: 5px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Animações */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   ESPAÇAMENTO PADRÃO ABAIXO NAVBAR
================================ */

.pt-navbar {
    padding-top: calc(40px);
}

.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;
    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);
}


.page-item.active .page-link {
    background-color: #6c757d !important;
    border-color: #0d6efd !important;
    color: white !important;
}



/* =========================
   LOGIN
   ========================= */

body.login-page {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.login-card {
    width: 420px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 35px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    animation: fadeIn .6s ease-out;
}

.login-title {
    font-weight: 700;
    font-size: 28px;
    text-align: center;
    margin-bottom: 25px;
    color: #e9b459;
}

.btn-login {
    background: linear-gradient(135deg, #e9b459, #d39b41);
    border: none;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    padding: 12px;
    width: 100%;
    border-radius: 12px;
    transition: all .25s ease;
    box-shadow: 0 4px 14px rgba(233,180,89,0.35);
}

.btn-login:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #f1c16d, #e9b459);
    box-shadow: 0 8px 20px rgba(233,180,89,0.45);
}

.logo-login {
    width: 160px;
    display: block;
    margin: 0 auto 20px auto;
    filter: drop-shadow(0px 0px 6px rgba(233,180,89,0.7));
}

/* Nome do usuário no navbar */
.navbar-username {
    color: #ffffff;
    font-weight: 500;
}
