@import url('https://fonts.googleapis.com/css?family=Merriweather+Sans');

/* Reset & Default */
*,
::after,
::before {
    box-sizing: border-box;
}

:root {
    
    /* baru */
    --background-color: #f7f8f9; /* Lebih soft dari putih polos */
    /* --background-color: #f4f5f7;  */
    --text-color: #333; /* Lebih lembut dari #000 atau #212529 */
    --sidebar-bg-color: #ffffff;
    --sidebar-text-color: #5c5c5c;
    --primary-color: #f4c542;
    --success-color: #dcfce7;
    --error-color: #ffe5e5;
    --toast-bg: #fafafa;

    /* untuk button */
    --btn-fx-size: 1rem;
    --btn-fx-padding: 0.9rem 1.5rem;
    --btn-fx-radius: 0.75rem;
    --btn-fx-transition: 0.3s;

    --dark: 0;
    --transition: 0.28s;
    --font-size: 1.25rem;
    --bg: hsl(0 0% calc((100 - (var(--dark, 0) * 100)) * 1%));
    --color: hsl(0 0% calc(var(--dark) * 70%));
}

[data-theme="dark"] {
   
    /* baru */
    --background-color: #1e1e1e;
    --text-color: #c9c9c9; /* Ganti dari putih bersih ke abu terang */
    --sidebar-bg-color: #2c2c2c;
    --sidebar-text-color: #b0b0b0;
    --primary-color: #e8c441;
    --success-color: #2e8b57;
    --error-color: #cc4444;
    --toast-bg: #2a2a2a;
}

/* Main content */
.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    overflow: hidden;
    width: 100%;
    margin-left: 264px;
    
    background: #f5f5f5; 
    transition: margin-left 0.35s ease-in-out; 
}

/* Main content in Dark mode */
[data-bs-theme="dark"] .main {
    background: #2c2c2c; /* Soft dark gray, enak di mata */
}

/* Body */
body {
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 0.775rem;
    margin: 0;
    overflow-y: scroll;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    opacity: 1;
    transition: background-color 0.3s, color 0.3s;
}



/* Links */
a {
    cursor: pointer;
    text-decoration: none;
    font-family: 'Merriweather Sans', sans-serif;
}

/* Lists */
li {
    list-style: none;
}

/* Headings */
h4 {
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 1.475rem;
    color: #3C455C;
    /* color: var(--bs-emphasis-color); */
}

[data-bs-theme="dark"] h4 {
    color: #c9c9c9;
}

/* Others */
.judul {
    min-height: 4vh;
    margin-bottom: 10px;
}

/* Layout */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    background-color: var(--background-color);
}






/* ===========SIDEBAR============ */

/* Sidebar Elements */
.sidebar-navheader {
    height: 57px;
    box-shadow: 0 0 0.975rem 0 rgba(233, 235, 238, 0.05);

}

.sidebar-icon {
    margin-top: -2%;
    padding: 1.05rem;
}

.sidebar-icon i {
    width: 10px;
    height: 10px;
}

.sidebar-logo {
    padding: 0.15rem;
    margin-top: 4%;
}

.sidebar-logo a {
    color: #e9ecef;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-align: left;
    font-family: 'Merriweather Sans', sans-serif;
}

.sidebar-nav {
    flex-grow: 1;
    padding-left: 0;
    margin-left: 0;
    margin-bottom: 0;
}

/* Sidebar Header */
.sidebar-header {
    color: #e9ecef;
    font-size: 0.75rem;
    padding: 1.5rem 1.5rem 0.375rem;
}

/* Sidebar Item Level 2 */
.sidebar-item2 {
    position: relative;
    padding-left: 20px;
    background-color: rgba(255, 255, 255, 0.075);
    align-items: center;
}

a.sidebar-link2 {
    display: block;
    position: relative;
    padding: 0.625rem 1.625rem;
    font-family: 'Merriweather Sans', sans-serif;
    color: #DDE2E3;
    font-size: 0.725rem;
}

a.sidebar-link2:hover {
    background-color: rgba(255, 255, 255, 0.075);
    border-right: 3px solid var(--primary-color);
    z-index: 12;
}

.sidebar-link2.active {
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

/* Sidebar Item Default */
a.sidebar-link {
    display: block;
    position: relative;
    padding: 0.625rem 1.625rem;
    font-size: 0.875rem;
    color: #DDE2E3;
}

a.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.075);
    border-right: 3px solid var(--primary-color);
    z-index: 12;
}

/* Collapse Arrow */
.sidebar-link[data-bs-toggle="collapse"]::after {
    content: "";
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    border: solid;
    border-width: 0 0.075rem 0.075rem 0;
    padding: 2px;
    display: inline-block;
    transform: rotate(225deg);
    transition: all 0.2s ease-out;
}

.sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(315deg);
}

/* Active Link */
.sidebar-link.active {
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

/* Dropdown Open */
.sidebar-dropdown.show {
    display: block !important;
}

/* Avatar */
.avatar {
    height: 40px;
    width: 40px;
}



/* Scrollable Menu */
.sidebar-menu {
    flex-grow: 1;
    overflow-y: auto;
}





/* Sidebar umum */
#sidebar {
    max-width: 264px;
    min-width: 264px;
    background: #3C455C;
    /* transition: all 0.35s ease-in-out; */
    transition: transform 0.35s ease-in-out; /* tambahkan ini */

    position: fixed;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1030;
    transform: translateX(0); /* Default position */

}

