/* MASTER STYLE MOMENKITO (FULL VERSION) */

:root {
    --primary: #8e7052;     /* Gold MomenKito */
    --secondary: #2c3e50;   /* Navy Dark */
    --bg-light: #f4f6f9;
    --sidebar-width: 260px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: #333;
    overflow-x: hidden;
}

/* =========================================
   1. LOGIN & REGISTER STYLE (YANG HILANG TADI)
   ========================================= */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f4f6f9;
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    border: none;
}

.auth-header {
    background: var(--secondary);
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.form-control {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(142, 112, 82, 0.1);
}

.btn-gold {
    background: var(--primary);
    color: white;
    font-weight: 600;
    border: none;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    transition: 0.3s;
}
.btn-gold:hover { background: #70583d; color: white; }

.text-gold { color: var(--primary); text-decoration: none; }
.text-gold:hover { text-decoration: underline; }


/* =========================================
   2. DASHBOARD SIDEBAR & LAYOUT
   ========================================= */
#wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar-wrapper {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: var(--secondary);
    color: #fff;
    transition: all 0.3s;
    
    /* Agar Sidebar bisa discroll terpisah */
    height: 100vh;
    position: fixed; top: 0; left: 0;
    z-index: 1050;
    overflow-y: auto;
}

/* Scrollbar cantik buat sidebar */
#sidebar-wrapper::-webkit-scrollbar { width: 5px; }
#sidebar-wrapper::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

/* Header Sidebar */
#sidebar-wrapper .sidebar-header {
    padding: 25px;
    background: rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Menu Item */
#sidebar-wrapper .list-group-item {
    background: transparent;
    color: #b0b8c1;
    border: none;
    padding: 12px 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: 0.2s;
}

#sidebar-wrapper .list-group-item:hover,
#sidebar-wrapper .list-group-item.active {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-left: 4px solid var(--primary);
}

#sidebar-wrapper .menu-divider {
    padding: 20px 25px 5px;
    font-size: 10px;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 1px;
    font-weight: 600;
}

.menu-icon { width: 25px; text-align: center; margin-right: 10px; }
.locked-menu { opacity: 0.5; cursor: not-allowed; }

/* Konten Halaman */
#page-content-wrapper {
    width: 100%;
    padding: 20px;
    margin-left: var(--sidebar-width);
    transition: all 0.3s;
    min-height: 100vh;
}

/* =========================================
   3. RESPONSIVE MOBILE
   ========================================= */
@media (max-width: 768px) {
    #sidebar-wrapper { margin-left: -260px; } /* Sembunyi */
    #page-content-wrapper { margin-left: 0; padding: 15px; } /* Full Width */
    
    #wrapper.toggled #sidebar-wrapper { margin-left: 0; box-shadow: 5px 0 20px rgba(0,0,0,0.5); }
    
    /* Overlay Hitam */
    #wrapper.toggled::before {
        content: ""; position: fixed; top:0; left:0; right:0; bottom:0;
        background: rgba(0,0,0,0.5); z-index: 1040;
    }
}

/* =========================================
   4. TABEL JADI KARTU (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    .table-mobile-responsive thead { display: none; }
    .table-mobile-responsive tbody tr {
        display: block; background: #fff; border-radius: 12px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05); margin-bottom: 15px; padding: 15px;
        border: 1px solid #eee; position: relative;
    }
    .table-mobile-responsive tbody td {
        display: block; width: 100%; padding: 3px 0; border: none; text-align: left;
    }
    .table-mobile-responsive tbody td:last-child {
        border-top: 1px dashed #eee; margin-top: 10px; padding-top: 10px;
        display: flex; gap: 5px; justify-content: flex-end;
    }
    .table-mobile-responsive .badge-nominal {
        position: absolute; top: 15px; right: 15px; font-size: 14px;
    }
}

/* Widgets */
.stat-card {
    background: white; border-radius: 12px; padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); margin-bottom: 20px; border: none;
}
.table-card {
    background: white; border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); overflow: hidden;
}