/* --- Variables & Global Reset --- */
:root {
    /* Colors based on the images */
    --pp-blue-header: #142c8e;
    --pp-blue-button: #003087;
    --pp-blue-link: #0070ba;
    --pp-bg-main: #faf8f5; /* Light beige background */
    --pp-white: #ffffff;
    --pp-text-dark: #2c2e2f;
    --pp-text-gray: #6c7378;
    --pp-border-color: #e6e6e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--pp-bg-main);
    color: var(--pp-text-dark);
}

a {
    text-decoration: none;
    color: var(--pp-blue-link);
    font-weight: 600;
}

ul {
    list-style: none;
}

/* Utility Classes */
.text-gray { color: var(--pp-text-gray); }
.font-bold { font-weight: 700; }
.mb-4 { margin-bottom: 1rem; }

/* --- Header / Navigation --- */
.main-header {
    background-color: var(--pp-blue-header);
    color: var(--pp-white);
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left { display: flex; align-items: center; flex-grow: 1; }
.header-right { display: flex; align-items: center; }

.pp-logo-svg {
    height: 32px;
    width: auto;
    fill: var(--pp-white);
    margin-right: 20px;
}

/* Desktop Navigation Links */
.desktop-nav ul { display: flex; }
.desktop-nav li a {
    color: #cdd1e4; /* Lighter blue for inactive items */
    padding: 22px 15px;
    display: block;
    font-weight: 600;
    font-size: 14px;
}
.desktop-nav li a.active {
    color: var(--pp-white);
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Header Icons & Logout */
.header-icon {
    color: var(--pp-white);
    font-size: 18px;
    margin-left: 20px;
    cursor: pointer;
}
.logout-btn {
    color: var(--pp-white);
    font-weight: 600;
    font-size: 13px;
    margin-left: 25px;
    text-transform: uppercase;
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile Header Elements (Hidden on Desktop) */
.mobile-hamburger, .mobile-notification { display: none; font-size: 22px; cursor: pointer; }

/* --- Main Content Layout --- */
.main-container {
    max-width: 1080px;
    margin: 30px auto;
    padding: 0 20px;
    /* CSS Grid for Desktop Layout */
    display: grid;
    grid-template-columns: 7fr 5fr; /* Left column wider than right */
    gap: 24px;
}

/* --- Card Components --- */
.card {
    background-color: var(--pp-white);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--pp-border-color);
    /* Subtle shadow inspired by PayPal */
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.card-title { font-size: 18px; font-weight: 700; }
.more-options-icon { color: var(--pp-text-gray); cursor: pointer; }

/* Balance Card Specifics */
.balance-amount {
    font-size: 42px;
    font-weight: 500; /* Slightly lighter weight per image */
    margin-bottom: 8px;
    color: #001435; /* Very dark blue/black */
}
.balance-status { color: var(--pp-text-gray); margin-bottom: 24px; }

.btn-transfer {
    background-color: var(--pp-blue-button);
    color: var(--pp-white);
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 24px; /* Rounded pill shape */
    font-weight: 700;
    width: 100%;
    max-width: 250px; /* Don't stretch too wide on large screens */
}
.btn-transfer:hover { background-color: #002466; }

/* Activity Card Specifics */
.activity-text { color: var(--pp-text-dark); margin-bottom: 20px; line-height: 1.5; }

/* --- Right Sidebar Components --- */

/* Quick Actions (Desktop Row) */
.desktop-quick-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    width: 80px;
}

.action-icon-circle {
    width: 48px;
    height: 48px;
    background-color: var(--pp-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--pp-blue-button);
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 8px;
}

.action-label {
    font-size: 13px;
    color: var(--pp-text-dark);
    font-weight: 600;
    line-height: 1.2;
}

/* Send Again Section */
.search-circle-big {
    width: 60px;
    height: 60px;
    background-color: var(--pp-blue-button);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--pp-white);
    font-size: 28px;
    margin: 20px auto 10px auto;
}
.search-label { text-align: center; font-weight: 600; font-size: 14px; }

/* Banks and Cards Section */
.bank-list { margin-bottom: 20px; }
.bank-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
}
.bank-icon-wrapper {
    width: 40px;
    height: 28px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.bank-icon-wrapper.mandiri { background-color: #f0f2f5; color: #6c7378; font-size: 18px; }
.bank-icon-wrapper.bri {
    background: linear-gradient(135deg, #2c3e50, #4ca1af); /* Generic credit card look */
    color: #fff;
    position: relative;
    overflow: hidden;
}
/* Little Mastercard-ish circles for the BRI card icon */
.bank-icon-wrapper.bri::after {
    content: ''; position: absolute; bottom: -5px; right: -5px;
    width: 15px; height: 15px; background: #eb001b; border-radius: 50%; opacity: 0.8;
}
.bank-icon-wrapper.bri::before {
    content: ''; position: absolute; bottom: -5px; right: 5px;
    width: 15px; height: 15px; background: #f79e1b; border-radius: 50%; opacity: 0.8; z-index: 1;
}

.bank-details h4 { font-size: 15px; margin-bottom: 4px; color: #001435; }
.bank-details p { font-size: 14px; color: var(--pp-text-gray); }

/* --- Mobile Bottom Navigation (Hidden on Desktop) --- */
.mobile-bottom-nav {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--pp-white);
    padding: 12px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    justify-content: space-around;
    z-index: 100;
}
.mobile-bottom-nav .action-item { width: auto; flex: 1; }
.mobile-bottom-nav .action-icon-circle {
    background-color: transparent;
    box-shadow: none;
    width: auto; height: auto;
    margin-bottom: 4px;
    font-size: 24px;
    color: var(--pp-blue-link);
}
/* Special style for the "Add" button in mobile center */
.mobile-bottom-nav .action-item.add-center .action-icon-circle {
    background-color: var(--pp-blue-button);
    color: white;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    margin-top: -20px; /* Pop up slightly */
    box-shadow: 0 4px 8px rgba(0,48,135,0.3);
}


/* =========================================
   RESPONSIVE MEDIA QUERIES
========================================= */
@media screen and (max-width: 900px) {
    /* Header Changes */
    .main-header { padding: 0 15px; position: relative; }
    .desktop-nav, .header-right .settings-icon, .header-right .logout-btn { display: none; }
    .mobile-hamburger, .mobile-notification { display: block; color: var(--pp-white); }
    
    /* Center the logo on mobile */
    .header-left { justify-content: center; position: absolute; left: 0; width: 100%; pointer-events: none; }
    .pp-logo-svg { margin-right: 0; pointer-events: auto; }

    /* Main Layout Changes */
    .main-container {
        grid-template-columns: 1fr; /* Stack columns vertically */
        margin: 15px auto;
        padding: 0 15px;
        padding-bottom: 80px; /* Space for bottom nav */
    }

    /* Card Adjustments */
    .card { padding: 20px; border: none; box-shadow: none; /* Mobile looks flatter */ }
    .btn-transfer { width: 100%; max-width: none; /* Full width button on mobile */ }

    /* Sidebar Elements on Mobile */
    .desktop-quick-actions { display: none; /* Hide desktop quick actions rows */ }
    .send-again-section { display: none; /* Hide "Kirim lagi" section based on mobile image */ }
    
    /* Show Mobile Bottom Nav */
    .mobile-bottom-nav { display: flex; }
}