/* Sidebar collapsed */
#sidebar.collapsed {
    margin-left: 0px;
    transform: translateX(-100%);
    overflow: hidden;
}

/* Saat sidebar desktop di-collapse */
body.sidebar-collapsed #sidebar {
    transform: translateX(-100%);
    transition: transform 0.35s ease-in-out; /* tambahkan ini */
    overflow: hidden;
}

/* Konten utama ikut menyesuaikan */
@media (min-width: 769px) {
    body.sidebar-collapsed .main {
        margin-left: 0 !important;
        transition: transform 0.35s ease-in-out;
    }
}





/* Tombol hamburger untuk mobile */
.sidebar-toggle {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001; /* Lebih tinggi dari sidebar */
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 1100;
    cursor: pointer;
    display: none; /* Default hidden */
}


/* Responsive untuk mobile */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }

    #sidebar {
        width: 528px; /* <-- Tambahkan ini */
        transform: translateX(-264px);
        transition: transform 0.35s ease;
        margin-left: 0;
        overflow: visible;
    }

    #sidebar.active {
        transform: translateX(0);
        
    }

    .main {
        margin-left: 0;
    }
}

/* Tampilkan tombol hanya jika sidebar aktif */
#sidebar:not(.active) .close-sidebar {
    display: none !important;
}


.close-sidebar {
    /* background: #3C455C; */
    border: none;
    font-size: 24px;
    color: #DDE2E3;
    cursor: pointer;
    position: fixed;
    right: -0.45rem;
    top: 7%;
    transform: translateY(-5%);
    display: none; 
    z-index: 9999;
}

.close-sidebar:hover {
    color: #028B98; /* kuning emas kayak warna Maliya */
}







/* -----------MOBILE---------- */

/* Tampilkan tombol close di mobile */
@media (max-width: 768px) {
    .close-sidebar {
        display: block;
        margin-left: -1,5rem;
    }
}


.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3); /* semi transparan */
    z-index: 999; /* di bawah sidebar */
    display: none; /* default tersembunyi */
}

/* Tampilkan overlay saat sidebar aktif di mobile */
@media (max-width: 768px) {
    #sidebar.active + .sidebar-overlay {
        display: block;
    }
}










/* ----------------NAVBAR------------------- */
.navbar {
    background-color: #028B98;
    box-shadow: 0 0 2rem 0 rgba(33, 37, 41, 0.1);
    height: 60px; /* Atur tinggi navbar */
    line-height: 60px; /* Menjaga teks tetap rata tengah secara vertikal */
    padding: 10 30px; /* Menambahkan padding kiri dan kanan agar navbar tidak terlalu sempit */
    
}

.navbar-expand .navbar-nav {
    margin-left: auto;
    background-color: #028B98;
    color: #3C455C;
}

.custom-icon i {
    font-size: 2.5rem;
    color: #028B98;
    background-color: #414141;
    padding: 0;
    margin: 0;
    border: none; /* Pastikan border dihilangkan */
}


/* Dropdown Wrapper */
.navbar-nav .dropdown .d-flex {
    text-align: left; /* Menyelaraskan teks ke kiri */
    height: 100%; /* Membuat elemen dalam dropdown memiliki tinggi penuh sesuai tinggi navbar */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Menjaga semua elemen tetap sejajar secara vertikal */
    padding-right: 30px;
}

/* Nama Perusahaan */
.navbar-nav .dropdown .text-uppercase {
    font-weight: bold; /* Membuat nama perusahaan lebih menonjol */
    font-size: 1rem;
    line-height: normal; /* Menyesuaikan agar tidak mempengaruhi tinggi navbar */
    padding-top: 7px;
    padding-bottom: 0px;
}

/* Nama User dan Role */
.navbar-nav .dropdown .nav-link {
    font-size: 0.875rem; /* Mengatur ukuran font untuk nama pengguna dan peran */
    line-height: normal; 
    padding-top: 1px;
    color: #3C455C;
}



/* dropdown navbar */
/* Styling untuk Dropdown */
.custom-dropdown {
    border-top: 2px solid #A87E2A; /* Garis tebal warna #028B98 di sekitar dropdown */
    border-radius: 0px; /* Membuat sudut dropdown lebih lembut */
    padding-top: 10px; /* Memberikan jarak antara garis atas dan item dropdown */
    background-color: #ffffff; /* Warna latar belakang putih */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Bayangan halus */
    position: absolute; /* Menambahkan posisi relatif untuk pseudo-element */
    margin-right: 20px; /* Margin kanan default */
    /* color: #3C455C; */
}

/* Membuat bentuk segitiga di atas dropdown */
.custom-dropdown::before {
    content: "";
    position: absolute;
    top: -8px; /* Menempatkan segitiga sedikit di luar dropdown */
    left: 50%; /* Menempatkan segitiga di tengah */
    transform: translateX(-50%); /* Menjaga segitiga tetap di tengah secara horizontal */
    width: 0;
    height: 0;
    border-left: 8px solid transparent; /* Membuat sisi kiri segitiga transparan */
    border-right: 8px solid transparent; /* Membuat sisi kanan segitiga transparan */
    border-bottom: 8px solid #A87E2A; /* Membuat sisi bawah segitiga dengan warna yang sama dengan border atas */
}


