body {
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;              /* spasi huruf rapi */
    color: var(--bs-primary);                     /* warna teks gelap */
    text-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.1);

    margin: 0; 

}

/* Laptop 14-15 inch */
                         /* hapus margin default h5 */
   

a{
    text-decoration:none;
}
/*------------------------------------------------------------------START SIDEBAR --------------------------------------------------------------------*/



.sidebar {
    width: 200px;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    left: 0;
    top: 0;
    transition: all 0.3s ease-in-out;
    z-index: 1200;
    display: flex;
    flex-direction: column;
}

.sidebar.hidden {
    left: -250px;
}

/* LOGO (STICKY DI ATAS) */
.sidebar-logo {
    text-align: center;
    padding: 15px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

.sidebar-logo {
    display: flex;
    align-items: center;
 
}

.sidebar-logo-img {
    width: 30px; /* Sesuaikan ukuran logo */
    height: auto;
}

.sidebar-brand span {
    font-size: 13px;
    font-weight: bold;
}

/* MENU (SCROLLABLE) */
.sidebar-menu {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    
}

/* Perbaikan Jarak Menu */
.sidebar-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px; /* Tambah padding kiri agar lebih dekat */
    color: black;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    border-radius: 5px;
}

/* Jarak lebih dekat antara ikon & teks menu */
.sidebar-menu a i:first-child {
    margin-right: 8px; /* Mengurangi jarak ikon dengan teks */
}

/* Jarak panah tetap jauh */
.sidebar-menu a i:last-child {
    margin-left: auto; /* Biarkan panah tetap jauh di kanan */
}

.sidebar-menu a:hover {
    background-color: #f0f0f0;
}


/* DROPDOWN */
.submenu {
    display: none;
    padding-left: 20px;
        border-radius: 5px;
}

.submenu a {
    font-weight: normal;
    padding: 8px 10px;
    display: block;
}

.submenu a:hover {
    background-color: #e0e0e0;
}

.rotate {
    transform: rotate(180deg);
    transition: transform 0.3s ease-in-out;
}

/* LOGOUT BUTTON (STICKY DI BAWAH) */
.sidebar-footer {
    padding: 15px;
    text-align: center;
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 100;
}

.logout-btn {
    width: 70%;
   
    background-color: #dc3545;
    color: white;
    border: none;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.logout-btn:hover {
    background-color: #c82333;
}

/* -----------------------------------------------------------------END SIDEBAR ----------------------------------------------------------------------*/

/* -----------------------------------------------------------------START HEADER--------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 200px;
    width: calc(100% - 200px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transition: all 0.3s ease-in-out;
    background: #ffffff; /* Warna latar belakang putih */
}

.collapsed .header {
    left: 0;
    width: 100%;
}

.burger-menu {
    cursor: pointer;
    font-size: 20px;   
}

/* --------------------------------------------------------------------END HEADER -------------------------------------------------------------------*/

/* ------------------------------------------------------------------START MAIN CONTENT------------------------------------------------------------- */
.content {
    background-color: #e7e7e7; /* abu muda */
    margin-left: 200px;
    padding-top: 15vh;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10vh;
    height: 98vh; /* Pastikan content mengisi seluruh layar */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Hindari overflow */
    transition: all 0.3s ease-in-out;
}

.collapsed .content {
    margin-left: 0;
}

/* --------------------------------------------------------------------END MAIN CONTENT------------------------------------------------------------- */

/* --------------------------------------------------------------------Stat Container ------------------------------------------------------------- */
.container {

    max-width: 100%;
    width: 100%;
    height: 100%; /* Agar container tidak melebihi .content */
    max-height: 100%; /* Pastikan tetap dalam batas */
    padding: 0;
}

.container::-webkit-scrollbar {
  
    display: none; /* Chrome, Safari, Edge */
}
/* --------------------------------------------------------------------Stat Container ------------------------------------------------------------- */


/* -N----------------------------------------------------------------------Stat Card ---------------------------------------------------------------- */
.card {
    display: flex;
    flex-direction: column;
    height: 100%; /* penuh sesuai parent */
    background: #f8f9fa;
}

