body {
    font-family: "Poppins";
}

.bg-login {
    height: 100vh;
    font-family: "Poppins";
    /* font-size: 22px; */
    background-image: url("/img/bg.webp");
    background-size: cover;
}

/* color */

.bg-orange {
    background-color: orangered;
}

.bg-orange-secondary {
    background-color: #fff4ee;
}

.bg-gray {
    background-color: #f8f9fd;
}

.text-orange {
    color: #f85d00 !important;
}

.br-orange {
    border-color: #f85d00;
}

.nav-link {
    text-align: center;
    display: inline-block;
    border-radius: 50px;
}

a.nav-link.text-gray {
    color: #828487;
}

a.nav-link.sidebar.text-gray {
    color: rgb(255, 0, 0) !important;
}

.gradient-background {
    background: linear-gradient(135deg, #ff9f0d, #ff3366);
    border-radius: 15px; /* Menyesuaikan dengan bentuk sudut pada gambar */
    width: 150px; /* Sesuaikan dengan ukuran yang diinginkan */
    height: 150px; /* Sesuaikan dengan ukuran yang diinginkan */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.left-sidebar .nav-link.active {
    background: linear-gradient(135deg, #ff9f0d, #ff3366);
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 16px;
    border-radius: 15px !important;
}

#navbottom .nav-link {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

#navbottom .nav-link.active {
    background: linear-gradient(135deg, #ff9f0d, #ff3366);
    color: white !important;
    width: auto;
    min-width: 80px;
}

#navbottom .nav-link.active p,
#navbottom .nav-link.active span {
    color: white !important;
}

.right-sidebar .nav-link.active {
    background-color: #fff !important;
    /* width: 90px; */
    color: black;
    border-radius: 25px;
}

.nav-link,
.nav-link:hover {
    color: gray;
}

/* utility */

.navbar-nav > li {
    margin-left: 10px;
    margin-right: 10px;
}

.pd-0-5 {
    padding: 0% 5% 0% 5%;
}

.bd-gray {
    border: 1px solid rgb(223, 223, 223);
}

.transition {
    transition: all 10s ease-in-out;
}

.hidden {
    opacity: 1;
}

.m-nt-15 {
    margin-top: -10px;
}

/* utility */

/* icon */
.inner-addon {
    position: relative;
}

/* style glyph */
.inner-addon .icon {
    position: absolute;
    padding: 3.5%;
    margin-right: 10%;
    pointer-events: none;
}

.left-addon input {
    padding-left: 40px;
}

.right-addon input {
    padding-right: 40px;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    right: 10 !important;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Untuk ikon toggle di kanan */
#togglePasswordVisibility {
    position: absolute;
    right: 10px; /* Jarak dari kanan */
    top: 50%; /* Posisikan di tengah secara vertikal */
    transform: translateY(-50%);
    cursor: pointer; /* Ikon berubah jadi pointer saat di-hover */
}

/* icon */

.btn-sub {
    margin-right: 8px;
    padding: 8px 16px;
    font-size: 14pt;
    white-space: nowrap; /* Hindari teks terpotong */
}

.btn-sub.active {
    background-color: red;
}

.btn-variant{
    margin-right: 8px;
    padding: 8px 16px;
    font-size: 14pt;
    white-space: nowrap;    
}

.with-left-bar {
    width: 100% !important;
}

.cashier-page {
    width: 100%;
}

@media (min-width: 992px) {    
    .with-left-bar {
        width: calc(100vw - 120px - 25vw) !important;
    }

    .cashier-page {
        width: calc(100vw - 25vw);
    }
}

@media (max-width: 991px) {
    .with-left-bar {
        width: calc(100vw - 120px) !important;
    }
    
    #right-sidebar {
        display: none !important; /* Start hidden on tablet */
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 350px;
        z-index: 1040;
        overflow-y: auto;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    #right-sidebar.show {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .category-wrapper {
        flex-direction: column !important;
    }
}

@media (max-width: 767px) {
    .with-left-bar {
        width: 100vw !important; /* Full width on mobile */
    }
    
    #scrollbar {
        position: fixed;
        bottom: 0 !important;
        top: auto !important;
        left: 0;
        width: 100vw !important;
        height: 85px !important;
        z-index: 1040;
        border-top: 1px solid #ddd;
        transform: none !important;
        display: flex !important;
        background-color: white !important;
    }

    .bg-body-tertiary {
        height: auto !important;
    }
    
    #scrollbar ul.category-wrapper {
        flex-direction: row !important;
        flex-wrap: nowrap;
        height: 100%;
        margin-bottom: 0 !important;
        align-items: center;
    }
    
    #scrollbar ul li {
        margin-top: 0 !important;
        padding: 5px 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto !important;
    }

    #main-content {
        padding-bottom: 90px; /* Add space for bottom nav */
    }

    #right-sidebar {
        width: 100vw;
        max-width: 100%;
        height: 100%;
        height: 100svh;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 120px !important;
        display: none; /* Hide by default on mobile */
        position: fixed;
        right: 0;
        top: 0;
        z-index: 2000 !important;
        background: #ffffff !important;
        opacity: 1 !important;
        filter: none !important;
        backdrop-filter: none !important;
        box-shadow: none;
    }

    #right-sidebar.show {
        display: block !important;
    }
    
    #right-sidebar .justify-content-center {
        min-height: calc(100vh + 100px); /* Ensure content is tall enough to scroll */
        display: block !important;
    }
    
    .btn-sub, .btn-variant {
        font-size: 12pt;
        padding: 6px 12px;
    }
}

/* Master UI Design System */
.nav-master {
    border-bottom: none !important;
    gap: 10px;
    padding: 10px 0;
}