/* Styling untuk setiap item dropdown */
.custom-dropdown .dropdown-item {

    position: relative;
    display: block;

    font-size: 0.875rem;
    padding: 0px 15px; 
    margin: 0; /* Menghilangkan jarak antara item */
    line-height: 2.5; /* Menyesuaikan tinggi baris antar teks */
    color: #333; /* Warna teks */
    transition: background-color 0.3s ease; /* Efek transisi untuk background */
    border-bottom: 1px solid #918B7B; /* Garis bawah */
}

/* Teks di sebelah kiri */
.custom-dropdown .dropdown-item .text-left {
    float: left;
}

/* Ikon di sebelah kanan */
.custom-dropdown .dropdown-item .float-right {
    float: right;
    margin-left: 8px; /* Memberikan jarak antara teks dan ikon */
}

/* Clearfix untuk item agar elemen tidak saling tumpang tindih */
.custom-dropdown .dropdown-item::after {
    content: "";
    display: block;
    clear: both;
}




/* Efek Hover pada Item Dropdown */
.custom-dropdown .dropdown-item:hover {
    background-color: #6C6658; /* Efek background saat hover */
    color: white; /* Warna teks saat hover */
    border-bottom: 1px solid #918B7B; /* Garis bawah saat hover */
}




/* ----------------------conten utama--------------------- */
.content {
    flex: 1;
    max-width: 100vw;
    width: 100vw;
    
}

@media (min-width:768px) {
    .content {
        max-width: auto;
        width: auto;
    }
}

.card {
    box-shadow: 0 0 .875rem 0 rgba(34, 46, 60, .05);
    margin-bottom: 24px;
    border-radius: 3px; /* Ganti radius */
}

.illustration {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-emphasis-color);
}

.illustration-img {
    max-width: 150px;
    width: 100%;
}


/* --------------------DARK OR LIGHT-------------------- */
.theme-toggle {
    position: fixed;
    top: 90%;
    /* top: 50%; */
    transform: translateY(-65%);
    text-align: center;
    z-index: 10;
    right: 0;
    left: auto;
    border: none;
    background-color: var(--bs-body-color);
}

html[data-bs-theme="dark"] .theme-toggle .fa-sun,
html[data-bs-theme="light"] .theme-toggle .fa-moon {
    cursor: pointer;
    padding: 10px;
    display: block;
    font-size: 1.25rem;
    color: #FFF;
    /* color: #f9f9f9; */
}

html[data-bs-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

html[data-bs-theme="light"] .theme-toggle .fa-sun {
    display: none;
}




/* -----------------------EDIT SENDIRI------------------ */

.custom-btn {
    width: 120px; /* Atur lebar tombol */
    height: 40px; /* Atur tinggi tombol */
    border-width: 2px; /* Atur lebar garis outline */
    border-radius: 0; /* Menghapus efek bulatan */
}

.custom-btn2 {
    width: 90px; /* Atur lebar tombol */
    height: 30px; /* Atur tinggi tombol */
    border-width: 1px; /* Atur lebar garis outline */
    border-radius: 0; /* Menghapus efek bulatan */
    margin-bottom: 2px;
}

.btn-tambahData {
    width: 100%;          /* Tombol isi container */
    max-width: 200px;     /* Maksimum lebar 200px */
    height: 40px;
    border-radius: 3px;
    margin-bottom: 3px;
    white-space: nowrap;  /* Mencegah tulisan pindah baris */
}

/* @media (max-width: 400px) {
    .btn-tambahData {
        font-size: 14px;
        padding: 0.375rem 0.5rem;
    }
} */



/* ============FORM CONTROL======= */
.form-control {
    color: #495057;
    font-size: 12px;
    border-radius: 3px;
    margin-top: 5px;
    margin-bottom: 5px;
    height: 38px;
    border: 1px solid #ccc;
    transition: border-color 0.001s ease, border-width 0.001s ease;
    box-sizing: border-box;
    background-color: #ffffff;
}

/* Saat focus */
.form-control:focus {
    border-color: #028B98;
    border-width: 2px;
    outline: none;
    box-shadow: none;
}

/* =================== DARK MODE =================== */
[data-bs-theme="dark"] .form-control {
    background-color: #2b2b2b;
    color: #e0e0e0;
    border: 1px solid #444;
}

[data-bs-theme="dark"] .form-control:focus {
    border-color: #028B98;
    border-width: 2px;
    outline: none;
    box-shadow: none;
}



/* ---------LABEL---------------------- */
.bg-success2{
    background-color: #B6F4C6;
    border-radius: 3px;
    font-size: 12px;
    color: #206B2B;
    padding: 2px;
}
.bg-danger2{
    background-color: #FF8891;
    border-radius: 3px;
    font-size: 12px;
    color: #7F1A23;
    padding: 2px;
}


/* -----------BUTTON DELETE ROW */
.btnDeleteRow {
    color: #F44336; /* Warna hijau untuk ikon */
}
.btnDeleteRow:hover {
    color: #FF3447aa;
}


/* -----------------------TOAST------------------------------- */
.toast {
    position: absolute;
    width: 290px;
    /* height: 70px; */
    top: 55px;
    right: 2px;
    border-style: none;
    border-radius: 3px;
    background: #fff;
    padding: 15px 15px 15px 15px;
    z-index: 5;
    overflow: hidden;
    transform: translateX(-120%); /* Mulai dari kanan (di luar layar) */
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
}

/* Warna untuk toast success */
.toast.success {
    background-color: #43f1f1; 
    background-image: linear-gradient(
        to right , #03e9f4 25%, #fff
    );
    color: #333333; 
    /* color: #050801;  */
    
}

.toast.success .check {
    background-color: #fff; /* Kuning neon untuk icon */
    color: #03e9f4; /* Hijau */
}

/* Warna untuk toast error */
.toast.error {
    background-color: #FF3447; /* Merah */
    background-image: linear-gradient(
        to right , #FF3447aa 25%, #fff
    );
    color: #333333; 
    /* color: #050801;  */
}

.toast.error .check {
    background-color: #fff; /* Kuning neon untuk icon */
    color: #FF3447; /* Hijau */
}

.toast.active {
    transform: translateX(0); /* Pindah ke posisi normal */
    opacity: 1; /* Tampilkan toast */
}

/* Agar tidak tampil saat disembunyikan */
.toast.inactive {
    animation: exitAnimation 0.8s forwards; /* Animasi keluar */
}

.toast .toast-content {
    display: flex;
    align-items: center;
}

.toast-content .check {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    width: 35px;
    font-size: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-content .message {
    display: flex;
    flex-direction: column;
    margin: 0 20px;
    font-size: 12px;
    /* font-weight: 400; */
    color: #050801;
}

.toast .close {
    position: absolute;
    font-size: 18px;
    top: 15px;
    right: 15px;
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
    color: #03e9f4;
}
.toast.success .close {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
    color: #03e9f4;
}
.toast.error .close {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
    color: #FF3447;
}

.toast .close:hover {
    opacity: 1;
    /* color: #050801; */
    color: #333333; 

}

.toast .progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: #ddd;
}

.toast .progress.active:before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background: #495057;
    box-shadow: #e9ecef; 
    /* background: linear-gradient(#fff, #03e9f4); */
    /* background-image: linear-gradient(
        to right , #fff , #03e9f4 25%
    ); */
    
    animation: progress 3s linear forwards;
}
.toast.error .progress.active:before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background: #495057;
    /* background: linear-gradient(#fff, #FF3447); */
    /* background-image: linear-gradient(
        to right , #fff , #FF3447 25%
    ); */
    
    animation: progress 3s linear forwards;
}

