/* =====================================================
   MYTAMAN — Custom CSS (SIMPLE)
   ===================================================== */

/* -----------------------------------------------------
   ASAS
   ----------------------------------------------------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
}

/* -----------------------------------------------------
   BUTANG HAMBURGER — DEFAULT: SEMBUNYI
   ----------------------------------------------------- */
.btn-hamburger {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.25rem 0.75rem;
    margin-right: 0.5rem;
    cursor: pointer;
    line-height: 1;
}
.btn-hamburger:hover {
    opacity: 0.8;
}
.btn-hamburger:focus {
    outline: none;
}

/* Muncul HANYA pada mobile */
@media (max-width: 767.98px) {
    .btn-hamburger {
        display: inline-block;
    }
}

/* -----------------------------------------------------
   SIDEBAR DESKTOP
   ----------------------------------------------------- */
.sidebar-desktop {
    min-height: calc(100vh - 56px);
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
    max-height: calc(100vh - 56px);
}

.sidebar-desktop::-webkit-scrollbar { width: 6px; }
.sidebar-desktop::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* -----------------------------------------------------
   MENU ITEMS
   ----------------------------------------------------- */
.list-group-item {
    border: none;
    border-radius: 0;
    padding: 0.85rem 1.25rem;
    color: #444;
    transition: all 0.15s ease;
    font-size: 0.92rem;
    background: transparent;
}

.list-group-item:hover {
    background-color: #f1f8e9;
    color: #2E7D32;
}

.list-group-item.active {
    background-color: #2E7D32;
    color: white;
    font-weight: 600;
}

.list-group-item i {
    width: 20px;
    margin-right: 8px;
    display: inline-block;
    text-align: center;
}

/* -----------------------------------------------------
   BUTANG
   ----------------------------------------------------- */
.btn-success {
    background-color: #2E7D32;
    border-color: #2E7D32;
}
.btn-success:hover,
.btn-success:focus {
    background-color: #1B5E20;
    border-color: #1B5E20;
}

/* -----------------------------------------------------
   KAD
   ----------------------------------------------------- */
.card {
    border-radius: 12px;
}

/* -----------------------------------------------------
   JADUAL
   ----------------------------------------------------- */
.table > :not(caption) > * > * {
    padding: 0.65rem 0.75rem;
}

.table .btn-sm {
    padding: 0.2rem 0.45rem;
    font-size: 0.8rem;
}

/* -----------------------------------------------------
   PAGINATION
   ----------------------------------------------------- */
.pagination .page-link {
    color: #2E7D32;
}
.pagination .page-item.active .page-link {
    background-color: #2E7D32;
    border-color: #2E7D32;
    color: white;
}

/* -----------------------------------------------------
   BORANG
   ----------------------------------------------------- */
.form-control:focus,
.form-select:focus {
    border-color: #2E7D32;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.15);
}

/* -----------------------------------------------------
   BADGE
   ----------------------------------------------------- */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* -----------------------------------------------------
   OFFCANVAS (mobile sidebar)
   ----------------------------------------------------- */
.offcanvas {
    width: 260px !important;
}

.offcanvas-body {
    padding: 0 !important;
}

/* -----------------------------------------------------
   FOOTER
   ----------------------------------------------------- */
footer {
    font-size: 0.85rem;
}

/* -----------------------------------------------------
   UTILITI
   ----------------------------------------------------- */
* {
    -webkit-tap-highlight-color: transparent;
}