/* ===== GLOBAL ===== */
body{
    margin:0;
    font-family: 'Segoe UI', Arial;
    background:#f4f6f8;
    color:#333;

    display:flex;
    justify-content:center;
}

html, body{
    margin:0;
    padding:0;
    width:100%;
    overflow-x:hidden; /* ?? ini kunci utama */
}

/* ===== SIDEBAR ===== */
.sidebar{
    position:fixed;
    width:250px;
    height:100%;
    background:#1f3a5f;
    box-shadow:2px 0 12px rgba(0,0,0,.15);
}

.sidebar h1{
    color:#fff;
    padding:20px;
    margin:0;
    font-size:18px;
    border-bottom:1px solid rgba(255,255,255,.2);
}

.menu a{
    display:block;
    padding:14px 20px;
    color:#fff;
    text-decoration:none;
    font-size:14px;
}

.menu a:hover{
    background:rgba(255,255,255,.15);
}

/* ===== MAIN ===== */
.main{
    margin-left:250px;
    padding:25px;
}

/* ===== HEADER BOX ===== */
.info-box{
    background:#fff;
    padding:20px;
    border-radius:14px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    margin-bottom:25px;
}

/* ===== CARD ===== */
.card{
    background:#fff;
    padding:25px;
    border-radius:18px;
    box-shadow:0 8px 20px rgba(0,0,0,.12);
    transition:.3s;
}

.card:hover{
    transform:translateY(-6px);
}

/* ===== GRID ===== */
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:20px;
}

/* ===== FORM ===== */
.form-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

label{
    font-size:13px;
    font-weight:bold;
}

input,select{
    width:100%;
    padding:12px;
    border-radius:10px;
    border:1px solid #ccc;
    margin-top:5px;
}

/* ===== BUTTON ===== */
.btn{
    padding:12px 20px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
}

.btn-primary{
    background:#1f3a5f;
    color:#fff;
}

.btn-secondary{
    background:#bdc3c7;
}

/* ===== BADGE ===== */
.badge{
    padding:6px 10px;
    border-radius:8px;
    font-size:12px;
    color:#fff;
}

.green{background:#27ae60;}
.orange{background:#f39c12;}
.blue{background:#3498db;}
.red{background:#e74c3c;}

/* ===== TABLE ===== */
table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
}

th,td{
    padding:12px;
    border-bottom:1px solid #eee;
}

th{
    background:#1f3a5f;
    color:#fff;
}

/* ===== MOBILE APP STYLE ===== */
.mobile{
    max-width:420px;
    margin:auto;
    background:#fff;
    min-height:100vh;
}

.mobile-header{
    background:#1f3a5f;
    color:#fff;
    padding:20px;
    border-radius:0 0 20px 20px;
}

.mobile-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    padding:15px;
}

.mobile-btn{
    padding:25px;
    border-radius:16px;
    text-align:center;
    color:#fff;
    font-weight:bold;
}

.nav-bottom{
    position:fixed;
    bottom:0;
    width:100%;
    max-width:420px;
    background:#fff;
    display:flex;
    justify-content:space-around;
    padding:10px 0;
    box-shadow:0 -2px 10px rgba(0,0,0,.1);
}


/* INPUT */
.input{
    width:100%;
    padding:14px;
    margin:10px 0;
    border-radius:12px;
    border:1px solid #ccc;
    font-size:16px;
}

/* LIST RIWAYAT */
.list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.list-item{
    background:#fff;
    padding:15px;
    border-radius:12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 4px 10px rgba(0,0,0,.08);
}

.green-text{color:green;font-weight:bold;}
.red-text{color:red;font-weight:bold;}


/* APP CONTAINER */
.app{
    max-width:420px;
    margin:auto;
    background:#f4f6f8;
    min-height:100vh;
}

/* SALDO CARD */
.saldo-card{
    background:linear-gradient(135deg,#4facfe,#00f2fe);
    color:#fff;
    padding:20px;
    border-radius:0 0 25px 25px;
    box-shadow:0 8px 20px rgba(0,0,0,.2);
}

.saldo-card h1{
    margin:5px 0;
    font-size:28px;
}

.saldo-info{
    display:flex;
    justify-content:space-between;
    margin-top:10px;
}

/* MENU GRID */
.menu-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    padding:15px;
    gap:10px;
    text-align:center;
}

.menu-item{
    cursor:pointer;
}

.icon-circle{
    width:55px;
    height:55px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:auto;
    font-size:22px;
    color:#fff;
}

/* COLORS */
.blue{background:#3498db;}
.green{background:#2ecc71;}
.orange{background:#f39c12;}
.purple{background:#9b59b6;}

/* SECTION */
.section{
    padding:15px;
}

/* LIST */
.list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.list-item{
    background:#fff;
    padding:12px;
    border-radius:12px;
    display:flex;
    justify-content:space-between;
    box-shadow:0 4px 10px rgba(0,0,0,.08);
}

.green-text{color:green;font-weight:bold;}
.red-text{color:red;font-weight:bold;}

/* LOGOUT */
.logout-btn{
    display:block;
    text-align:center;
    padding:15px;
    background:#e74c3c;
    color:#fff;
    border-radius:12px;
    text-decoration:none;
    font-weight:bold;
}

/* BOTTOM NAV */
.bottom-nav{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 420px;
    margin: auto;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,.1);
    text-align: center;
    font-size: 12px;

    /* ?? Tambahan font emoji agar karakter terbaca */
    font-family: 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', sans-serif;
}

.bottom-nav div{
    cursor: pointer;
}

.bottom-nav .active{
    color: #3498db;
    font-weight: bold;
}

.nav-emoji {
    font-family: 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', 'Twemoji Mozilla', sans-serif;
    font-size: 18px;
    display: block;
}


/* HERO IMAGE */
.hero{
    width:100%;
    height:150px;
    position:relative;
    overflow:hidden;
}

.hero img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    border-radius:0 0 25px 25px; /* tetap agar melengkung */
}
/* overlay lebih soft + gradient */
.hero-overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:linear-gradient(to bottom, rgba(0,0,0,.4), rgba(0,0,0,.2));
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    padding:15px;
}



/* tambahan nama user kanan atas */
.user-badge{
    color:#fff;
    font-size:12px;
    background:rgba(255,255,255,.2);
    padding:5px 10px;
    border-radius:20px;
	
}


.app{
    width:100%;
    max-width:420px;
    margin:0 auto;
    background:#f4f6f8;
    min-height:100vh;

    overflow:hidden; /* cegah bocor */
    position:relative; /* penting */
}

img{
    max-width:100%;
    display:block;
}

.icon-circle.blue {
    background-color: #3498db; /* Biru Powerpoint/Santara style */
}