@keyframes progress {
    100% {
        right: 100%;
    }
}

@keyframes exitAnimation {
    0% {
        transform: translateX(0); /* Posisi awal saat mulai keluar */
        opacity: 0.8;
    }
    30% {
        transform: translateX(-10px); /* Sedikit bergerak ke kiri */
        opacity: 0.6;
    }
    100% {
        transform: translateX(110%); /* Keluar ke kanan */
        opacity: 0.5;
    }
}


/* -------------------------LOADER---------------------------- */
.loading-area {
    display: grid;
    place-items: center;
    position: fixed; /* Membuat loader tetap di tengah */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(255, 255, 255, 0.1); */
    z-index: 3; /* Pastikan loader berada di atas elemen lainnya */
}

.loader div {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    transform: scale(0);
    animation: animate 1.5s ease-in-out;
    display: inline-block;
    margin: 5rem;
}

.loader div:nth-child(1) {
    animation-delay: 0s;
}

.loader div:nth-child(2) {
    animation-delay: 0.2s;
}

.loader div:nth-child(3) {
    animation-delay: 0.4s;
}

.loader div:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes animate {
    0%, 100% {
        transform: scale(0.2);
        background-color: #ce8129;
    }

    40% {
        transform: scale(1);
        background-color: #ffff33;
    }

    50% {
        transform: scale(1);
        background-color: #028B98;
    }
}



/* ----------------------------------------login---------------------- page */
.btn.btn-lg-login {
    /* padding: 0.55rem 1.5rem; */
    /* font-size: 12px; */
    width: 100%;
    border: none;
    border-radius: 3px;
    color: #FFF;
    background: linear-gradient(90deg, rgb(249, 204, 65) 100%, rgba(2,0,36,1) 20%);
}

.card-warning {
    /* background-color: #f9f9f9; */
    /* background-color: var(--bs-primary-bg-subtle); */
    border-top: 3px solid #028B98;
}

.shadow {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
}

.bg-whitesmoke {
    background-color: #f7f9f9 !important;
}


