:root {
    --aura-dark: #1b1523;
    --aura-primary: #6b4e9e;
    --aura-primary-light: #9c7fd1;
    --aura-gold: #c9a86a;
    --aura-bg: #f5f3f8;
}

body {
    background: var(--aura-bg);
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Login ---------- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #2a1f3d, #120c1c 65%);
}
.login-box { width: 380px; max-width: 92vw; }
.brand-title {
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: 2px;
    color: #fff;
    font-size: 2rem;
}
.login-page p.text-muted { color: #cabde0 !important; }

/* ---------- Layout ---------- */
.app-wrapper { display: flex; min-height: 100vh; }

.app-sidebar {
    width: 240px;
    background: linear-gradient(180deg, var(--aura-dark), #2a1f3d);
    color: #fff;
    flex-shrink: 0;
    padding-bottom: 2rem;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: .5rem;
}
.brand-mark {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--aura-gold), var(--aura-primary-light));
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; color: #1b1523; font-size: 1.1rem;
}
.nav-section {
    text-transform: uppercase;
    font-size: .7rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,.4);
    padding: 1rem 1rem .35rem;
}
.app-sidebar .nav-link {
    color: rgba(255,255,255,.8);
    padding: .55rem 1rem;
    border-radius: 8px;
    margin: 0 .5rem 2px;
    font-size: .92rem;
}
.app-sidebar .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.app-sidebar .nav-link.active {
    background: var(--aura-primary);
    color: #fff;
}

.app-content { flex: 1; min-width: 0; }
.topbar {
    background: #fff;
    height: 62px;
    border-bottom: 1px solid #e8e3f0;
}
.page-title { color: var(--aura-dark); }
.avatar-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--aura-primary);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: .85rem;
}

/* ---------- Cards / KPIs ---------- */
.kpi-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid #ece7f3;
    height: 100%;
}
.kpi-value { font-size: 1.6rem; font-weight: 700; color: var(--aura-dark); }
.kpi-label { color: #8a809a; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; }
.kpi-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.card { border: 1px solid #ece7f3; border-radius: 14px; }
.card-header { background: #fff; border-bottom: 1px solid #ece7f3; font-weight: 600; }

.btn-dark { background-color: var(--aura-dark); border-color: var(--aura-dark); }
.btn-dark:hover { background-color: #2a1f3d; border-color: #2a1f3d; }
.btn-primary { background-color: var(--aura-primary); border-color: var(--aura-primary); }
.btn-primary:hover { background-color: #5a3f8a; border-color: #5a3f8a; }

.table thead th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #8a809a;
    border-bottom-width: 1px;
}

.badge-entrada { background: #e5f6ea; color: #1e7a3a; }
.badge-saida { background: #fde9e9; color: #b3261e; }
.badge-pendente { background: #fff4e0; color: #a86400; }
.badge-pago { background: #e5f6ea; color: #1e7a3a; }
.badge-cancelado { background: #efeef2; color: #6a6473; }

.result-box {
    background: linear-gradient(135deg, var(--aura-dark), #3a2c56);
    color: #fff;
    border-radius: 14px;
    padding: 1.5rem;
}
.result-box .valor-grande { font-size: 2.1rem; font-weight: 700; color: var(--aura-gold); }

@media (max-width: 991px) {
    .app-sidebar {
        position: fixed;
        left: -260px;
        top: 0; bottom: 0;
        z-index: 1050;
        transition: left .2s ease;
    }
    .app-sidebar.open { left: 0; }
}
