/* =============================================================
   Money Planner v2 — Estilos customizados
   ============================================================= */

:root {
    --mp-primary:          #0d6efd;
    --mp-sidebar-bg:       #1e2a3a;
    --mp-sidebar-text:     #adb5bd;
    --mp-sidebar-hover-bg: rgba(255, 255, 255, 0.09);
    --mp-sidebar-active-color: #ffffff;
    --mp-sidebar-width:    240px;
}

/* =============================================================
   Auth Layout — tela de login / cadastro / recuperação
   ============================================================= */

body.auth-layout {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #1e2a3a 0%, #2c3e50 100%);
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.40) !important;
    background: #ffffff;
}

.auth-card-wide {
    max-width: 540px;
}

.auth-logo {
    font-size: 3rem;
    color: var(--mp-primary);
    line-height: 1;
}

/* cabeçalho do card de auth */
.auth-card .card-body {
    padding: 2.5rem !important;
}

@media (max-width: 480px) {
    .auth-card .card-body {
        padding: 1.75rem !important;
    }
}

/* =============================================================
   App Layout — sidebar + conteúdo principal
   ============================================================= */

body.app-layout {
    background: #f0f2f5;
}

/* ---- Sidebar ---- */

.sidebar {
    width: var(--mp-sidebar-width);
    min-height: 100vh;
    background-color: var(--mp-sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-brand {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 1rem 1.25rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.sidebar .nav-link {
    color: var(--mp-sidebar-text);
    padding: 0.55rem 1.1rem;
    border-radius: 7px;
    margin: 1px 8px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.14s, color 0.14s;
    white-space: nowrap;
}

.sidebar .nav-link:hover {
    background: var(--mp-sidebar-hover-bg);
    color: var(--mp-sidebar-active-color);
}

.sidebar .nav-link.active {
    background: rgba(13, 110, 253, 0.22);
    color: #ffffff;
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.sidebar-footer {
    padding: 0.85rem 1rem;
}

/* ---- Main content ---- */

.main-content {
    margin-left: var(--mp-sidebar-width);
    padding: 1.75rem 1.75rem 3rem;
    min-height: 100vh;
}

/* ---- Page header ---- */

.page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #dee2e6;
}

/* ---- Cards (apenas dentro do app layout) ---- */

.main-content .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.055);
    border-radius: 10px;
}

/* ---- Tables ---- */

.table th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    border-bottom-width: 1px;
}

/* ---- Badges / status ---- */

.badge-currency {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* =============================================================
   Responsivo
   ============================================================= */

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
}