.card-header {
    flex: 0 0 auto; /* tinggi otomatis, min 10% */
    padding: 1rem;
    background: #f8f9fa;
    color: #fff;
    border:none;
}

.card-body {
    flex: 1 1 auto; /* body fleksibel sesuai sisa */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-footer {
    flex: 0 0 auto; /* tinggi otomatis, sekitar 10% */
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.85rem;
     border:none;
}

.card-header > h5 {
    font-family: 'Roboto', sans-serif;  /* font profesional */
    font-weight: 700;                   /* bold tapi elegan */
    font-size: 1.25rem;                 /* ukuran lebih besar */
    letter-spacing: 0.5px;              /* spasi huruf rapi */
    color: var(--bs-primary);                    /* warna teks gelap */
    text-align: center;                 /* center */
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* shadow halus */
    margin: 0;                           /* hapus margin default h5 */
    text-transform: uppercase;
}
.card-header > h6 {
    font-family: 'Roboto', sans-serif;  /* font profesional */
    font-weight: 700;                   /* bold tapi elegan */
    font-size: 12px;                 /* ukuran lebih besar */
    letter-spacing: 0.5px;              /* spasi huruf rapi */
    color: var(--bs-primary);                     /* warna teks gelap */
                /* center */
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* shadow halus */
    margin: 0;                           /* hapus margin default h5 */
    text-transform: uppercase;
}


/* -N-------------------------------------------------------------------Stat Table ------------------------------------------------------------- */
.table-responsive {

    flex: 1 1 auto;
    overflow-y: auto; /* scroll jika isi banyak */
    overflow-x: auto;
}

.table thead {

    color: #fff;
    position: sticky;   /* tetap di atas saat scroll */
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15); /* efek timbul */
}

.table thead th {
    padding: 0.75rem;
    text-transform: uppercase;
    font-weight: 750;
    font-size: 12px;
}

table tbody tr td {
    height: 40px;         /* tinggi konsisten */
    vertical-align: middle;
    padding: 20px;         /* sama seperti baris yang ada data */
}

.table tfoot {
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: #f8f9fa; /* mirip bg-light */
  box-shadow: 0 -2px 5px rgba(0,0,0,0.15); /* efek timbul dari atas */
}

.table-container-v2 {
    flex: 1; /* penuh isi card-body */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* biar scroll tetap di wrapper */
}

.table-wrapper-v2 {
    flex: 1;           /* penuh sesuai container */
    overflow-y: auto;  /* scroll vertikal */
    overflow-x: auto;  /* scroll horizontal */
}

/* Tabel */
.table-v2 {
    width: 100%;
    border:none;
    font-family: Arial, sans-serif;
    
}

/* Header */
.table-v2 thead {
    background-color: #02254a;
    color: #fff;
    position: sticky;   /* tetap di atas saat scroll */
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15); /* efek timbul */
    
}

