:root {
    --primary: #1e3a5f;
    --primary-light: #2d6da8;
    --primary-dark: #152c47;
    --bg-light: #f0f4f8;
    --card-radius: 20px;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-light);
}

/* ===== NAVBAR ===== */
.navbar-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    padding: 14px 0;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-custom .navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.navbar-custom .navbar-brand i {
    margin-right: 10px;
    font-size: 26px;
}

.navbar-custom .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    transition: var(--transition);
    margin: 0 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
}

.navbar-custom .nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.2);
}

.navbar-custom .nav-link.active {
    color: white !important;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.25);
}

.navbar-custom .nav-link i {
    color: #ffffff;
    margin-right: 4px;
}

.btn-login-nav {
    background: transparent !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    transition: var(--transition);
    border: none !important;
}

.btn-login-nav i {
    color: #ffffff !important;
}

.btn-login-nav:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.btn-login-nav:hover i {
    color: #ffffff !important;
}

.navbar-custom .navbar-toggler {
    border: none;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== RESPONSIVE NAVBAR ===== */
@media (max-width: 992px) {
    .navbar-custom .nav-link {
        color: #ffffff !important;
        text-align: center;
        padding: 10px 16px;
    }
    
    .navbar-custom .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .navbar-custom .nav-link.active {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .btn-login-nav {
        margin-top: 8px;
        width: 100%;
        text-align: center;
        justify-content: center;
        display: inline-flex;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 90px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -20px) scale(1.05);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-weight: 700;
    font-size: 52px;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.hero h1 i {
    font-size: 48px;
    opacity: 0.9;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.8;
}

.hero .btn-hero-primary {
    border-radius: 50px;
    padding: 14px 40px;
    font-weight: 600;
    transition: var(--transition);
    background: white;
    color: var(--primary);
    border: none;
    font-size: 15px;
}

.hero .btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.25);
    color: var(--primary);
}

.hero .btn-hero-secondary {
    border-radius: 50px;
    padding: 14px 40px;
    font-weight: 600;
    transition: var(--transition);
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 15px;
}

.hero .btn-hero-secondary:hover {
    transform: translateY(-3px);
    background: white;
    color: var(--primary);
    border-color: white;
}

/* ===== HERO LOGIN BUTTON ===== */
.hero .btn-hero-login {
    border-radius: 50px;
    padding: 14px 40px;
    font-weight: 600;
    transition: var(--transition);
    background: white;
    color: #000000 !important;
    border: 2px solid white;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero .btn-hero-login:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.9);
    color: #000000 !important;
    border-color: white;
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.25);
}

/* ===== STATISTIK CARDS ===== */
.stat-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.stat-card .stat-icon.primary {
    background: rgba(30, 58, 95, 0.1);
    color: var(--primary);
}
.stat-card .stat-icon.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}
.stat-card .stat-icon.danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}
.stat-card .stat-icon.info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.stat-card .number {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.stat-card .label {
    color: #6c757d;
    font-size: 13px;
    font-weight: 400;
    margin-top: 2px;
}

.stat-card .trend {
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 12px;
    border-radius: 50px;
    background: #f0f4f8;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 45px;
    position: relative;
    display: inline-block;
    color: #1a202c;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
}

.section-subtitle {
    color: #718096;
    font-size: 16px;
    font-weight: 300;
    margin-top: 5px;
}

/* ===== TRANSACTION CARDS ===== */
.card-transaction {
    border-radius: var(--card-radius);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card-transaction:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-transaction .card-body {
    padding: 20px 24px;
}

.badge-pemasukan {
    background: #28a745 !important;
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
}

.badge-pengeluaran {
    background: #dc3545 !important;
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
}

/* ===== CHART ===== */
.chart-container {
    background: white;
    border-radius: var(--card-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 50px 0 40px;
    margin-top: 60px;
}

.footer .brand {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.footer .brand i {
    margin-right: 10px;
}

.footer p {
    margin: 0;
    opacity: 0.7;
    font-weight: 300;
    font-size: 14px;
}

.footer .social-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    font-size: 18px;
    margin: 0 8px;
}

.footer .social-links a:hover {
    color: white;
    transform: translateY(-2px);
}

.footer .footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 25px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 38px;
    }
    .hero {
        padding: 70px 0 80px;
    }
    .stat-card .number {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 30px;
    }
    .hero h1 i {
        font-size: 28px;
    }
    .hero {
        padding: 50px 0 60px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero .btn-hero-primary,
    .hero .btn-hero-secondary,
    .hero .btn-hero-login {
        padding: 12px 28px;
        font-size: 14px;
        width: 100%;
        max-width: 260px;
    }
    .section-title {
        font-size: 26px;
    }
    .stat-card .number {
        font-size: 20px;
    }
    .stat-card {
        padding: 20px;
    }
    .chart-container {
        padding: 15px;
    }
    .navbar-custom .navbar-brand {
        font-size: 20px;
    }
    .btn-login-nav {
        padding: 6px 20px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 26px;
    }
    .hero .btn-hero-primary,
    .hero .btn-hero-secondary,
    .hero .btn-hero-login {
        padding: 10px 20px;
        font-size: 13px;
        max-width: 100%;
    }
    .card-transaction .card-body {
        padding: 16px;
    }
    .badge-pemasukan,
    .badge-pengeluaran {
        font-size: 11px;
        padding: 4px 12px;
    }
    .footer .brand {
        font-size: 18px;
    }
}

/* ===== UTILITY ===== */
.bg-soft-primary {
    background: rgba(30, 58, 95, 0.04);
}
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

section {
    scroll-margin-top: 80px;
}