:root {
    --bs-body-font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Custom Overrides for Bootstrap */
[data-bs-theme="dark"] {
    --primary: #6366f1;
    --success: #22c55e;
    --error: #ef4444;
}

[data-bs-theme="light"] {
    --primary: #4f46e5;
    --success: #16a34a;
    --error: #dc2626;
}

body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: var(--bs-body-font-family);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

[data-bs-theme="dark"] .stat-card {
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.type-chip {
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.type-income { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.type-expense { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.progress {
    height: 8px !important;
    border-radius: 10px !important;
}

/* Auth Page Enhancements */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bs-body-bg) 0%, var(--bs-tertiary-bg) 100%);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: var(--bs-body-bg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Navigation Custom */
.nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary) !important;
}

/* Print Optimization */
@media print {
    .no-print { display: none !important; }
    .card { border: 1px solid #ddd !important; }
}
