/* ----- GENERAL & FONT SETUP ----- */
:root {
    --primary-color: #4A90E2;
    --background-color: #F7F8FA;
    --text-color: #2D3748;
    --text-light: #718096;
    --card-bg: #FFFFFF;
    --income-color: #38A169;
    --expense-color: #E53E3E;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding-bottom: 80px; /* Ruang untuk bottom nav */
    min-height: 100vh;
}

/* ----- HEADER ----- */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
}

.app-header h1 {
    font-size: 1.2rem;
    margin: 0;
}

/* ----- WAVE SECTION ----- */
.header-wave-section {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem 1rem;
    position: relative;
    text-align: center;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px; /* Tinggi gelombang */
}

.wave .shape-fill {
    fill: var(--background-color); /* Warna yang sama dengan background body */
}

.user-info .profile-picture {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid white;
    margin-bottom: 0.5rem;
}

.user-info h2 {
    margin: 0.2rem 0;
    font-size: 2.2rem;
    font-weight: 700;
}

.user-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.user-info span {
    font-size: 0.8rem;
    opacity: 0.8;
}


/* ----- ACTION GRID ----- */
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem 1rem;
    margin-top: -30px; /* Membuat grid menjorok ke atas wave */
    position: relative;
    z-index: 10;
}

.action-item {
    text-align: center;
}

.action-item .action-button {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    cursor: pointer;
    margin: 0 auto 0.5rem auto;
}

.action-item .action-button .material-icons {
    font-size: 28px;
}

.action-item p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

/* ----- RECENT ACTIVITY ----- */
.recent-activity {
    padding: 0 1rem;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.activity-header h2 {
    font-size: 1.1rem;
    margin: 0;
}

.activity-header a {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #E2E8F0;
}
.activity-item:last-child {
    border-bottom: none;
}
.activity-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}
.activity-icon img {
    width: 60%;
    height: auto;
}
.activity-details {
    flex-grow: 1;
}
.activity-title {
    font-weight: 500;
    margin: 0;
}
.activity-subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

.activity-amount {
    font-weight: 500;
}
.income {
    color: var(--income-color);
}
.expense {
    color: var(--expense-color);
}


/* ----- BOTTOM NAV ----- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    background-color: var(--card-bg);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    border-top: 1px solid #E2E8F0;
    padding: 0.5rem 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
}

.nav-item span:last-child {
    font-size: 0.7rem;
    margin-top: 2px;
}

.nav-item.active {
    color: var(--primary-color);
}
