/*
Theme Name: PM Theme App
Author: Achik Group Indonesia
Description: Tema PPOB Mobile First (App Style) - Responsive & Modern.
Version: 1.6.0
*/

:root {
    /* Variabel Default Tema */
    --primary: #6a11cb;
    --secondary: #2575fc;
    --gradient: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    --bg-body: #f0f2f5;
    --text-dark: #333;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --max-width: 480px; 

    /* Variabel Baru (Untuk Banner Promo) */
    --app-purple: #6a11cb;
    --app-purple-dark: #4a0072; /* Warna ungu tua untuk banner promo */
    --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #e4e6eb;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
}

/* CONTAINER UTAMA */
.app-container {
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: #f8f9fa;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    padding-bottom: 80px; 
    overflow-x: hidden;
}

/* --- HEADER SECTION --- */
.app-header {
    background: var(--gradient);
    color: var(--white);
    padding: 25px 25px 60px 25px; 
    border-radius: 0 0 30px 30px;
    position: relative;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-name { font-size: 14px; font-weight: 500; line-height: 1.4; }
.user-name strong { font-size: 18px; display: block; font-weight: 700; }

.saldo-display { text-align: right; }
.saldo-label { font-size: 12px; opacity: 0.9; }
.saldo-amount { font-size: 20px; font-weight: bold; margin-top: 2px; }

/* --- ACTION BAR --- */
.action-bar {
    background: var(--white);
    margin: -40px 20px 20px 20px; 
    padding: 15px 10px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center; 
    align-items: flex-start;
    gap: 15px;
    position: relative;
    z-index: 10;
}

.action-item { 
    text-align: center; 
    text-decoration: none; 
    color: var(--text-dark); 
    font-size: 11px; 
    font-weight: 600; 
    flex: 1;
    max-width: 80px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.action-icon {
    width: 45px; height: 45px;
    background: #f0f4ff;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 22px;
    transition: 0.2s;
}
.action-item:active .action-icon { transform: scale(0.95); background: #e0e7ff; }

/* ========================================= */
/* --- BANNER NOTIFIKASI & PROMO --- */
/* ========================================= */

/* 1. Notification Banner (Marquee) */
.notification-banner {
    background-color: #fff;
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    box-shadow: var(--card-shadow);
    margin: 15px 20px; 
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.notification-banner .notification-icon {
    color: var(--app-purple);
    margin-right: 10px;
    font-size: 20px;
    flex-shrink: 0;
}

/* Container Marquee CSS */
.marquee-container {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 20px; 
    display: block;
}

.marquee-text {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    
    /* Animasi Jalan (18s) */
    animation: marquee-scroll 20s linear infinite;
    will-change: transform;
}

@keyframes marquee-scroll {
    0% { transform: translate3d(100%, 0, 0); } 
    100% { transform: translate3d(-100%, 0, 0); } 
}

/* 2. Promo Banner (Kotak Ungu) */
.promo-banner {
    background-color: var(--app-purple-dark);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 20px; 
    box-shadow: var(--card-shadow);
}

.promo-info { display: flex; flex-direction: column; }
.promo-title { font-weight: bold; font-size: 15px; margin-bottom: 2px; }
.promo-subtitle { font-size: 11px; opacity: 0.8; }

.promo-link {
    background: #fff;
    color: var(--app-purple);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.2s;
}
.promo-link:active { transform: scale(0.95); }

/* --- SLIDER / BANNER --- */
.pm-slider-container {
    margin: 0 20px 15px 20px; 
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 1;
}
.pm-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}
.pm-slide {
    width: 100%;
    flex-shrink: 0;
    height: auto;
    aspect-ratio: 3.2/1; 
    object-fit: cover;
}

/* --- GRID MENU --- */
.section-title { 
    padding: 0 20px; 
    font-size: 16px; 
    font-weight: 700; 
    margin-bottom: 15px; 
    margin-top: 10px; 
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lihat-semua { font-size: 12px; color: var(--primary); text-decoration: none; }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 10px;
    padding: 0 20px;
}

.menu-item {
    background: var(--white);
    border-radius: 12px;
    padding: 15px 5px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    text-decoration: none;
    color: var(--text-dark);
    transition: 0.2s;
    border: 1px solid transparent;
}
.menu-item:hover { transform: translateY(-3px); border-color: var(--secondary); }
.menu-item img { width: 40px; height: 40px; margin-bottom: 8px; object-fit: contain; }
.menu-item span { display: block; font-size: 11px; font-weight: 600; line-height: 1.2; color: #555; }

/* --- FOOTER NAVIGATION (FIXED & RAPI) --- */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); /* Tengah Horizontal */
    width: 100%;
    max-width: var(--max-width); 
    
    background: #ffffff;
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    
    /* Layout Flex Horizontal */
    display: flex;
    justify-content: space-around; 
    align-items: center;
    padding: 8px 0; /* Padding atas bawah */
    z-index: 9999; /* Layer paling atas */
}

.nav-item {
    /* Layout Flex Vertikal (Ikon Atas, Teks Bawah) */
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    
    text-decoration: none;
    color: #999; /* Warna abu */
    flex: 1; 
    transition: 0.2s ease-in-out;
    cursor: pointer;
}

/* Style Ikon (Lebih Besar) */
.nav-icon {
    font-size: 24px; 
    width: 30px;
    height: 30px;
    margin-bottom: 4px; /* Jarak ikon ke teks */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style Teks (Kecil & Rapi) */
.nav-text {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
}

/* Saat Menu Aktif */
.nav-item.active {
    color: var(--primary); /* Warna Ungu saat aktif */
}
.nav-item.active .nav-text {
    font-weight: 700;
}
.nav-item.active .nav-icon {
    transform: translateY(-2px); /* Efek naik dikit */
}

/* Efek Hover (Desktop) */
.nav-item:hover {
    color: var(--secondary);
    background-color: rgba(0,0,0,0.02);
}

/* --- LANDING PAGE --- */
.landing-container {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.landing-bg-circle {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(106, 17, 203, 0.1);
    border-radius: 50%;
    z-index: 0;
}
.landing-content { position: relative; z-index: 1; width: 100%; }
.landing-logo {
    width: 80px; height: 80px; margin-bottom: 20px;
    border-radius: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.hero-illustration {
    width: 80%; max-width: 250px; margin: 20px auto 40px auto; display: block;
}
.landing-title { font-size: 24px; font-weight: 800; color: #333; margin-bottom: 10px; }
.landing-desc { font-size: 14px; color: #777; line-height: 1.6; margin-bottom: 40px; }
.btn-landing {
    display: block; width: 100%; padding: 15px;
    border-radius: 12px; font-weight: 700; font-size: 15px;
    text-decoration: none; margin-bottom: 15px; transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.btn-primary {
    background: var(--gradient); color: #fff;
    box-shadow: 0 8px 20px rgba(37, 117, 252, 0.3); border: none;
}
.btn-outline {
    background: #fff; color: var(--primary); border: 2px solid #f0f0f0;
}
.btn-primary:active { transform: scale(0.98); }
.btn-outline:active { background: #f9f9f9; }
.landing-footer { margin-top: 30px; font-size: 11px; color: #aaa; }

/* --- PAGINATION (Cantik & Tengah) --- */
.pm-pagination {
    margin: 30px 0 50px 0;
    display: flex;
    justify-content: center;
}

.pm-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 10px 15px;
    border-radius: 50px; /* Bentuk Kapsul */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.pm-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%; /* Bulat */
    background: transparent;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.pm-pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(106, 17, 203, 0.4);
    transform: scale(1.1); /* Sedikit membesar */
}

.pm-pagination .page-numbers:hover:not(.current) {
    background: #f0f4ff;
    color: var(--primary);
}

.pm-pagination .page-numbers.dots {
    color: #ccc;
}