/* * MBIO WALLET - MASTER STYLESHEET V6.0 (FINAL)
 * Font: Inter (Modern Sans Serif)
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Palette Warna Utama */
    --primary: #0066ff;       /* Biru Brand */
    --primary-dark: #0052cc;  /* Biru Gelap (Hover) */
    --secondary: #f0f2f5;     /* Background Abu Muda */
    --white: #ffffff;
    
    /* Warna Teks */
    --text-dark: #1f2937;     /* Hitam Pekat */
    --text-grey: #6b7280;     /* Abu-abu Teks */
    --text-light: #9ca3af;    /* Abu-abu Muda */

    /* Warna Status */
    --success: #10b981;       /* Hijau (Berhasil/Aktif) */
    --warning: #f59e0b;       /* Kuning (Pending) */
    --danger: #ef4444;        /* Merah (Gagal/Hapus) */
    --info: #3b82f6;          /* Biru Info */

    /* UI Variables */
    --radius: 16px;           /* Lengkungan Sudut Standar */
    --shadow: 0 4px 20px rgba(0,0,0,0.05); /* Bayangan Halus */
    --max-w: 480px;           /* Lebar Maksimal Tampilan HP */
}

/* =========================================
   1. RESET & BASE LAYOUT
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; }

body { 
    background-color: #e5e7eb; /* Abu-abu latar luar */
    display: flex; 
    justify-content: center; 
    min-height: 100vh; 
}

.app-container {
    width: 100%; 
    max-width: var(--max-w); 
    background: var(--secondary);
    min-height: 100vh; 
    position: relative; 
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    padding-bottom: 90px; /* Ruang untuk Bottom Nav */
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { object-fit: cover; display: block; }

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.app-header {
    background: var(--primary); 
    color: var(--white);
    padding: 25px 20px 50px 20px; /* Bawah dilebihkan untuk efek lengkung */
    border-bottom-left-radius: 30px; 
    border-bottom-right-radius: 30px;
    position: relative; 
    z-index: 10;
    transition: 0.3s;
}

.app-header h3 { font-size: 18px; font-weight: 700; margin: 0; }
.app-header small { opacity: 0.9; font-size: 12px; }
.app-header a { color: var(--white); display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }

/* Bottom Navigation (Menu Bawah) */
.bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: var(--max-w); height: 75px;
    background: var(--white); 
    display: flex; justify-content: space-around; align-items: center; 
    border-top: 1px solid #f3f4f6; z-index: 999;
    border-top-left-radius: 25px; border-top-right-radius: 25px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.03);
}

.nav-item { 
    display: flex; flex-direction: column; align-items: center; 
    text-decoration: none; color: var(--text-light); 
    font-size: 10px; font-weight: 600; gap: 4px; transition: 0.3s; 
}
.nav-item i { font-size: 20px; margin-bottom: 2px; }
.nav-item.active { color: var(--primary); }

/* Tombol Tengah Menonjol */
.nav-center {
    background: var(--primary); 
    width: 55px; height: 55px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; 
    color: var(--white) !important; font-size: 20px;
    margin-top: -35px; border: 5px solid var(--white); 
    box-shadow: 0 8px 15px rgba(0,102,255,0.3);
    transition: 0.2s;
}
.nav-center:active { transform: scale(0.95); }

/* =========================================
   3. CARDS & CONTAINERS
   ========================================= */
.card {
    background: var(--white); border-radius: var(--radius);
    padding: 20px; margin: 0 20px 20px 20px;
    box-shadow: var(--shadow); 
    position: relative; z-index: 20;
    border: 1px solid rgba(0,0,0,0.02);
}

/* Kartu yang naik ke atas header (Floating) */
.card-floating { margin-top: -35px; }

/* Kartu Saldo Premium (Homepage) */
.card-balance {
    background: linear-gradient(135deg, #0066ff 0%, #0044aa 100%);
    color: white; border-radius: 20px; padding: 25px 20px;
    margin: -55px 20px 20px 20px; position: relative; z-index: 20;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3); overflow: hidden;
}
/* Hiasan background kartu saldo */
.card-balance::before {
    content: ''; position: absolute; top: -50px; right: -50px;
    width: 150px; height: 150px; background: rgba(255,255,255,0.1); border-radius: 50%;
}
.card-balance::after {
    content: ''; position: absolute; bottom: -30px; left: -30px;
    width: 100px; height: 100px; background: rgba(255,255,255,0.1); border-radius: 50%;
}

