/* ===== 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; /* cegah scroll horizontal */
}

/* ===== SIDEBAR ===== */
.sidebar{
    position:fixed;
    width:250px;
    height:100%;
   
    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:#9b59b6; /* ungu OVO */
    color:#fff;
}

.btn-secondary{
    background:#bdc3c7;
}

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

.green{background:#2ecc71;}
.orange{background:#f39c12;}

.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:#9b59b6; /* ungu OVO */
    color:#fff;
}

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

.mobile-header{
    background:#9b59b6; /* ungu OVO */
    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 */
.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);
    text-align:center;
    font-size:12px;
    font-family: 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', sans-serif;
}

.nav-bottom div{
    cursor:pointer;
}

.nav-bottom .active{
    color:#9b59b6; /* ungu OVO */
    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;
}



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

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

/* ===== ICON CIRCLE ===== */
.icon-circle.blue {
    background-color:#9b59b6; /* ungu OVO */
}

.icon-circle.green {
    background-color:#2ecc71;
}

.icon-circle.orange {
    background-color:#f39c12;
}

.icon-circle.purple {
    background-color:#9b59b6; /* ungu OVO */
}


/* ===== SALDO CARD (FIX RAPAT KE HERO) ===== */
.saldo-card {
    background-color: #5DADE2 !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.15) !important;
    border-radius: 20px;
    padding: 18px;

     margin: 0px 15px 0 15px !important;  /* atas 5px, bawah 0 */
}
    position: relative;
    z-index: 3;
}

.saldo-card h1{
    margin:15px 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;
}

/* ===== LIST & SECTIONS ===== */
.section{
    padding:15px;
}

.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;}
.white-text {
    color: #fff;
    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;
}

.hero{
    width:100%;
    max-width:420px;
    margin:0 auto;
    position:relative;
    overflow:visible;     /* jangan hidden */
    border-bottom-left-radius:20px;
    border-bottom-right-radius:20px;
}

.hero img{
    width:auto;           /* agar tidak melebar */
    max-width:368px;      /* ukuran asli gambar */
    height:auto;          /* proporsional */
    display:block;
    margin:0 auto;        /* tengah horizontal */
    border-radius:20px;   /* optional */
    padding:0;            /* hapus padding agar tidak terpotong */
    box-sizing:border-box;
}