/* Sel Header */
.table-v2 th {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

/* Isi Tabel */
.table-v2 td {
    padding: 5px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}


/* Warna selang-seling */
.table-v2 tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.table-v2 tbody tr:nth-child(even) {
    background-color: #e0e0e0;
}

/* Hover Effect */
.table-v2 tbody tr:hover {
    background-color: #d0d0d0;
    cursor: pointer;
}

/* ------------------------------------------------------------------------ End Table -------------------------------------------------------------- */



/* ---------------------------------------------------------------------- Stat Modal -------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);        /* blur ada di overlay */
    -webkit-backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* MODAL BOX */
.modal-box {
    background: #fff;                   /* putih bersih tanpa blur */
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    color: #212529;                     /* teks gelap biar kontras */
}

    /* VARIAN UKURAN MODAL */
    .modal-large { width: 95%; max-height: 80vh; }
    .modal-regis { width: 80%; height: 80vh; }
    .modal-medium { width: 60%; max-height: 75vh; }
    .modal-small { width: 40%; max-height: 60vh; }
    .modal-xsmall { width: 20%; max-height: 40vh; }

.modal-header {

    display: flex;
    flex-direction: column; /* biar turun ke bawah */
    align-items: center; /* teks tetap di tengah */
    padding: 15px 0;
}

.modal-header h5 {
  
    color: var(--bs-primary);
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: 1px;
}
.modal-header h6 {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    font-weight: normal;
    opacity: 0.8;
}

.extra-header,
.modal-body,
.modal-body thead th {
  font-size: clamp(0.65rem, 0.8vw, 1rem);
}

/* Laptop 14-15 inch (max 1366px) */
@media (max-width: 1366px) {
  .extra-header,
  .modal-body,
  .modal-body thead th {
    font-size: 0.75rem;  /* lebih kecil lagi */
  }
}
    /* MODAL BODY SCROLLABLE */
    .modal-body {
         padding: 15px 30px;
        flex: 1;
        overflow-y: auto;
  
        background: #ffffffff;  
    }

    /* FOOTER STICKY */
    .modal-footer {
        position: sticky;
        bottom: 0;
        display: flex;
        align-items: center;       /* tengah secara vertikal */
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding: 20px 10px;             /* biar gak terlalu nempel */
       
    }

    /* CLOSE BUTTON */
    .close-btn {
        position: absolute;
        top: 0;
        right: 5px;
        border: none;
        font-size: 20px;
        color: #f31212; /* merah untuk ikon/tulisan */
        cursor: pointer;
        background: transparent; /* biar tombol transparan */
    }

    /* ANIMASI FADE IN */
    .show {
        display: flex !important;
        animation: fadeIn 0.3s ease-in-out;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @media (max-width: 768px) {
    .modal-box {
        width: 90%;       /* lebih kecil biar muat */
        margin: 10px;     /* kasih margin kiri-kanan & atas-bawah */
        max-height: 85vh; /* biar tidak terlalu tinggi */
        padding: 15px;    /* agak lebih rapat di HP */
    }



    .modal-small {
        width: 90%; 
        max-height: 70vh;
    }

    .modal-medium {
        width: 95%;
        max-height: 75vh;
    }

    .modal-large {
        width: 100%;
        max-height: 80vh;
        margin: 10px; /* tetap ada jarak */
    }
}
/* ----------------------------------------------------------------------- End Modal -------------------------------------------------------------- */


/* ---------------------------------------------------------------------Start List ----------------------------------------------------------------*/
/* Sembunyikan scrollbar untuk Chrome, Safari, Edge */
.transaction-list-container::-webkit-scrollbar {
    display: none;
}

/* Sembunyikan scrollbar untuk Firefox */
.transaction-list-container {
    scrollbar-width: none;
}

/* Sembunyikan scrollbar untuk Internet Explorer dan Edge */
.transaction-list-container {
    -ms-overflow-style: none;
}

.transaction-list-container {
  
    border-radius: 12px;
 
 
    overflow-y: auto; /* Aktifkan scroll */
}

.transaction-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.transaction-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 10px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    font-weight: bold;

}

/* Warna selang-seling lebih kontras */
.transaction-list li:nth-child(odd) {
    background-color: #1f518368;
    color: #02254a;
}

.transaction-list li:nth-child(even) {
    background-color: #ffffff;
    color: #02254a;
}

/* Hover Effect */
.transaction-list li:hover {
    background: linear-gradient(135deg, #02254a, #0466c8);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

/* Efek floating */
.transaction-list-container:hover {
 
}

/* Atur kolom kiri dan kanan */
.transaction-list li span {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.transaction-list li span p {
    margin: 3px 0;
    font-size: 14px;
}


/* ---------------------------------------------------------------------End List ----------------------------------------------------------------*/

/* Badge Status */
.status {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.status.active {
    background-color: #28a745;
    color: white;
}

.status.inactive {
    background-color: #dc3545;
    color: white;
}



.text-petugas {

}



/* RESPONSIVE */
@media (max-width: 768px) {



    
    .sidebar {
        left: -250px;
    }

    .sidebar.hidden {
        left: 0;
    }

    .header {
        left: 0;
        width: 100%;
    }

    .content {
        margin-left: 0;
        padding-top: 10vh;
    }

    .burger-menu {
        order: 2; /* Geser ke kanan */
    }

    /* Stat Modal Sedang ------------------------------------------------------------------------------------------------------------------------------*/
.modal-width-medium {
    max-width: 100%;
}

.modal-height-medium .modal-content {
    height: 80vh;
    display: flex;
    flex-direction: column;
    padding-left: 10px;
    padding-right: 10px;
}

.modal-height-medium .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px; /* Agar tidak terlalu rapat */
}

/* End Modal Sedang ------------------------------------------------------------------------------------------------------------------------------*/
.table-responsive {
    height: 60vh;
}


}



/* --------------------------------------------------------------- Form Control ---------------------------------------------------------------------*/

.form-label {
    text-align: left !important;
    display: block;
    font-size: 0.9rem;
    color: #444;
  
    font-weight: 600;
}

.form-control,
.form-select,
textarea.form-control {
    border: 1px solid #d1d9e6;
    border-radius: 8px;

    font-size: 0.95rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease-in-out;
    width: 100%;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78,115,223,0.25);
    outline: none;
}

textarea.form-control {
    resize: none;
}
.input-search-lg {
    height: 35px;          /* samakan dengan btn-lg */
    padding: 0.375rem 0.75rem; /* padding lebih kecil biar teks tidak mepet */
    font-size: 1rem;       /* ukuran font pas */
    line-height: 1.5;      /* vertikal align */
}


/* Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 100px; /* Lebar switch */
    height: 20px; /* Tinggi switch */
}

/* Sembunyikan input checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider Background */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5px;
    font-weight: bold;
    color: white;

}

/* Efek hover agar lebih interaktif */
.slider:hover {
    box-shadow: inset 0px -2px 6px rgba(0, 0, 0, 0.3);
}

/* Tombol Bulat */
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* Saat Aktif */
input:checked + .slider {
    background-color:rgb(4, 54, 109); /* Warna biru */
   
}

/* Geser tombol ke kanan */
input:checked + .slider:before {
    transform: translateX(80px); /* Geser sesuai lebar switch */
     border-color:rgb(125, 3, 3);   
}

/* Teks di dalam switch */
.slider-text {
    position: absolute;
    width: 100%;
    text-align: center;
    z-index: 2;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Menampilkan teks yang berubah */
.slider-text::after {
    content: "Tidak Aktif"; /* Default */
    color: rgb(125, 3, 3); /* Warna merah */
    font-size: 8px;
    border-color:rgb(125, 3, 3);
}

/* Jika checkbox aktif, ubah teks */
input:checked + .slider .slider-text::after {
    content: "Aktif";
    color: rgb(255, 255, 255); /* Warna putih agar kontras di latar biru */
}

.form-check-input:checked {
    background-color: #880000;
    border-color: #880000;
}

.dropdown {
    position: relative;
}

.dropdown-options {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-height: 150px;
    overflow-y: auto;
    display: none;
    z-index: 10;
}

.dropdown-select:focus + .dropdown-options,
.dropdown-options:hover {
    display: block;
}

.dropdown-option {
    padding: 10px;
    cursor: pointer;
}

.dropdown-option:hover {
    background: #f1f1f1;
}

.dropdown-no-results {
    padding: 10px;
    text-align: center;
}

/* ----------------------------------------------------------------------- Stat footer --------------------------------------------------------------- */

/* FOOTER */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 40px;             /* kasih tinggi pasti */
    background: #ffffff;
    border-top: 1px solid #dee2e6;
    font-size: 14px;
    color: #6c757d;
    display: flex;            /* aktifkan flexbox */
    align-items: flex-end;      /* center vertikal */
    justify-content: right;  /* center horizontal */
    padding-right: 15px;
    z-index: 1000;
}

/* -------------------------------------------------------------------- End footer ------------------------------------------------------------- */

.h-10  { height: 10% !important; }
.h-20  { height: 20% !important; }
.h-30  { height: 30% !important; }
.h-40  { height: 40% !important; }
.h-50  { height: 50% !important; }
.h-60  { height: 60% !important; }
.h-70  { height: 70% !important; }
.h-80  { height: 80% !important; }
.h-90  { height: 90% !important; }
.h-100 { height: 100% !important; }