.theme-toggle {
    position: fixed;
    top: 90%;
    right: 20px;
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.theme-toggle:hover {
    background: var(--primary-color);
    opacity: 0.9;
}


/* ---------------------------UPLAOD IMPORT---------------------- */

/* Container styling */
.upload-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Styling untuk label */
.upload-container label {
    font-size: 16px;
    font-weight: bold;
    color: #343a40;
    display: block;
    margin-bottom: 10px;
}

/* Styling untuk input file */
.upload-container input[type="file"] {
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Tombol submit styling */
.upload-container button {
    background-color: #028B98;
    color: #343a40;
    /* color: #fff; */
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-container button:hover {
    background-color: #0056b3;
}

/* Link kembali styling */
.upload-container .back-link {
    display: block;
    margin-top: 20px;
    font-size: 14px;
    color: #028B98;
    text-decoration: none;
}

.upload-container .back-link:hover {
    text-decoration: underline;
}


/* Container styling */
.ttd-container {
    max-width: 1900px;
    margin-top: 50px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.textarea-3-rows {
    height: auto; /* Menyesuaikan tinggi berdasarkan rows */
    overflow: auto; /* Memastikan scroll muncul jika konten terlalu panjang */
    line-height: 2.5em; /* Opsional: Mengatur jarak antar garis */
}


/* Style container pembayaran lebih simpel dan elegan */
.container_pembayaran {
    border: 1px solid #e0e0e0; /* Border tipis */
    border-radius: 3px; /* Lebih membulat */
    padding: 20px;
    background-color: #fafafa; /* Putih bersih */
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Shadow lembut */
}

/* Style untuk setiap baris dinamis */
.container_pembayaran .rowDinamis {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    background-color: #fafafa; /* Abu-abu sangat ringan */
}


/* -----------------------------TABS----------------------- */
.nav-tabs .nav-link {
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    color: #6c757d; /* Gray color for inactive tabs */
    margin-top: 1px;
}

.nav-tabs .nav-link.active {
    /* background-color: #f8f9fa;  */
    color: #495057; /* Darker text for active tab */
    border-top: 3px solid #007bff; /* Optional: Add a border to highlight */
}

.nav-tabs .nav-link:hover {
    color: #007bff; /* Optional: Hover effect */
}







/* ----------------------DASHBOARD PEMBELIAN------------------ */
.card-purchase-container {
    margin-top: 20px;
    
}

/* ========================= CARD PURCHASE ========================= */

.card-purchase {
    background-color: #ffffff; /* Sama kayak body dan card lainnya */
    /* border: 1px solid rgba(0,0,0,.125); */
    /* border-radius: 0.35rem;  */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Shadow lembut dan modern */
    padding: 1rem; /* Supaya konten dalam card nggak mepet */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}


[data-bs-theme="dark"] .card-purchase {
    background-color: #2c2f33;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.6);
    color: #e0e0e0;
}


.card-purchase:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}


.card-purchase-body {
    padding: 20px;
}

.card-purchase-body h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #3C455C;
    /* color: #015C67; */
    /* color: #333; */
}

.card-purchase-body p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.card-purchase .text-success {
    color: #28a745 !important;
}

.card-purchase .text-warning {
    color: #ffc107 !important;
}

.card-purchase .text-info {
    color: #17a2b8 !important;
}

.card-purchase .text-danger {
    color: #dc3545 !important;
}

.card-purchase .text-muted {
    color: #6c757d !important;
}

.card-purchase-row {
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.card-purchase-col {
    /* flex: 1 1 calc(25% - 15px); */
    /* max-width: calc(25% - 15px); */

    flex: 1;
    min-width: 200px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-purchase-link {
    text-decoration: none; /* Menghilangkan underline pada link */
    color: inherit; /* Menggunakan warna teks yang sudah didefinisikan */
    display: block; /* Membuat link mencakup seluruh area kotak */
}

.card-purchase-link:hover .card-purchase {
    transform: translateY(-5px); /* Efek hover tetap aktif saat seluruh kotak menjadi link */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}


@media (max-width: 768px) {
    .card-purchase-col {
        flex: 1 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 576px) {
    .card-purchase-col {
        flex: 1 1 100%;
        max-width: 100%;
    }
}












/* -------------------------------container upload------------------------ */

.container-upload {
    background-color: #f9f9f9; /* Warna latar belakang */
    border: 1px solid #ddd;  /* Batas tipis */
    padding: 15px;           /* Spasi dalam */
    border-radius: 3px;      /* Sudut melengkung */
    margin-left: 15px;     /* Jarak bawah antar elemen */
    margin-bottom: 15px;     /* Jarak bawah antar elemen */
}

.container-upload input[type="file"] {
    border: 1px solid #ccc;  /* Garis batas input */
    padding: 3px;            /* Spasi dalam input */
    border-radius: 4px;      /* Sudut melengkung pada input */
    background-color: #fff;  /* Warna latar input */
}


/* form penjualan */
.disabled-option {
    color: red; /* Ubah warna font menjadi merah */
}


.company-logo {
    max-width: 70px;
    height: auto;
}

.invoice-header h5, 
    .invoice-header p, 
    .invoice-header h2 {
        margin-bottom: 5px; /* Mengurangi jarak antar elemen */
    }









/* ----------------------CARD DASHBOARD------------------ */
.card-dashboard-container {
    margin-top: 20px;
    
}

.card-dashboard {
    background-color: #f7f9f9;
    /* border: 1px solid #e3e6f0; */
    /* border-radius: 3px; */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* ⬅️ Tambahkan ini */
}

.bg-soft-primary {
    background-color: #e3f2fd;
}

.bg-soft-success {
    background-color: #d4edda;
}

.bg-soft-warning {
    background-color: #fff3cd;
}

.bg-soft-danger {
    background-color: #f8d7da;
}

.bg-soft-info {
    background-color: #d1ecf1;
}


.card-dashboard:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.card-dashboard-body {
    padding: 20px;
}

.card-dashboard-body h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #3C455C;
    /* color: #015C67; */
    /* color: #333; */
}

.card-dashboard-body p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.card-dashboard .text-success {
    color: #28a745 !important;
}

.card-dashboard .text-warning {
    color: #ffc107 !important;
}

.card-dashboard .text-info {
    color: #17a2b8 !important;
}

.card-dashboard .text-danger {
    color: #dc3545 !important;
}

.card-dashboard .text-muted {
    color: #6c757d !important;
}

.card-dashboard-row {
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.card-dashboard-col {
    /* flex: 1 1 calc(25% - 15px); */
    /* max-width: calc(25% - 15px); */

    flex: 1;
    min-width: 200px; 
}

.card-dashboard-link {
    text-decoration: none; /* Menghilangkan underline pada link */
    color: inherit; /* Menggunakan warna teks yang sudah didefinisikan */
    display: block; /* Membuat link mencakup seluruh area kotak */
}

.card-dashboard-link:hover .card-dashboard {
    transform: translateY(-5px); /* Efek hover tetap aktif saat seluruh kotak menjadi link */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}


@media (max-width: 768px) {
    .card-dashboard-col {
        flex: 1 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 576px) {
    .card-dashboard-col {
        flex: 1 1 100%;
        max-width: 100%;
    }
}




/* ==============BUTTON FX==================== */

:root {
    --transition: 0.3s ease;
    --bg: #fff;
    --color: #333;
    --dark: 0;
  }
  
  /* Button FX Light Mode */
  .btn-fx {
    --hovered: 0;
    outline-color: hsl(0 0% calc(var(--dark) * 100%));
    --font-size: 0.8rem;
    --padding: calc(var(--font-size) * 0.30);
    
    cursor: pointer;
    letter-spacing: 0.01em;
    font-family: sans-serif;
    font-weight: bold;
    background: var(--bg);
    /* padding: var(--padding); */
    /* Ini yang diperbaiki */
    padding: calc(var(--font-size) * 0.001) calc(var(--font-size) * 0.0001);

    font-size: var(--font-size);
    border-radius: 0.3rem;
    border: 3px solid hsl(0 0% calc((40 + (var(--dark) * 20)) * 1%) / calc(0.3 + (var(--hovered, 0) * 0.8)));
    border-color: var(--border-color-default);
    color: var(--color);
    position: relative;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-shadow: 0 5px 20px rgba(0,0,0,0.01);
  }
  
  .btn-fx:hover {
    --hovered: 1;
    border-color: var(--border-color-hover);
  }
  
  .btn-fx > span {
    display: grid;
    grid-template-columns: 1.75em auto 0em;
    background: var(--bg);
    align-items: center;
    padding: 0.6em 1em;
    transition: grid-template-columns var(--transition);
  }
  
  .btn-fx:hover > span {
    grid-template-columns: 0em auto 1.75em;
  }
  
  .btn-fx span span {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity var(--transition), transform var(--transition);
  }
  
  .btn-fx span span:nth-of-type(1) {
    opacity: calc(1 - var(--hovered));
    transform: translateX(0);
  }
  
  .btn-fx span span:nth-of-type(3) {
    opacity: var(--hovered);
    transform: translateX(10%);
  }
  
  .btn-fx i {
    font-size: 1.1em;
    pointer-events: none;
  }
  
  /* Size Variants */
  .btn-fx-sm {
    --font-size: 0.7rem;
    --padding: calc(var(--font-size) * 0.001) calc(var(--font-size) * 0.0001);
  }
  
  .btn-fx-md {
    --font-size: 0.9rem;
    --padding: calc(var(--font-size) * 0.15);
  }
  
  .btn-fx-lg {
    --font-size: 1rem;
    --padding: calc(var(--font-size) * 0.20);
  }
  
  /* Color Variants */
  .btn-fx-create {
    --border-color-default: hsl(210, 100%, 85%); /* Soft Primary */
    --border-color-hover: hsl(210, 100%, 40%);   /* Primary */
  }
  
  .btn-fx-edit {
    --border-color-default: hsl(45, 100%, 85%);  /* Soft Yellow */
    --border-color-hover: hsl(45, 100%, 40%);    /* Warning */
  }
  
  .btn-fx-delete {
    --border-color-default: hsl(0, 100%, 85%);   /* Soft Red */
    --border-color-hover: hsl(0, 100%, 45%);     /* Danger */
  }
  
  .btn-fx-view {
    --border-color-default: hsl(200, 100%, 85%); /* Soft Blue */
    --border-color-hover: hsl(200, 100%, 40%);   /* Info */
  }
  
  .btn-fx-approve {
    --border-color-default: hsl(140, 70%, 85%); /* Soft Success */
    --border-color-hover: hsl(140, 70%, 40%);   /* Success */
    background: #3FCC4F;
    color: #155724;
  }
  
  .btn-fx-posting {
    --border-color-default: hsl(30, 100%, 85%); /* Soft Orange */
    --border-color-hover: hsl(30, 100%, 45%);   /* Orange */
  }
  
  .btn-fx-secondary {
    --border-color-default: #e2e3e5; /* Soft Secondary */
    --border-color-hover: #6c757d;   /* Secondary */
  }
  
  .btn-fx-dark {
    --border-color-default: #d3d3d4; /* Soft Dark */
    --border-color-hover: #212529;   /* Dark */
  }

  

  [data-bs-theme="dark"] {
    --transition: 0.3s ease;
    --bg: #1e1e1e;
    --color: #f1f1f1;
    --dark: 1;
  }
  
  /* Button FX Dark Mode */
  [data-bs-theme="dark"] .btn-fx {
    outline-color: hsl(0 0% calc(var(--dark) * 100%));
    background: var(--bg);
    color: var(--color);
    border: 3px solid hsl(0 0% calc((40 + (var(--dark) * 20)) * 1%) / calc(0.3 + (var(--hovered, 0) * 0.8)));
    border-color: var(--border-color-default);
    transition: border-color var(--transition), box-shadow var(--transition);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  }
  
  [data-bs-theme="dark"] .btn-fx:hover {
    --hovered: 1;
    border-color: var(--border-color-hover);
  }
  
  [data-bs-theme="dark"] .btn-fx > span {
    background: var(--bg);
  }
  
  [data-bs-theme="dark"] .btn-fx span span:nth-of-type(1) {
    color: var(--color);
  }
  
  [data-bs-theme="dark"] .btn-fx span span:nth-of-type(3) {
    color: var(--color);
  }
  
  /* Tetap gunakan Size Variants dan Color Variants seperti Light Mode */
  /* (Sudah otomatis mengikuti var() yang diatur di root dark ini) */
  




  /* ==========MODAL FX============== */
/* Base Modal Style */
.modal-fx {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    /* animation: fadeIn 0.3s ease-in-out; */
    animation: modalFadeScale 0.4s ease forwards;
}

/* Default (Light Mode) */

/* Modal Frosted Glass */
.modal-fx .modal-content {
    border-radius: 16px;
    color: #333;
    background: rgba(255, 255, 255, 0.75); /* Semi transparan */
    backdrop-filter: blur(10px); /* Efek blur glass */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* .modal-fx .modal-header, */
.modal-fx .modal-footer {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Modal Header Style */
.modal-fx .modal-header {
    background: #f0f0f3; /* sedikit lebih gelap dari body modal */
    border-bottom: 1px solid #ddd; /* garis tipis pemisah */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Untuk dark mode */
[data-bs-theme="dark"] .modal-fx .modal-header {
    background: #2c2c2e; /* dark grey */
    border-bottom: 1px solid #3a3a3c;
}



/* Dark Mode */
[data-bs-theme="dark"] .modal-fx .modal-content {
    background: #1e1e2f;
    color: #e4e6eb; /* ubah dari #f0f0f0 menjadi #ffffff */
}

[data-bs-theme="dark"] .modal-fx .modal-header,
[data-bs-theme="dark"] .modal-fx .modal-footer {
    background-color: #2c2c3c;
    border-color: #444;
}



[data-bs-theme="dark"] .modal-fx p,
[data-bs-theme="dark"] .modal-fx h5,
[data-bs-theme="dark"] .modal-fx .modal-title {
    color: #ffffff;
}



/* Header Title */
/* Modal Title */
.modal-fx .modal-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

/* Button Close */
.modal-fx .btn-close {
    font-size: 1rem;
    color: #333;
    filter: brightness(0.7);
    transition: all 0.3s ease;
    transform: rotate(0deg);
}


/* Button Close Hover (Efek Muter) */
.modal-fx .btn-close:hover {
    filter: brightness(0.9);
    transform: rotate(90deg); /* Muter 90 derajat */
}

/* DARK MODE: Button Close lebih terang */
[data-bs-theme="dark"] .modal-fx .btn-close {
    filter: invert(1) !important;
    opacity: 1 !important;
}

/* [data-bs-theme="dark"] .modal-fx .btn-close {
    background: none;
    color: #e0e0e0 !important;
    opacity: 1 !important;
    filter: none !important;
} */

/* DARK MODE: Hover */
[data-bs-theme="dark"] .modal-fx .btn-close:hover {
    filter: brightness(1.4);
    color: #e0e0e0 !important;
    transform: rotate(90deg); /* Tetap muter di dark */
}





/* Animasi muncul untuk Modal */
@keyframes modalFadeScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}



/* Tombol Neumorphism */

/* Tombol Neumorphism - Light (default) */
.modal-fx .btn {
    border-radius: 6px;
    padding: 8px 18px;
    /* padding: 10px 24px; */
    background: #e0e0e0;
    box-shadow: 2px 2px 4px #bebebe, -2px -2px 4px #ffffff;
    font-weight: 500;
    color: #333;
    border: solid 0.2px #bebebe;
    transition: all 0.3s ease;
}

/* Hover - Light */
.modal-fx .btn:hover {
    background: #d6d6d6;
    box-shadow: inset 2px 2px 4px #bebebe, inset -2px -2px 4px #ffffff;
}

/* Tombol Create - Primary */
.modal-fx .btn-create {
    background: #cce5ff;
    box-shadow: 2px 2px 4px #99bcd6, -2px -2px 4px #e6f3ff;
    color: #004085;
}

/* Hover Create - Primary */
.modal-fx .btn-create:hover {
    background: #b8daff;
    box-shadow: inset 2px 2px 4px #99bcd6, inset -2px -2px 4px #e6f3ff;
}

/* Tombol Update - Warning */
.modal-fx .btn-update {
    background: #fff3cd;
    box-shadow: 2px 2px 4px #d6c49c, -2px -2px 4px #fffbe6;
    color: #856404;
}

/* Hover Update - Warning */
.modal-fx .btn-update:hover {
    background: #ffe8a1;
    box-shadow: inset 2px 2px 4px #d6c49c, inset -2px -2px 4px #fffbe6;
}


/* Tombol Approve - Light */
.modal-fx .btn-approve {
    background: #d4edda;
    box-shadow: 2px 2px 4px #b2c3b6, -2px -2px 4px #f6fff2;
    color: #155724;
}

/* Hover Approve - Light */
.modal-fx .btn-approve:hover {
    background: #c3e6cb;
    box-shadow: inset 2px 2px 4px #b2c3b6, inset -2px -2px 4px #f6fff2;
}

/* Tombol Cancel - Light */
.modal-fx .btn-cancel {
    background: #f8f9fa;
    box-shadow: 2px 2px 4px #d1d9e6, -5px -5px 8px #ffffff;
    color: #6c757d;
}

/* Hover Cancel - Light */
.modal-fx .btn-cancel:hover {
    background: #e2e6ea;
    box-shadow: inset 2px 2px 4px #d1d9e6, inset -5px -5px 8px #ffffff;
}

/* Tombol Delete - Light */
.modal-fx .btn-delete {
    background: #f8d7da;
    box-shadow: 2px 2px 4px #c9afb2, -2px -2px 4px #ffe5e8;
    color: #721c24;
}

/* Hover Delete - Light */
.modal-fx .btn-delete:hover {
    background: #f5c6cb;
    box-shadow: inset 2px 2px 4px #c9afb2, inset -2px -2px 4px #ffe5e8;
}

/* Tombol Posting - Light */
.modal-fx .btn-posting {
    background: #d1ecf1;
    box-shadow: 2px 2px 4px #aecbd0, -2px -2px 4px #f4ffff;
    color: #0c5460;
}

/* Hover Posting - Light */
.modal-fx .btn-posting:hover {
    background: #bee5eb;
    box-shadow: inset 2px 2px 4px #aecbd0, inset -2px -2px 4px #f4ffff;
}











/* DARK THEME */

[data-bs-theme="dark"] .modal-fx .btn {
    background: #2e2e2e;
    box-shadow: 8px 8px 9px #1c1c1c, -8px -8px 9px #404040;
    color: #e0e0e0;
}

/* Hover - Dark */
[data-bs-theme="dark"] .modal-fx .btn:hover {
    background: #383838;
    box-shadow: inset 8px 8px 9px #1c1c1c, inset -8px -8px 9px #404040;
}

/* Tombol Create - Dark */
[data-bs-theme="dark"] .modal-fx .btn-create {
    background: #2a4365;
    box-shadow: 8px 8px 9px #1b2d47, -8px -8px 9px #3b5b83;
    color: #cce5ff;
}

/* Hover Create - Dark */
[data-bs-theme="dark"] .modal-fx .btn-create:hover {
    background: #2e4c73;
    box-shadow: inset 8px 8px 9px #1b2d47, inset -8px -8px 9px #3b5b83;
}


/* Tombol Update - Dark */
[data-bs-theme="dark"] .modal-fx .btn-update {
    background: #5c471b;
    box-shadow: 8px 8px 9px #3d2f12, -8px -8px 9px #7b611f;
    color: #fff3cd;
}

/* Hover Update - Dark */
[data-bs-theme="dark"] .modal-fx .btn-update:hover {
    background: #70561f;
    box-shadow: inset 8px 8px 9px #3d2f12, inset -8px -8px 9px #7b611f;
}


/* Tombol Approve - Dark */
[data-bs-theme="dark"] .modal-fx .btn-approve {
    background: #3a5d4a;
    box-shadow: 8px 8px 9px #2b4035, -8px -8px 9px #4b7a5f;
    color: #d4edda;
}

/* Hover Approve - Dark */
[data-bs-theme="dark"] .modal-fx .btn-approve:hover {
    background: #446a55;
    box-shadow: inset 8px 8px 9px #2b4035, inset -8px -8px 9px #4b7a5f;
}

/* Tombol Delete - Dark */
[data-bs-theme="dark"] .modal-fx .btn-delete {
    background: #5e2d30;
    box-shadow: 8px 8px 9px #421f22, -8px -8px 9px #7a3b3f;
    color: #f8d7da;
}

/* Hover Delete - Dark */
[data-bs-theme="dark"] .modal-fx .btn-delete:hover {
    background: #70353a;
    box-shadow: inset 8px 8px 9px #421f22, inset -8px -8px 9px #7a3b3f;
}

/* Tombol Posting - Dark */
[data-bs-theme="dark"] .modal-fx .btn-posting {
    background: #2b5d6b;
    box-shadow: 8px 8px 9px #1e404a, -8px -8px 9px #3c7a8a;
    color: #d1ecf1;
}

/* Hover Posting - Dark */
[data-bs-theme="dark"] .modal-fx .btn-posting:hover {
    background: #336d7d;
    box-shadow: inset 8px 8px 9px #1e404a, inset -8px -8px 9px #3c7a8a;
}


/* Tombol Cancel - Dark */
[data-bs-theme="dark"] .modal-fx .btn-cancel {
    background: #3a3a3a;
    box-shadow: 8px 8px 9px #2c2c2c, -8px -8px 9px #4c4c4c;
    color: #adb5bd;
}

/* Hover Cancel - Dark */
[data-bs-theme="dark"] .modal-fx .btn-cancel:hover {
    background: #464646;
    box-shadow: inset 8px 8px 9px #2c2c2c, inset -8px -8px 9px #4c4c4c;
}