.nav-master .nav-item .nav-link {
    border: 1px solid #eee !important;
    border-radius: 50px !important;
    padding: 8px 20px !important;
    color: #666;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-master .nav-item .nav-link:hover {
    background: #fff5f0;
    border-color: #ff5722 !important;
    color: #ff5722;
}

.nav-master .nav-item .nav-link.active {
    background: linear-gradient(135deg, #ff9800, #ff5722) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.card-custom {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: #fff;
    padding: 25px;
    margin-bottom: 30px;
}

.master-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.master-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
}

.breadcrumb-custom {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

/* Premium DataTables Styling Refined Phase 2 */
.dataTables_wrapper {
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

.dataTables_wrapper .dataTables_filter {
    float: right;
    margin-bottom: 25px;
    width: auto;
}

.dataTables_wrapper .dataTables_filter label {
    font-size: 0;
    position: relative;
    width: 300px;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #f1f1f1 !important;
    border-radius: 12px !important;
    padding: 12px 45px 12px 20px !important;
    outline: none !important;
    transition: all 0.3s ease;
    background-color: #fcfcfc !important;
    width: 100% !important;
    font-size: 0.9rem;
    color: #444;
}

.dataTables_wrapper .dataTables_filter::after {
    content: '\f002';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 1rem;
    pointer-events: none;
}

/* Table Header Refinement */
table.dataTable thead th {
    background-color: #f8f9fd !important;
    border-bottom: none !important;
    border-top: none !important;
    color: #6c757d !important;
    font-weight: 600 !important;
    text-transform: none !important;
    font-size: 0.9rem !important;
    padding: 15px 20px !important;
    position: relative;
}

/* Sorting Icons Refinement */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none !important;
}

table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::after {
    font-family: 'Line Awesome Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 1rem;
    opacity: 0.7;
}

table.dataTable thead .sorting::after { content: '\f0dc'; }
table.dataTable thead .sorting_asc::after { content: '\f0de'; color: #ff5722; opacity: 1; }
table.dataTable thead .sorting_desc::after { content: '\f0dd'; color: #ff5722; opacity: 1; }

/* Table Body Refinement */
table.dataTable tbody td {
    padding: 18px 20px !important;
    border-bottom: 1px solid #f5f6f7 !important;
    vertical-align: middle;
    color: #444;
    font-size: 0.9rem;
}

/* Bottom Controls Layout */
.dataTables_wrapper .dataTables_length {
    float: left;
    margin-top: 25px;
    color: #6c757d;
    font-size: 0.9rem;
}

.dataTables_wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #eee !important;
    border-radius: 10px !important;
    padding: 5px 10px !important;
    outline: none !important;
    background-color: #fcfcfc !important;
    color: #444;
}

.dataTables_wrapper .dataTables_info {
    float: left;
    margin-top: 25px;
    margin-left: 30px;
    color: #6c757d !important;
    font-size: 0.9rem;
    padding-top: 0 !important;
}

.dataTables_wrapper .dataTables_paginate {
    float: right;
    margin-top: 20px;
    padding-top: 0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    border: 1px solid #f1f1f1 !important;
    margin-left: 5px !important;
    padding: 8px 14px !important;
    background: #fff !important;
    color: #6c757d !important;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #fff !important;
    border-color: #eee !important;
    color: #444 !important;
    font-weight: bold;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f8f9fd !important;
    border-color: #ddd !important;
    color: #333 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

/* Status Badges */
.badge-status {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.75rem;
    display: inline-block;
}

.badge-new {
    background-color: #26abe2;
    color: white;
}

.badge-finish {
    background-color: #4cd964;
    color: white;
}

/* Action Button Refined */
.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    background-color: #fff4ee !important;
    color: #f85d00 !important;
    border: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background-color: #f85d00 !important;
    color: #fff !important;
    transform: scale(1.1);
}

.btn-orange-gradient {
    background: linear-gradient(135deg, #ff9800, #ff5722) !important;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-orange-gradient:hover {
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
    transform: translateY(-2px);
}

.scrollbar-hidden::-webkit-scrollbar {
    display: none;
}

.scrollbar-hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.owl-carousel .btn-sub {
    background-color: #f8f8f8;
    border-radius: 20px;
    font-size: 14pt;
}

/* Premium Modal Styling */
.modal-content {
    border: none;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    background: #fff;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid #f8f9fa;
    padding: 1.5rem 2rem;
    background: #ffffff;
}

.modal-title {
    color: #2d3436;
    font-weight: 700;
    font-size: 1.25rem;
}

.modal-body {
    padding: 2rem;
}

.modal-body .form-label {
    font-weight: 600;
    color: #636e72;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.modal-body .form-control, 
.modal-body .form-select {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid #dfe6e9;
    transition: all 0.3s ease;
    background-color: #fdfdfd;
}

.modal-body .form-control:focus, 
.modal-body .form-select:focus {
    border-color: #f85d00;
    box-shadow: 0 0 0 4px rgba(248, 93, 0, 0.08);
    background-color: #fff;
}

.modal-body hr {
    margin: 2rem 0;
    opacity: 0.1;
}

/* Modal Bottom Buttons Custom */
.modal-footer-custom {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-modal-cancel {
    background: #f1f2f6;
    color: #57606f;
    border: none;
    border-radius: 14px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.2s ease;
}

.btn-modal-cancel:hover {
    background: #dfe4ea;
    color: #2f3542;
}

.btn-modal-submit {
    background: linear-gradient(135deg, #f85d00, #ff8c00);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    width: 100%;
    box-shadow: 0 4px 15px rgba(248, 93, 0, 0.3);
    transition: all 0.2s ease;
}

.btn-modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 93, 0, 0.4);
    color: white;
}