.balance-actions {
    display: flex; justify-content: space-around; margin-top: 20px; position: relative; z-index: 2;
}
.action-btn {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: white; font-size: 11px; font-weight: 500;
}
.action-icon {
    width: 45px; height: 45px; background: rgba(255,255,255,0.2);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 18px; backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.3);
}
.action-btn:active .action-icon { transform: scale(0.9); background: rgba(255,255,255,0.3); }

/* =========================================
   4. FORMS & BUTTONS
   ========================================= */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }

.form-control {
    width: 100%; padding: 14px 16px; border: 1px solid #e5e7eb;
    border-radius: 12px; background: #f9fafb; 
    font-size: 14px; color: var(--text-dark); outline: none; transition: 0.3s;
}
.form-control:focus { border-color: var(--primary); background: var(--white); }

textarea.form-control { resize: vertical; min-height: 80px; font-family: inherit; }

.btn-primary {
    display: block; width: 100%; padding: 15px;
    background: var(--primary); color: var(--white); border: none;
    border-radius: 12px; font-weight: 600; font-size: 14px; cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,102,255,0.2); transition: 0.2s; 
    text-align: center; text-decoration: none;
}
.btn-primary:active { transform: scale(0.98); background: var(--primary-dark); }

/* =========================================
   5. GRID SYSTEMS & MENUS
   ========================================= */
/* Grid Dompet (Pilihan Nominal) */
.wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 15px; }
.nominal-box {
    background: white; padding: 15px; border-radius: 12px; text-align: center;
    border: 1px solid #e5e7eb; cursor: pointer; font-weight: 600; color: var(--text-dark); 
    box-shadow: var(--shadow); transition: 0.2s;
}
.nominal-box.active { border-color: var(--primary); background: #eff6ff; color: var(--primary); }
input[type=radio] { display: none; }

/* Grid Menu Utama (Homepage & Admin) */
.main-menu-grid, .grid-2 { 
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px 10px; 
}
.grid-2 { grid-template-columns: 1fr 1fr; gap: 15px; }

.menu-item, .menu-icon {
    display: flex; flex-direction: column; align-items: center; text-decoration: none;
    gap: 8px; text-align: center; cursor: pointer;
}
.menu-box, .menu-icon {
    width: 50px; height: 50px; border-radius: 16px; background: white;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: 0.2s; color: var(--text-dark);
}
.menu-item span, .menu-icon span { font-size: 11px; color: var(--text-dark); font-weight: 500; }
.menu-item:active .menu-box { transform: scale(0.95); }

/* Grid Produk Market */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* =========================================
   6. COMPONENTS (Banner, Badges, Tabs)
   ========================================= */
/* Banner Slider (Snap) */
.banner-wrapper {
    display: flex; overflow-x: auto; gap: 15px; padding: 0 20px 20px 20px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.banner-wrapper::-webkit-scrollbar { display: none; }
.banner-item {
    min-width: 100%; height: 150px; border-radius: 16px; overflow: hidden;
    scroll-snap-align: center; box-shadow: var(--shadow); position: relative;
}
.banner-item img { width: 100%; height: 100%; object-fit: cover; }

/* Status Badges */
.badge { padding: 4px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.bg-pending { background: #fffbeb; color: #b45309; }   /* Kuning */
.bg-active { background: #dcfce7; color: #166534; }    /* Hijau Muda */
.bg-success { background: #10b981; color: #fff; }      /* Hijau Solid */
.bg-rejected { background: #fee2e2; color: #991b1b; }  /* Merah */
.bg-info { background: #eff6ff; color: #1e40af; }      /* Biru */

/* Tab Navigasi (Admin) */
.tab-nav { 
    display: flex; background: white; padding: 5px; border-radius: 12px; 
    margin: -20px 20px 20px 20px; position: relative; z-index: 20; 
    box-shadow: var(--shadow); 
}
.tab-item { 
    flex: 1; text-align: center; padding: 10px; border-radius: 8px; 
    font-size: 12px; font-weight: 600; color: var(--text-light); 
    text-decoration: none; transition: 0.2s; 
}
.tab-item.active { background: #1e293b; color: white; }

/* =========================================
   7. ADMIN PANEL SPECIFIC
   ========================================= */
/* Header Admin (Warna Gelap) - Digunakan di file Admin */
.admin-header { background: #1e293b !important; }

/* Card Transaksi/User */
.list-card {
    background: white; padding: 15px; border-radius: 12px; margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); border-left: 4px solid #ccc;
    display: flex; justify-content: space-between; align-items: center;
}