@charset "UTF-8";
/*# sourceMappingURL=custom.css.map */

/* Font Import - Inter dari Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/**
 * Stisla
 *
 * Stisla is a clean & modern HTML5 admin template based on Bootstrap 4.
 * Stisla will make it easier for you to create your own admin interface.
 *
 * @package	Stisla
 * @version	2.2.0
 * @author 	Muhamad Nauval Azhar
 * @url 	https://getstisla.com
 *
 */
/**
 * TABLE OF CONTENTS
 *
 * 1. Variable
 * 2. Mixin
 * 3. Bootstrap Override
 * 	  3.1 Misc
 * 	  3.2 Form
 * 	  3.3 List
 * 	  3.4 Alert
 * 	  3.5 Card
 * 	  3.6 Table
 * 	  3.7 Tooltip
 * 	  3.8 Modal
 * 	  3.9 Nav
 * 	  3.10 Pagination
 * 	  3.11 Badge
 * 	  3.12 Button
 * 	  3.13 Media
 * 	  3.14 Breadcrumb
 * 	  3.15 Accordion
 * 	  3.16 Popover
 * 	  3.17 Grid
 * 	  3.18 Navbar
 * 	  3.19 Dropdown
 * 	  3.20 Tab
 * 	  3.21 Progressbar
 * 	  3.22 Jumbotron
 * 	  3.23 Carousel
 * 4. Theme Style
 * 	  4.1 Misc
 * 	  4.2 Section
 * 	  4.3 Page
 * 	  4.4 Layout
 * 	  4.5 Animation
 * 5. Responsive
 * 6. Custom Components
 *    6.1 Sticky Preview
 *
 */

/* Avatar dan Badge untuk tampilan user */
.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 8px;
}

.avatar-image {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.avatar-image:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.avatar-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    border: 2px solid #fff;
}

.badge-creator {
    background-color: #6777ef;
}

.badge-editor {
    background-color: #47c363;
}

/* Untuk kolom invalid */
.is-invalid {
    border-color: #ff0033 !important; /* Disesuaikan dengan danger baru */
    overflow: visible !important; /* Mencegah pemotongan */
}

.select2-container.is-invalid .select2-selection {
    border-color: #ff0033 !important; /* Disesuaikan dengan danger baru */
}

/* Untuk radio button invalid */
.form-group.is-invalid .custom-control-label {
    color: #ff0033 !important; /* Disesuaikan dengan danger baru */
}

.form-group.is-invalid .custom-control-label::before {
    border-color: #ff0033 !important; /* Disesuaikan dengan danger baru */
}

/* Custom CSS untuk mengatur urutan card pada mobile */
@media (max-width: 767.98px) {
    /* Mengatur container row untuk menggunakan flexbox */
    .row {
        display: flex;
        flex-wrap: wrap;
    }

    /* Urutan card:
       1. Surat Umum
       2. Pendampingan
       3. SPT
       4. Penugasan Lapangan
       5. Penugasan LHPP
       6. Laporan Hasil
       7. Penawaran
       8. Invoice
       9. BAP
    */

    /* Surat Umum - card-order-1 tetap di posisi 1 */
    .card-order-1 {
        order: 1;
    }

    /* Pendampingan - card-order-2 tetap di posisi 2 */
    .card-order-2 {
        order: 2;
    }

    /* SPT Disnakertrans - card-order-7 ke posisi 3 */
    .card-order-7 {
        order: 3;
    }

    /* Penugasan Lapangan - card-order-5 ke posisi 4 */
    .card-order-5 {
        order: 4;
    }

    /* Penugasan LHPP - card-order-6 ke posisi 5 */
    .card-order-6 {
        order: 5;
    }

    /* Laporan Hasil - card-order-8 ke posisi 6 */
    .card-order-8 {
        order: 6;
    }

    /* Penawaran - card-order-3 ke posisi 7 */
    .card-order-3 {
        order: 7;
    }

    /* Invoice - card-order-4 ke posisi 8 */
    .card-order-4 {
        order: 8;
    }

    /* BAP - card-order-9 tetap di posisi 9 */
    .card-order-9 {
        order: 9;
    }
}

/* 1. Variable */
/* 2. Mixin */
/* 3. Bootstrap Override */
/* 3.1 Misc */
.btn:focus,
.btn:active,
.btn:active:focus,
.custom-select:focus,
.form-control:focus {
    box-shadow: none !important;
    outline: none;
}

a {
    color: var(--primary);
    font-weight: 500;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
}

a:hover {
    color: #b31031; /* 20% lebih gelap dari warna dasar */
    text-decoration: none;
}

a:not(.btn-social-icon):not(.btn-social):not(.page-link) .ion,
a:not(.btn-social-icon):not(.btn-social):not(.page-link) .fas,
a:not(.btn-social-icon):not(.btn-social):not(.page-link) .far,
a:not(.btn-social-icon):not(.btn-social):not(.page-link) .fal,
a:not(.btn-social-icon):not(.btn-social):not(.page-link) .fab {
    margin-left: 4px;
}

.bg-primary {
    background: var(--primary-gradient) !important;
}

.bg-secondary {
    background-color: #cdd3d8 !important;
}

.bg-success {
    background-color: #63ed7a !important;
}

.bg-blue {
    background-color: #6777ef !important;
}

.bg-info {
    background-color: #3abaf4 !important;
}

.bg-warning {
    background-color: #ffa426 !important;
}

.bg-danger {
    background-color: #ff0033 !important;
}

.bg-light {
    background-color: #e3eaef !important;
}

.bg-dark {
    background-color: #191d21 !important;
}

.text-primary,
.text-primary-all *,
.text-primary-all *:before,
.text-primary-all *:after {
    color: var(--primary) !important;
}

.text-secondary,
.text-secondary-all *,
.text-secondary-all *:before,
.text-secondary-all *:after {
    color: #cdd3d8 !important;
}

.text-success,
.text-success-all *,
.text-success-all *:before,
.text-success-all *:after {
    color: #63ed7a !important;
}

.text-info,
.text-info-all *,
.text-info-all *:before,
.text-info-all *:after {
    color: #3abaf4 !important;
}

.text-warning,
.text-warning-all *,
.text-warning-all *:before,
.text-warning-all *:after {
    color: #ffa426 !important;
}

.text-danger,
.text-danger-all *,
.text-danger-all *:before,
.text-danger-all *:after {
    color: #ff0033 !important;
}

.text-light,
.text-light-all *,
.text-light-all *:before,
.text-light-all *:after {
    color: #e3eaef !important;
}

.text-white,
.text-white-all *,
.text-white-all *:before,
.text-white-all *:after {
    color: #ffffff !important;
}

.text-dark,
.text-dark-all *,
.text-dark-all *:before,
.text-dark-all *:after {
    color: #191d21 !important;
}

.font-weight-normal {
    font-weight: 500 !important;
}

.lead {
    line-height: 34px;
}

@media (max-width: 575.98px) {
    .lead {
        font-size: 17px;
        line-height: 30px;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    color: #222222;
    margin-bottom: 15px;
    font-weight: 600;
}

p,
ul:not(.list-unstyled),
ol {
    line-height: 28px;
}

.shadow {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
}

.text-muted {
    color: var(--text-secondary) !important;
}

/* Warna teks yang lebih nyaman */
.text-small {
    color: var(--text-secondary) !important;
}

/* 3.2 Form */
.form-control,
.input-group-text,
.custom-select,
.custom-file-label {
    background-color: #fdfdff;
    border-color: #e4e6fc;
    border-radius: 6px;
    transition: all 0.3s ease;
    overflow: visible;
}

.form-control:hover,
.custom-select:hover,
.custom-file-label:hover {
    border-color: #d0d6f9;
}

.form-control:focus,
.input-group-text:focus,
.custom-select:focus,
.custom-file-label:focus {
    background-color: #fefeff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    overflow: visible;
}

.input-group-text,
select.form-control:not([size]):not([multiple]),
.form-control:not(.form-control-sm):not(.form-control-lg) {
    font-size: 14px;
    padding: 10px 15px;
    height: 42px;
}

.input-group {
    border-radius: 6px;
    /* Menghapus overflow: hidden yang mungkin menyebabkan pemotongan */
}

.input-group .input-group-text {
    background-color: #f8f9fa;
    border-color: #e4e6fc;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    align-items: center;
}

.input-group .input-group-text i {
    font-size: 16px;
}

textarea.form-control {
    height: 64px !important;
}

.custom-control {
    line-height: 1.6rem;
}

.custom-file,
.custom-file-label,
.custom-select,
.custom-file-label:after,
.form-control[type="color"],
select.form-control:not([size]):not([multiple]) {
    height: calc(2.25rem + 6px);
}

.form-control.creditcard {
    background-position: 98%;
    background-repeat: no-repeat;
    background-size: 40px;
    padding-right: 60px;
}

.form-control.creditcard.visa {
    background-image: url("../img/visa.png");
}

.form-control.creditcard.americanexpress {
    background-image: url("../img/americanexpress.png");
}

.form-control.creditcard.dinersclub {
    background-image: url("../img/dinersclub.png");
}

.form-control.creditcard.discover {
    background-image: url("../img/discover.png");
}

.form-control.creditcard.jcb {
    background-image: url("../img/jcb.png");
}

.form-control.creditcard.mastercard {
    background-image: url("../img/mastercard.png");
}

.form-control.creditcard.visa {
    background-image: url("../img/visa.png");
}

.form-group {
    margin-bottom: 25px;
}

.form-group .control-label,
.form-group > label {
    font-weight: 600;
    color: #34395e;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.form-group.floating-addon {
    position: relative;
}

.form-group.floating-addon .input-group-prepend {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 5;
}

.form-group.floating-addon:not(.floating-addon-not-append) .input-group-append {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    left: initial;
    right: 0;
}

.form-group.floating-addon .input-group-prepend .input-group-text,
.form-group.floating-addon .input-group-append .input-group-text {
    border-color: transparent;
    background-color: transparent;
    font-size: 20px;
}

.form-group.floating-addon .form-control {
    border-radius: 3px;
    padding-left: 40px;
}

.form-group.floating-addon .form-control + .form-control {
    border-radius: 0 3px 3px 0;
    padding-left: 15px;
}

.input-group-append [class*="btn-outline-"] {
    background-color: #fdfdff;
}

.form-text {
    font-size: 12px;
    line-height: 22px;
}

/* Kode yang sudah ada - untuk state checked */
.custom-radio .custom-control-input:checked ~ .custom-control-label::before,
.custom-control-input:checked ~ .custom-control-label::before {
    background: var(--primary-gradient) !important;
    border-color: var(--primary) !important;
    animation: pulse-primary 0.5s;
}

/* Kode tambahan - untuk state focus dan active */
.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25) !important;
    border-color: var(--primary) !important;
}

.custom-control-input:not(:disabled):active ~ .custom-control-label::before {
    background-color: rgba(var(--primary-rgb), 0.2) !important;
    border-color: var(--primary) !important;
}

/* Custom file input dengan text overflow */
.custom-file-label {
    line-height: 2.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 100px; /* Memberikan ruang untuk tombol "Browse" */
}

.custom-file-label:after {
    height: calc(2.25rem + 4px);
    line-height: 2.2;
    border-color: transparent;
}

.custom-file-label:focus,
.custom-file-label:active {
    box-shadow: none;
    outline: none;
}

.custom-file-input:focus + .custom-file-label {
    box-shadow: none;
    border-color: var(--primary);
}

.custom-file-input:focus + .custom-file-label:after {
    border-color: transparent;
}

.selectgroup {
    display: -ms-inline-flexbox;
    display: inline-flex;
}

.selectgroup-item {
    -ms-flex-positive: 1;
    flex-grow: 1;
    position: relative;
}

.selectgroup-item + .selectgroup-item {
    margin-left: -1px;
}

.selectgroup-item:not(:first-child) .selectgroup-button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.selectgroup-item:not(:last-child) .selectgroup-button {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.selectgroup-input {
    opacity: 0;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
}

.selectgroup-button {
    background-color: #fdfdff;
    border-color: #e4e6fc;
    border-width: 1px;
    border-style: solid;
    display: block;
    text-align: center;
    padding: 0 1rem;
    height: 35px;
    position: relative;
    cursor: pointer;
    border-radius: 3px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-size: 13px;
    min-width: 2.375rem;
    line-height: 36px;
}

.selectgroup-button-icon {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.selectgroup-button-icon i {
    font-size: 14px;
}

.selectgroup-input:focus + .selectgroup-button,
.selectgroup-input:checked + .selectgroup-button {
    background-color: var(--primary);
    color: #fff;
    z-index: 1;
}

.selectgroup-pills {
    display: block;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: start;
    align-items: flex-start;
}

.selectgroup-pills .selectgroup-item {
    margin-right: 0.5rem;
    -ms-flex-positive: 0;
    flex-grow: 0;
}

.selectgroup-pills .selectgroup-button {
    border-radius: 50px !important;
}

.custom-switch {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    margin: 0;
}

.custom-switch-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.custom-switches-stacked {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
}

.custom-switches-stacked .custom-switch {
    margin-bottom: 0.5rem;
}

.custom-switch-indicator {
    display: inline-block;
    height: 1.25rem;
    width: 2.25rem;
    background: #e9ecef;
    border-radius: 50px;
    position: relative;
    vertical-align: bottom;
    border: 1px solid rgba(0, 40, 100, 0.12);
    transition: 0.3s border-color, 0.3s background-color;
}

.custom-switch-indicator:before {
    content: "";
    position: absolute;
    height: calc(1.25rem - 4px);
    width: calc(1.25rem - 4px);
    top: 1px;
    left: 1px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s left;
}

.custom-switch-input:checked ~ .custom-switch-indicator {
    background: var(--primary);
}

.custom-switch-input:checked ~ .custom-switch-indicator:before {
    left: calc(1rem + 1px);
}

.custom-switch-input:focus ~ .custom-switch-indicator {
    border-color: var(--primary);
}

.custom-switch-description {
    margin-left: 0.5rem;
    color: #6e7687;
    transition: 0.3s color;
}

.custom-switch-input:checked ~ .custom-switch-description {
    color: #495057;
}

.imagecheck {
    margin: 0;
    position: relative;
    cursor: pointer;
}

.imagecheck-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.imagecheck-figure {
    background-color: #fdfdff;
    border-color: #e4e6fc;
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    margin: 0;
    position: relative;
}

.imagecheck-input:focus ~ .imagecheck-figure {
    border-color: #dc143c;
}

.imagecheck-input:checked ~ .imagecheck-figure {
    border-color: rgba(0, 40, 100, 0.24);
}

.imagecheck-figure:before {
    content: "";
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    display: block;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: var(--primary)
        url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E")
        no-repeat center center/50% 50%;
    color: #fff;
    z-index: 1;
    border-radius: 3px;
    opacity: 0;
    transition: 0.3s opacity;
}

.imagecheck-input:checked ~ .imagecheck-figure:before {
    opacity: 1;
}

.imagecheck-image {
    max-width: 100%;
    opacity: 0.64;
    transition: 0.3s opacity;
}

.imagecheck-image:first-child {
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

.imagecheck-image:last-child {
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

.imagecheck:hover .imagecheck-image {
    opacity: 1;
}

.imagecheck-input:focus ~ .imagecheck-figure .imagecheck-image,
.imagecheck-input:checked ~ .imagecheck-figure .imagecheck-image {
    opacity: 1;
}

.imagecheck-caption {
    text-align: center;
    padding: 0.25rem 0.25rem;
    color: #9aa0ac;
    font-size: 0.875rem;
    transition: 0.3s color;
}

.imagecheck:hover .imagecheck-caption {
    color: #495057;
}

.imagecheck-input:focus ~ .imagecheck-figure .imagecheck-caption,
.imagecheck-input:checked ~ .imagecheck-figure .imagecheck-caption {
    color: #495057;
}

.colorinput {
    margin: 0;
    position: relative;
    cursor: pointer;
}

.colorinput-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.colorinput-color {
    background-color: #fdfdff;
    border-color: #e4e6fc;
    border-width: 1px;
    border-style: solid;
    display: inline-block;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 3px;
    color: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.colorinput-color:before {
    content: "";
    opacity: 0;
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    height: 1.25rem;
    width: 1.25rem;
    transition: 0.3s opacity;
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E")
        no-repeat center center/50% 50%;
}

.colorinput-input:checked ~ .colorinput-color:before {
    opacity: 1;
}

/* Select2 Crimson Theme */
.select2-container--default .select2-selection--single {
    height: 42px !important;
    border: 1px solid #e4e6fc !important;
    background-color: #fdfdff !important;
    overflow: visible !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 42px !important;
    padding-left: 15px !important;
    color: #495057 !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 40px !important;
    right: 10px !important;
}

.select2-dropdown {
    border: 1px solid var(--primary) !important;
    box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.1) !important;
}

.select2-search--dropdown {
    padding: 10px !important;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #e4e6fc !important;
    padding: 5px 10px !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.select2-container--default
    .select2-results__option--highlighted[aria-selected] {
    background: var(
        --primary-gradient
    ) !important; /* Warna saat opsi dipilih */
    color: #fff;
}

.select2-results__option {
    padding: 8px 15px !important;
    background-color: #fff !important; /* Warna latar belakang opsi */
    color: #495057 !important; /* Warna teks opsi */
}

.select2-results__option--highlighted {
    background: var(--primary-gradient) !important; /* Warna saat hover */
    color: #fff !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary) !important;
    outline: none;
}

/* Versi lengkap CSS Selectric Crimson Theme */

/* Base styling */
.selectric {
    background-color: #fdfdff !important; /* Warna latar belakang */
    border: 1px solid #e4e6fc !important; /* Border default */
    border-radius: 3px !important; /* Radius border */
    height: 42px; /* Tinggi elemen */
    overflow: visible !important; /* Mencegah pemotongan */
}

/* Dropdown items */
.selectric-items li.selected {
    background: var(
        --primary-gradient
    ) !important; /* Warna crimson saat dipilih */
    color: #fff !important; /* Warna teks putih */
}

/* Focus states */
.selectric-open .selectric,
.selectric-focus .selectric {
    border-color: var(--primary) !important; /* Border merah saat fokus */
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* Validasi */
.form-group.is-invalid .selectric {
    border-color: #ff0033 !important; /* Border merah untuk validasi */
}

/* Placeholder styling */
.selectric .label {
    color: #495057 !important; /* Warna teks normal */
}

.selectric-wrapper .selectric .label[data-placeholder="true"],
.selectric-wrapper .selectric-items li.placeholder {
    color: #999 !important; /* Warna teks placeholder */
    /* Removing font-style: italic; */
}

/* Perbaikan warna biru pada dropdown */
.selectric-items li:hover {
    background-color: rgba(var(--primary-rgb), 0.05) !important;
    color: var(--primary) !important;
}

.selectric-items li.highlighted {
    background: var(--primary-gradient) !important;
    color: #fff !important;
}

/* Disabled styling - improved */
.selectric-disabled {
    opacity: 0.75 !important; /* Slightly higher opacity than default */
    cursor: not-allowed !important;
    background-color: #f2f2f2 !important; /* Light gray background */
    border-color: #ddd !important;
}

.selectric-disabled .label {
    color: #777 !important; /* Darker text for better readability */
}

.selectric-disabled .button {
    background-color: #eee !important;
    color: #999 !important;
}

/* Dropdown items disabled styling - improved */
.selectric-items li.disabled {
    background-color: #f0f0f0 !important; /* Lighter background to distinguish from normal items */
    color: #666 !important; /* Darker text for better readability */
    opacity: 0.8; /* Higher opacity for better visibility */
    cursor: not-allowed !important;
    position: relative;
}

/* Add subtle diagonal line to indicate disabled state */
.selectric-items li.disabled::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(0, 0, 0, 0.03) 5px,
        rgba(0, 0, 0, 0.03) 10px
    );
}

/* Menghindari hover pada opsi disabled */
.selectric-items li.disabled:hover {
    background-color: #f0f0f0 !important; /* Keep the same background on hover */
    color: #666 !important;
}

/* Pastikan pesan error terlihat saat validasi */
.form-group.is-invalid .invalid-feedback {
    display: block !important;
    margin-top: 5px;
}

/* 3.3 List */
.list-unstyled-border li {
    border-bottom: 1px solid #f2f2f2; /* Sedikit lebih gelap untuk kontras lebih baik */
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.list-unstyled-border li .custom-checkbox {
    margin-right: 15px;
}

.list-unstyled-border li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.list-unstyled-noborder li:last-child {
    border-bottom: none;
}

.list-group-item.active {
    background: var(--primary-gradient);
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: var(--primary-shadow);
}

.list-group-item.disabled {
    color: #8896a3; /* Lebih gelap untuk keterbacaan lebih baik */
    background-color: #f8f9fa;
}

.list-group-item-primary {
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 500;
}

.list-group-item-secondary {
    background-color: #cdd3d8;
    color: #2d3338; /* Lebih gelap untuk keterbacaan */
    font-weight: 500;
}

.list-group-item-success {
    background-color: #63ed7a;
    color: #0a4f15; /* Warna teks lebih gelap untuk kontras */
    font-weight: 500;
}

.list-group-item-danger {
    background-color: #ff0033;
    color: #fff;
    font-weight: 500;
}

.list-group-item-warning {
    background-color: #ffa426;
    color: #653601; /* Warna teks lebih gelap untuk kontras */
    font-weight: 500;
}

.list-group-item-info {
    background-color: #3abaf4;
    color: #fff;
    font-weight: 500;
}

.list-group-item-light {
    background-color: #e3eaef;
    color: #191d21;
    font-weight: 500;
}

.list-group-item-dark {
    background-color: #191d21;
    color: #fff;
    font-weight: 500;
}

/* 3.4 Alert */
.alert {
    color: #fff;
    border: none;
    padding: 15px 20px;
    border-radius: 5px; /* Sedikit lebih rounded */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Bayangan halus */
}

.alert .alert-title {
    font-size: 16px; /* Ukuran lebih kecil */
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}

.alert code {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 13px;
    color: #333;
}

.alert p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.6;
}

.alert.alert-has-icon {
    display: flex;
    align-items: flex-start; /* Perbaikan alignment */
    gap: 12px; /* Spacing yang lebih konsisten */
}

.alert.alert-has-icon .alert-icon {
    margin-top: 2px;
    width: 24px; /* Ukuran lebih kecil */
    flex-shrink: 0;
}

.alert.alert-has-icon .alert-icon .ion,
.alert.alert-has-icon .alert-icon .fas,
.alert.alert-has-icon .alert-icon .far,
.alert.alert-has-icon .alert-icon .fab,
.alert.alert-has-icon .alert-icon .fal {
    font-size: 18px; /* Ukuran icon lebih kecil */
}

.alert.alert-has-icon .alert-body {
    flex: 1;
}

.alert:not(.alert-light) a {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
}

.alert:not(.alert-light) a:hover {
    text-decoration: none;
    opacity: 0.9;
}

.alert.alert-primary {
    background: var(--primary-gradient);
}

.alert.alert-secondary {
    background: var(--secondary-gradient);
    color: #fff;
}

.alert.alert-success {
    background: var(--success-gradient);
    color: #fff;
}

.alert.alert-info {
    background: var(--info-gradient);
}

.alert.alert-warning {
    background: var(--warning-gradient);
    color: #fff;
}

.alert.alert-danger {
    background: var(--danger-gradient);
}

.alert.alert-light {
    background-color: #e3eaef;
    color: #191d21;
}

.alert.alert-dark {
    background-color: #191d21;
}

/* 3.5 Card */
.card {
    background-color: var(--card-bg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    border-radius: var(--border-radius);
    border: none;
    position: relative;
    margin-bottom: 20px;
    transition: all var(--transition-speed) ease;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

/* Desktop Card Enhancements */
@media (min-width: 992px) {
    .card {
        margin-bottom: 20px;
    }

    .card .card-header {
        padding: 18px 25px;
    }

    .card .card-body {
        padding: 20px 25px;
    }

    .card .card-footer {
        padding: 15px 25px;
    }

    /* Card statistics for dashboard */
    .card-statistic-1 .card-icon,
    .card-statistic-2 .card-icon {
        width: 85px;
        height: 85px;
        line-height: 100px;
        margin: 15px;
    }

    .card-statistic-1 .card-icon .ion,
    .card-statistic-1 .card-icon .fas,
    .card-statistic-1 .card-icon .far,
    .card-statistic-1 .card-icon .fab,
    .card-statistic-1 .card-icon .fal,
    .card-statistic-2 .card-icon .ion,
    .card-statistic-2 .card-icon .fas,
    .card-statistic-2 .card-icon .far,
    .card-statistic-2 .card-icon .fab,
    .card-statistic-2 .card-icon .fal {
        font-size: 26px;
    }

    .card-statistic-1 .card-body,
    .card-statistic-2 .card-body {
        font-size: 28px;
    }
}

.card .card-header,
.card .card-body,
.card .card-footer {
    background-color: transparent;
    padding: 20px 25px;
}

.card .navbar {
    position: static;
}

.card .card-body {
    padding-top: 20px;
    padding-bottom: 20px;
    color: #333333;
}

.card .card-body .section-title {
    margin: 30px 0 10px 0;
    font-size: 16px;
    color: #333333;
}

.card .card-body .section-title:before {
    margin-top: 8px;
}

.card .card-body .section-title + .section-lead {
    margin-top: -5px;
}

.card .card-body p {
    font-weight: 400;
    line-height: 1.6;
    color: #333333;
}

.card .card-header {
    border-bottom: 1px solid #f2f2f2;
    line-height: 30px;
    align-self: center;
    width: 100%;
    min-height: 70px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
}

.card .card-header .btn {
    margin-top: 1px;
    padding: 3px 15px;
}

.card .card-header .btn:not(.note-btn) {
    border-radius: 6px;
}

.card .card-header .form-control {
    height: 36px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #e4e6fc;
}

.card .card-header .form-control + .input-group-btn .btn {
    margin-top: -1px;
}

.card .card-header h4 {
    font-size: 16px;
    line-height: 1.6;
    padding-right: 10px;
    margin-bottom: 0;
    font-weight: 600;
    color: #333333;
    letter-spacing: 0.3px;
}

.card .card-header h4 + .card-header-action,
.card .card-header h4 + .card-header-form {
    margin-left: auto;
}

.card .card-header h4 + .card-header-action .btn,
.card .card-header h4 + .card-header-form .btn {
    font-size: 12px;
    border-radius: 30px !important;
    padding-left: 13px !important;
    padding-right: 13px !important;
}

.card .card-header h4 + .card-header-action .btn.active,
.card .card-header h4 + .card-header-form .btn.active {
    box-shadow: var(--primary-shadow);
    background: var(--primary-gradient);
    color: #fff;
}

.card .card-header h4 + .card-header-action .dropdown,
.card .card-header h4 + .card-header-form .dropdown {
    display: inline;
}

.card .card-header h4 + .card-header-action .btn-group .btn,
.card .card-header h4 + .card-header-form .btn-group .btn {
    border-radius: 0 !important;
}

.card .card-header h4 + .card-header-action .btn-group .btn:first-child,
.card .card-header h4 + .card-header-form .btn-group .btn:first-child {
    border-radius: 30px 0 0 30px !important;
}

.card .card-header h4 + .card-header-action .btn-group .btn:last-child,
.card .card-header h4 + .card-header-form .btn-group .btn:last-child {
    border-radius: 0 30px 30px 0 !important;
}

.card .card-header h4 + .card-header-action .input-group .form-control,
.card .card-header h4 + .card-header-form .input-group .form-control {
    border-radius: 30px 0 0 30px !important;
}

.card
    .card-header
    h4
    + .card-header-action
    .input-group
    .form-control
    + .input-group-btn
    .btn,
.card
    .card-header
    h4
    + .card-header-form
    .input-group
    .form-control
    + .input-group-btn
    .btn {
    border-radius: 0 30px 30px 0 !important;
}

.card .card-footer {
    background-color: transparent;
    border: none;
}

.card.card-mt {
    margin-top: 30px;
}

.card.card-progress:after {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 99;
}

.card.card-progress .card-progress-dismiss {
    position: absolute;
    top: 66%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    background-color: #ff0033;
    color: #fff !important;
    padding: 5px 13px;
}

.card.card-progress.remove-spinner .card-progress-dismiss {
    top: 50%;
    transform: translate(-50%, -50%);
}

.card.card-progress:not(.remove-spinner):after {
    background-image: url("../img/spinner.svg");
    background-size: 80px;
    background-repeat: no-repeat;
    background-position: center;
}

.card.card-primary {
    border-top: none;
    border-radius: var(--border-radius);
    background-image: linear-gradient(
        to bottom,
        var(--primary) 2px,
        transparent 2px
    );
}

.card.card-secondary {
    border-top: none;
    border-radius: var(--border-radius);
    background-image: linear-gradient(
        to bottom,
        var(--secondary) 2px,
        transparent 2px
    );
}

.card.card-success {
    border-top: none;
    border-radius: var(--border-radius);
    background-image: linear-gradient(
        to bottom,
        var(--success) 2px,
        transparent 2px
    );
}

.card.card-danger {
    border-top: none;
    border-radius: var(--border-radius);
    background-image: linear-gradient(
        to bottom,
        var(--danger) 2px,
        transparent 2px
    );
}

.card.card-warning {
    border-top: none;
    border-radius: var(--border-radius);
    background-image: linear-gradient(
        to bottom,
        var(--warning) 2px,
        transparent 2px
    );
}

.card.card-info {
    border-top: none;
    border-radius: var(--border-radius);
    background-image: linear-gradient(
        to bottom,
        var(--info) 2px,
        transparent 2px
    );
}

.card.card-dark {
    border-top: none;
    border-radius: var(--border-radius);
    background-image: linear-gradient(
        to bottom,
        var(--dark) 2px,
        transparent 2px
    );
}

.card.card-hero .card-header {
    padding: 40px;
    background: var(--primary-gradient);
    color: #fff;
    overflow: hidden;
    height: auto;
    min-height: auto;
    display: block;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.card.card-hero .card-header h4 {
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
}

.card.card-hero .card-header .card-description {
    margin-top: 8px;
    font-size: 16px;
    opacity: 0.9;
}

.card.card-hero .card-header .card-icon {
    float: right;
    color: rgba(255, 255, 255, 0.6);
    margin: -60px;
}

.card.card-hero .card-header .card-icon .ion,
.card.card-hero .card-header .card-icon .fas,
.card.card-hero .card-header .card-icon .far,
.card.card-hero .card-header .card-icon .fab,
.card.card-hero .card-header .card-icon .fal {
    font-size: 140px;
}

.card.card-statistic-1 .card-header,
.card.card-statistic-2 .card-header {
    border-color: transparent;
    padding-bottom: 0;
    height: auto;
    min-height: auto;
    display: block;
}

.card.card-statistic-1 .card-header h4,
.card.card-statistic-2 .card-header h4 {
    line-height: 1.2;
    color: #333333;
}

.card.card-statistic-1 .card-body,
.card.card-statistic-2 .card-body {
    padding-top: 0;
    font-size: 26px;
    font-weight: 700;
    color: #333333;
    padding-bottom: 0;
}

.card.card-statistic-1,
.card.card-statistic-2 {
    display: inline-block;
    width: 100%;
}

.card.card-statistic-1 .card-icon,
.card.card-statistic-2 .card-icon {
    width: 80px;
    height: 80px;
    margin: 10px;
    border-radius: 50%;
    line-height: 94px;
    text-align: center;
    float: left;
    margin-right: 15px;
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
    transition: all 0.3s ease;
}

.card.card-statistic-1:hover .card-icon,
.card.card-statistic-2:hover .card-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.card.card-statistic-1 .card-icon .ion,
.card.card-statistic-1 .card-icon .fas,
.card.card-statistic-1 .card-icon .far,
.card.card-statistic-1 .card-icon .fab,
.card.card-statistic-1 .card-icon .fal,
.card.card-statistic-2 .card-icon .ion,
.card.card-statistic-2 .card-icon .fas,
.card.card-statistic-2 .card-icon .far,
.card.card-statistic-2 .card-icon .fab,
.card.card-statistic-2 .card-icon .fal {
    font-size: 22px;
    color: #fff;
}

.card.card-statistic-1 .card-icon {
    line-height: 90px;
}

.card.card-statistic-2 .card-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 22px;
    margin: 25px;
    border-radius: 50%;
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
}

.card.card-statistic-1 .card-header,
.card.card-statistic-2 .card-header {
    padding-bottom: 0;
    padding-top: 25px;
}

.card.card-statistic-2 .card-body {
    padding-top: 20px;
}

.card.card-statistic-2 .card-header + .card-body,
.card.card-statistic-2 .card-body + .card-header {
    padding-top: 0;
}

.card.card-statistic-1 .card-header h4,
.card.card-statistic-2 .card-header h4 {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.card.card-statistic-1 .card-body {
    font-size: 20px;
}

.card.card-statistic-2 .card-chart {
    padding-top: 20px;
    margin-left: -9px;
    margin-right: -1px;
    margin-bottom: -15px;
}

.card.card-statistic-2 .card-chart canvas {
    height: 90px !important;
}

.card .card-stats {
    width: 100%;
    display: inline-block;
    margin-top: 2px;
    margin-bottom: -6px;
}

.card .card-stats .card-stats-title {
    padding: 15px 25px;
    background-color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #333333;
}

.card .card-stats .card-stats-items {
    display: flex;
    height: 50px;
    align-items: center;
}

.card .card-stats .card-stats-item {
    width: calc(100% / 3);
    text-align: center;
    padding: 5px 20px;
}

.card .card-stats .card-stats-item .card-stats-item-label {
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-top: 4px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    color: #333333;
}

.card .card-stats .card-stats-item .card-stats-item-count {
    line-height: 1;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #333333;
}

@media (max-width: 575.98px) {
    .card.card-large-icons {
        display: inline-block;
    }

    .card.card-large-icons .card-icon {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 767.98px) {
    .card .card-header {
        height: auto;
        flex-wrap: wrap;
    }

    .card .card-header h4 + .card-header-action,
    .card .card-header h4 + .card-header-form {
        flex-grow: 0;
        width: 100%;
        margin-top: 10px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .card .card-stats .card-stats-items {
        height: 49px;
    }

    .card .card-stats .card-stats-items .card-stats-item {
        padding: 5px 7px;
    }

    .card
        .card-stats
        .card-stats-items
        .card-stats-item
        .card-stats-item-count {
        font-size: 16px;
    }

    .card.card-sm-6 .card-chart canvas {
        height: 85px !important;
    }

    .card.card-hero .card-header {
        padding: 25px;
    }
}

/* 3.6 Table */
.table td,
.table:not(.table-bordered) th {
    border-top: none;
    font-size: 15px;
    color: #4f4f4f; /* Warna text abu-abu yang lebih lembut */
    line-height: 1.7; /* Line height sedikit ditambah untuk ruang bernafas */
    transition: all 0.2s ease;
    border-bottom: 1px solid #f9f9f9; /* Garis bawah sangat tipis */
}

/* Desktop Table Enhancements */
@media (min-width: 992px) {
    .table td,
    .table th {
        font-size: 15.5px;
        line-height: 1.8;
    }

    .table:not(.table-sm):not(.table-md):not(.dataTable) td,
    .table:not(.table-sm):not(.table-md):not(.dataTable) th {
        padding: 0 28px;
        height: 65px;
    }

    .table:not(.table-sm) thead th {
        font-weight: 600;
        letter-spacing: 0.5px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    /* Improved hover effect for desktop */
    .table-hover tbody tr:hover td {
        color: #222;
        font-weight: 500;
    }

    /* Better spacing for table actions */
    .table-links {
        font-size: 15.5px;
        margin-top: 6px;
    }
}

.table:not(.table-sm):not(.table-md):not(.dataTable) td,
.table:not(.table-sm):not(.table-md):not(.dataTable) th {
    padding: 0 25px;
    height: 62px; /* Sedikit lebih tinggi untuk ruang yang lebih nyaman */
    vertical-align: middle;
}

.table:not(.table-sm) thead th {
    border-bottom: none;
    background-color: #f0f2f5; /* Background header yang lebih terlihat */
    color: #2d3748; /* Warna header yang lebih gelap untuk kontras yang baik */
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.table:not(.table-sm):not(.dataTable) thead th:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #edf2f7;
}

.table.table-md th,
.table.table-md td {
    padding: 13px 16px; /* Padding yang lebih nyaman */
}

.table.table-bordered td,
.table.table-bordered th {
    border-color: #f5f5f5; /* Border color yang sangat lembut, hampir tidak terlihat */
}

.table-links {
    color: #4f4f4f;
    font-size: 15px;
    margin-top: 5px;
    opacity: 0.7;
    transition: all 0.3s;
}

.table-links a {
    color: #4f4f4f;
    transition: all 0.2s ease;
}

.table-links a:hover {
    color: var(--primary);
    transform: scale(1.1);
    display: inline-block;
}

table tr:hover .table-links {
    opacity: 1;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa; /* Warna strip yang lebih terlihat */
}

/* Improved row hover effect */
.table-hover tbody tr {
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.table-hover tbody tr:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
    border-left: 3px solid var(--primary);
    position: relative;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.08);
    z-index: 1;
}

.table-hover tbody tr:hover td {
    color: #333;
    font-weight: 500;
}

/* DataTables specific */
.dataTables_length {
    width: auto; /* Pastikan lebar otomatis */
}

.dataTables_length select,
.dataTables_filter input {
    font-size: 15px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #ffffff;
    color: #4f4f4f;
    min-width: 80px; /* Menetapkan lebar minimum untuk dropdown */
    transition: all 0.3s ease;
}

.dataTables_filter input:focus {
    border-color: #dc143c;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.dataTables_length label,
.dataTables_filter label {
    font-size: 15px;
    color: #4f4f4f;
    margin-right: 10px; /* Memberikan jarak antara label dan dropdown */
}

.dataTables_info {
    font-size: 15px;
    color: #4f4f4f;
}

.dataTables_wrapper {
    padding: 22px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.dataTables_paginate .paginate_button {
    border-radius: 4px;
    transition: all 0.2s ease;
}

.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:hover {
    background: #f0f0f0 !important;
    border-color: #e0e0e0 !important;
    color: #8a1022 !important;
    font-weight: 600;
}

.dataTables_paginate .paginate_button:hover {
    background: #f8f8f8 !important;
    border-color: transparent !important;
    color: #8a1022 !important;
}

@media (max-width: 575.98px) {
    .table-responsive table {
        min-width: 800px;
    }

    .table td,
    .table th {
        font-size: 14px;
    }
}

/* 3.7 Tooltip */
.tooltip {
    font-size: 12px;
}

.tooltip-inner {
    padding: 7px 13px;
}

/* 3.8 Modal */
.modal-header,
.modal-body,
.modal-footer {
    padding: 25px;
}

.modal-body {
    padding-top: 15px;
}

.modal-footer {
    padding-top: 15px;
    padding-bottom: 15px;
}

.modal-header {
    border-bottom: none;
    padding-bottom: 5px;
}

.modal-header h5 {
    font-size: 18px;
    color: #333333;
}

.modal-footer {
    border-top: none;
    border-radius: 0 0 3px 3px;
}

.modal-content {
    max-width: 100%;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.modal.show .modal-content {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.modal-progress .modal-content {
    position: relative;
}

.modal-progress .modal-content:after {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 999;
    background-image: url("../img/spinner.svg");
    background-size: 80px;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 3px;
}

.modal-part {
    display: none;
}

/* 3.9 Nav */
.nav-tabs .nav-item .nav-link {
    color: #dc143c;
}

.nav-tabs .nav-item .nav-link.active {
    color: #333333;
}

.tab-content > .tab-pane {
    padding: 10px 0;
    line-height: 24px;
}

.tab-bordered .tab-pane {
    padding: 15px;
    border: 1px solid #ededed;
    margin-top: -1px;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff;
    background: var(--primary-gradient);
    box-shadow: var(--primary-shadow);
}

.nav-pills .nav-item .nav-link {
    color: #333333;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.nav-pills .nav-item .nav-link:hover {
    background-color: rgba(220, 20, 60, 0.05);
}

.nav-pills .nav-item .nav-link.active {
    box-shadow: var(--primary-shadow);
    color: #fff;
    background: var(--primary-gradient);
}

.nav-pills .nav-item .nav-link .badge {
    padding: 5px 8px;
    margin-left: 5px;
}

.nav .nav-item .nav-link .ion,
.nav .nav-item .nav-link .fas,
.nav .nav-item .nav-link .far,
.nav .nav-item .nav-link .fab,
.nav .nav-item .nav-link .fal {
    margin-right: 3px;
    font-size: 12px;
}

/* 3.10 Pagination */
.page-item .page-link {
    color: var(--primary);
    border-radius: 3px;
    margin: 0 3px;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: var(--primary);
    box-shadow: var(--primary-shadow);
}

.page-item.disabled .page-link {
    border-color: transparent;
    background-color: #f9fafe;
    color: #666;
    opacity: 0.6;
}

.page-link {
    border-color: transparent;
    background-color: #f9fafe;
    font-weight: 600;
}

.page-link:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

.page-link:focus {
    box-shadow: none;
}

/* 3.11 Badge */
.badges .badge {
    margin: 0 8px 10px 0;
}

.badge {
    vertical-align: middle;
    padding: 7px 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 30px;
    font-size: 12px;
}
.badge.badge-warning {
    background: var(--warning-gradient);
    box-shadow: 0 2px 6px rgba(232, 143, 36, 0.2);
    color: #fff;
}
.badge.badge-primary {
    background: var(--primary-gradient);
    box-shadow: 0 2px 6px rgba(196, 18, 48, 0.2);
}
.badge.badge-secondary {
    background: var(--secondary-gradient);
    box-shadow: 0 2px 6px rgba(52, 57, 94, 0.2);
}
.badge.badge-success {
    background: var(--success-gradient);
    box-shadow: 0 2px 6px rgba(71, 195, 99, 0.2);
}
.badge.badge-info {
    background: var(--info-gradient);
    box-shadow: 0 2px 6px rgba(42, 155, 213, 0.2);
}
.badge.badge-danger {
    background: var(--danger-gradient);
    box-shadow: 0 2px 6px rgba(224, 49, 49, 0.2);
}
.badge.badge-blue {
    background: linear-gradient(135deg, #6777ef 0%, #4958d0 100%);
    box-shadow: 0 2px 6px rgba(103, 119, 239, 0.2);
}
.badge.badge-light {
    background-color: #e3eaef;
    color: #191d21;
}
.badge.badge-white {
    background-color: #ffffff;
    color: #191d21;
}
.badge.badge-dark {
    background-color: #191d21;
}

h1 .badge {
    font-size: 24px;
    padding: 16px 21px;
}

h2 .badge {
    font-size: 22px;
    padding: 14px 19px;
}

h3 .badge {
    font-size: 18px;
    padding: 11px 16px;
}

h4 .badge {
    font-size: 16px;
    padding: 8px 13px;
}

h5 .badge {
    font-size: 14px;
    padding: 5px 10px;
}

h6 .badge {
    font-size: 11px;
    padding: 3px 8px;
}

.btn .badge {
    margin-left: 5px;
    padding: 4px 7px;
}
.btn .badge.badge-transparent {
    background-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* 3.12 Button */
.buttons .btn {
    margin: 0 8px 10px 0;
}

.btn:focus {
    box-shadow: none !important;
    outline: none;
}
.btn:active {
    box-shadow: none !important;
    outline: none;
}
.btn:active:focus {
    box-shadow: none !important;
    outline: none;
}

/* Desktop Button Enhancements */
@media (min-width: 992px) {
    .btn {
        padding: 0.4rem 1rem;
        font-size: 14.5px;
        letter-spacing: 0.6px;
        transition: all 0.25s ease;
    }

    .btn-lg {
        padding: 0.65rem 1.75rem;
        font-size: 16px;
    }

    .btn-sm {
        padding: 0.15rem 0.5rem;
    }

    .btn-primary:hover,
    .btn-primary:focus {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4) !important;
    }

    /* Form controls */
    .form-control:focus {
        /* Menghapus transform yang mungkin menyebabkan pemotongan */
        /* transform: translateY(-2px); */
        transition: all 0.3s ease;
    }

    .custom-select,
    .form-control {
        font-size: 15px;
    }

    /* Select2 enhancements */
    .select2-container--default .select2-selection--single {
        height: 45px !important;
    }

    .select2-container--default
        .select2-selection--single
        .select2-selection__rendered {
        line-height: 45px !important;
    }

    .select2-container--default
        .select2-selection--single
        .select2-selection__arrow {
        height: 43px !important;
    }
}

.btn.btn-icon-split i {
    text-align: center;
    width: 15px;
    font-size: 15px;
    float: left;
    margin-right: 10px;
}

.dropdown-item.has-icon i {
    text-align: center;
    width: 20px;
    font-size: 15px;
    margin-right: 10px;
    /* Hapus float:left karena sudah menggunakan flexbox */
}

.btn {
    font-weight: 600;
    font-size: 14px;
    line-height: 26px;
    padding: 0.3rem 0.8rem;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    transition: all 0.2s ease-in-out;
}

.btn.btn-icon-split {
    position: relative;
}
.btn.btn-icon-split i {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 45px;
    border-radius: 3px 0 0 3px;
    line-height: 32px;
}
.btn.btn-icon-split div {
    margin-left: 40px;
}
.btn.btn-icon-noflo-splitat {
    display: table;
    text-align: right;
}
.btn.btn-icon-noflo-splitat i {
    float: none;
    margin: 0;
    display: table-cell;
    vertical-align: middle;
    width: 30%;
}
.btn.btn-icon-noflo-splitat div {
    display: table-cell;
    vertical-align: middle;
    width: 70%;
    text-align: left;
    padding-left: 10px;
}

.btn:not(.btn-light):not(.btn-social):not(.btn-social-icon):active,
.btn:not(.btn-light):not(.btn-social):not(.btn-social-icon):focus,
.btn:not(.btn-light):not(.btn-social):not(.btn-social-icon):hover {
    border-color: transparent !important;
    color: #fff !important;
}

.btn > i {
    margin-left: 0 !important;
}
.btn.btn-lg {
    padding: 0.55rem 1.5rem;
    font-size: 12px;
}
.btn.btn-lg.btn-icon-split i {
    line-height: 42px;
}
.btn.btn-lg.btn-icon-split div {
    margin-left: 25px;
}
.btn.btn-sm {
    padding: 0.1rem 0.4rem;
    font-size: 12px;
}

.btn.btn-icon .ion,
.btn.btn-icon .fas,
.btn.btn-icon .far,
.btn.btn-icon .fab,
.btn.btn-icon .fal {
    margin-left: 0 !important;
    font-size: 12px;
}
.btn.btn-icon.icon-left .ion,
.btn.btn-icon.icon-left .fas,
.btn.btn-icon.icon-left .far,
.btn.btn-icon.icon-left .fab,
.btn.btn-icon.icon-left .fal {
    margin-right: 3px;
}
.btn.btn-icon.icon-right .ion,
.btn.btn-icon.icon-right .fas,
.btn.btn-icon.icon-right .far,
.btn.btn-icon.icon-right .fab,
.btn.btn-icon.icon-right .fal {
    margin-left: 3px !important;
}

.btn-action {
    color: #fff !important;
    line-height: 25px;
    font-size: 12px;
    min-width: 35px;
    min-height: 35px;
}

/* Primary Button (Crimson) */
.btn-primary,
.btn-primary.disabled {
    background: var(--primary-gradient);
    border: none;
    box-shadow: var(--primary-shadow);
    color: #fff !important;
    transition: all var(--transition-speed);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.disabled:hover,
.btn-primary.disabled:focus,
.btn-primary.disabled:active {
    background: linear-gradient(135deg, #b31029 0%, #7d0c24 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 18, 48, 0.35) !important;
    color: #fff !important;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary) !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.disabled:hover,
.btn-outline-primary.disabled:focus,
.btn-outline-primary.disabled:active {
    background: var(--primary-gradient) !important;
    color: #fff !important;
    box-shadow: var(--primary-shadow);
}

/* Blue Button */
.btn-blue,
.btn-blue.disabled {
    background: linear-gradient(135deg, #6777ef 0%, #4a5ad4 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(103, 119, 239, 0.25);
    color: #fff !important;
    transition: all var(--transition-speed);
}
.btn-blue:hover,
.btn-blue:focus,
.btn-blue:active,
.btn-blue.disabled:hover,
.btn-blue.disabled:focus,
.btn-blue.disabled:active {
    background: linear-gradient(135deg, #4a5ad4 0%, #394eea 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103, 119, 239, 0.35) !important;
    color: #fff !important;
}

.btn-outline-blue {
    border-color: #6777ef;
    color: #6777ef !important;
}
.btn-outline-blue:hover,
.btn-outline-blue:focus,
.btn-outline-blue:active,
.btn-outline-blue.disabled:hover,
.btn-outline-blue.disabled:focus,
.btn-outline-blue.disabled:active {
    background: linear-gradient(135deg, #6777ef 0%, #4a5ad4 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(103, 119, 239, 0.25);
}

/* Secondary Button */
.btn-secondary,
.btn-secondary.disabled {
    background: var(--secondary-gradient);
    border: none;
    box-shadow: var(--secondary-shadow);
    color: #fff !important;
    transition: all var(--transition-speed);
}
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary.disabled:hover,
.btn-secondary.disabled:focus,
.btn-secondary.disabled:active {
    background: linear-gradient(135deg, #2c3050 0%, #222539 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 57, 94, 0.35) !important;
    color: #fff !important;
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d !important;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-secondary.disabled:hover,
.btn-outline-secondary.disabled:focus,
.btn-outline-secondary.disabled:active {
    background-color: #6c757d !important;
    color: #fff !important;
}

/* Success Button */
.btn-success,
.btn-success.disabled {
    background: var(--success-gradient);
    border: none;
    box-shadow: var(--success-shadow);
    color: #fff !important;
    transition: all var(--transition-speed);
}
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.disabled:hover,
.btn-success.disabled:focus,
.btn-success.disabled:active {
    background: linear-gradient(135deg, #3fb156 0%, #308c46 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 195, 99, 0.35) !important;
    color: #fff !important;
}

.btn-outline-success {
    border-color: #28a745;
    color: #28a745 !important;
}
.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active,
.btn-outline-success.disabled:hover,
.btn-outline-success.disabled:focus,
.btn-outline-success.disabled:active {
    background-color: #28a745 !important;
    color: #fff !important;
}

/* Danger Button */
.btn-danger,
.btn-danger.disabled {
    background: var(--danger-gradient);
    border: none;
    box-shadow: var(--danger-shadow);
    color: #fff !important;
    transition: all var(--transition-speed);
}
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger.disabled:hover,
.btn-danger.disabled:focus,
.btn-danger.disabled:active {
    background: linear-gradient(135deg, #d02c2c 0%, #b32323 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 49, 49, 0.35) !important;
    color: #fff !important;
}

.btn-outline-danger {
    border-color: #ff0033;
    color: #ff0033 !important;
}
.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active,
.btn-outline-danger.disabled:hover,
.btn-outline-danger.disabled:focus,
.btn-outline-danger.disabled:active {
    background-color: #ff0033 !important;
    color: #fff !important;
}

/* Warning Button */
.btn-warning,
.btn-warning.disabled {
    background: var(--warning-gradient);
    border: none;
    box-shadow: var(--warning-shadow);
    color: #fff !important;
    transition: all var(--transition-speed);
}
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning.disabled:hover,
.btn-warning.disabled:focus,
.btn-warning.disabled:active {
    background: linear-gradient(135deg, #d98420 0%, #bc6f14 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 143, 36, 0.35) !important;
    color: #fff !important;
}

.btn-outline-warning {
    border-color: #ffa426;
    color: #ffa426 !important;
}
.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-warning:active,
.btn-outline-warning.disabled:hover,
.btn-outline-warning.disabled:focus,
.btn-outline-warning.disabled:active {
    background-color: #ffa426 !important;
    color: #fff !important;
}

/* Info Button */
.btn-info,
.btn-info.disabled {
    background: var(--info-gradient);
    border: none;
    box-shadow: var(--info-shadow);
    color: #fff !important;
    transition: all var(--transition-speed);
}
.btn-info:hover,
.btn-info:focus,
.btn-info:active,
.btn-info.disabled:hover,
.btn-info.disabled:focus,
.btn-info.disabled:active {
    background: linear-gradient(135deg, #258bbd 0%, #1c7299 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 155, 213, 0.35) !important;
    color: #fff !important;
}

.btn-outline-info {
    border-color: #17a2b8;
    color: #17a2b8 !important;
}
.btn-outline-info:hover,
.btn-outline-info:focus,
.btn-outline-info:active,
.btn-outline-info.disabled:hover,
.btn-outline-info.disabled:focus,
.btn-outline-info.disabled:active {
    background-color: #17a2b8 !important;
    color: #fff !important;
}

/* Light Button */
.btn-light,
.btn-light.disabled {
    background: linear-gradient(135deg, #e3eaef 0%, #d4dbe3 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(227, 234, 239, 0.25);
    color: #191d21 !important;
    transition: all var(--transition-speed);
}
.btn-light:hover,
.btn-light:focus,
.btn-light:active,
.btn-light.disabled:hover,
.btn-light.disabled:focus,
.btn-light.disabled:active {
    background: linear-gradient(135deg, #d4dbe3 0%, #c3d2dc 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 234, 239, 0.35) !important;
    color: #191d21 !important;
}

.btn-outline-light {
    border-color: #e3eaef;
    color: #e3eaef !important;
}
.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active,
.btn-outline-light.disabled:hover,
.btn-outline-light.disabled:focus,
.btn-outline-light.disabled:active {
    background: linear-gradient(135deg, #e3eaef 0%, #d4dbe3 100%) !important;
    color: #191d21 !important;
    box-shadow: 0 4px 20px rgba(227, 234, 239, 0.25);
}

/* Dark Button */
.btn-dark,
.btn-dark.disabled {
    background: linear-gradient(135deg, #343a40 0%, #23272b 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(52, 58, 64, 0.25);
    color: #fff !important;
    transition: all var(--transition-speed);
}
.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active,
.btn-dark.disabled:hover,
.btn-dark.disabled:focus,
.btn-dark.disabled:active {
    background: linear-gradient(135deg, #23272b 0%, #1a1d20 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 58, 64, 0.35) !important;
    color: #fff !important;
}

.btn-outline-dark {
    border-color: #343a40;
    color: #343a40 !important;
}
.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark:active,
.btn-outline-dark.disabled:hover,
.btn-outline-dark.disabled:focus,
.btn-outline-dark.disabled:active {
    background: linear-gradient(135deg, #343a40 0%, #23272b 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(52, 58, 64, 0.25);
}

/* White Outline Button */
.btn-outline-white,
.btn-outline-white.disabled {
    border-color: #fff;
    color: #fff !important;
}
.btn-outline-white:hover,
.btn-outline-white:focus,
.btn-outline-white:active,
.btn-outline-white.disabled:hover,
.btn-outline-white.disabled:focus,
.btn-outline-white.disabled:active {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    color: var(--primary) !important;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Button Styles */
.btn-round {
    border-radius: 30px;
    padding-left: 34px;
    padding-right: 34px;
}

.btn-social-icon,
.btn-social {
    border: none;
    border-radius: 3px;
}

.btn-social-icon {
    color: #fff !important;
    padding-left: 18px;
    padding-right: 18px;
}
.btn-social-icon > :first-child {
    font-size: 16px;
}

.btn-social {
    padding: 12px 12px 12px 50px;
    color: #fff !important;
    font-weight: 500;
}
.btn-social > :first-child {
    width: 55px;
    line-height: 50px;
    border-right: none;
}

.btn-reddit {
    color: #000 !important;
}

/* Button Group */
.btn-group .btn.active {
    background-color: var(--primary); /* Disesuaikan dengan primary baru */
    color: #fff !important;
}

/* Loading Button */
.btn-progress {
    position: relative;
    background-image: url("../img/spinner-white.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 30px;
    color: transparent !important;
    pointer-events: none;
}

/* 3.13 Media */
.media .media-right {
    float: right;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.media .media-icon {
    font-size: 24px;
    margin-right: 20px;
    line-height: 1;
    color: var(--primary);
}

.media .media-title {
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #2d3436;
}

.media .media-title a {
    font-weight: inherit;
    color: #2d3436;
    text-decoration: none;
    transition: color 0.3s ease;
}

.media .media-title a:hover {
    color: var(--primary);
}

.media .media-description {
    line-height: 1.6;
    color: #636e72;
    font-size: 14px;
}

.media .media-links {
    margin-top: 12px;
}

.media .media-links a {
    font-size: 13px;
    color: #b2bec3;
    transition: color 0.3s ease;
    text-decoration: none;
    margin-right: 15px;
}

.media .media-links a:hover {
    color: var(--primary);
}

.media .media-progressbar {
    flex: 1;
    margin: 10px 0;
}

.media .media-progressbar .progress-text {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3436;
}

.media .media-cta {
    margin-left: 45px;
}

.media .media-cta .btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.media .media-items {
    display: flex;
    margin: 15px -15px;
}

.media .media-items .media-item {
    flex: 1;
    text-align: center;
    padding: 15px 20px;
    border-right: 1px solid #f1f1f1;
}

.media .media-items .media-item:last-child {
    border-right: none;
}

.media .media-items .media-item .media-label {
    font-weight: 600;
    font-size: 13px;
    color: #636e72;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
}

.media .media-items .media-item .media-value {
    font-weight: 700;
    font-size: 20px;
    color: #2d3436;
}

/* 3.14 Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.breadcrumb .breadcrumb-item {
    line-height: 1;
    font-size: 13px;
}

.breadcrumb .breadcrumb-item i {
    margin-right: 6px;
    color: #6c757d; /* Mengubah warna ikon menjadi abu-abu agar tidak terlalu mencolok */
    font-size: 12px;
}

/* Perbaikan tampilan breadcrumb pada desktop */
@media (min-width: 992px) {
    .breadcrumb {
        padding: 8px 16px;
    }

    .breadcrumb .breadcrumb-item {
        font-size: 12px;
    }

    .breadcrumb .breadcrumb-item a {
        transition: all 0.2s ease;
        padding: 2px 4px;
        border-radius: 3px;
    }

    .breadcrumb .breadcrumb-item a:hover {
        color: var(--primary);
        background-color: rgba(var(--primary-rgb), 0.05);
        text-decoration: none;
    }

    .breadcrumb .breadcrumb-item a:active {
        color: var(--primary);
        background-color: rgba(var(--primary-rgb), 0.1);
        transform: scale(0.98);
    }
}

/* 3.15 Accordion */
.accordion {
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
}

.accordion .accordion-header,
.accordion .accordion-body {
    padding: 15px 20px;
}

.accordion .accordion-header {
    background-color: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion .accordion-header h4 {
    line-height: 1.4;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.accordion .accordion-header:hover {
    background-color: #f1f2f6;
}

.accordion .accordion-header[aria-expanded="true"] {
    box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.2);
    background-color: var(--primary);
    color: #fff;
}

.accordion .accordion-body {
    line-height: 1.6;
    color: #636e72;
    font-size: 14px;
}

/* 3.16 Popover */
.popover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
}

.popover .manual-arrow {
    position: absolute;
    bottom: -15px;
    font-size: 26px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
}

.bs-popover-auto[x-placement^="left"] .arrow::before,
.bs-popover-left .arrow::before {
    border-left-color: #fff;
}

.bs-popover-auto[x-placement^="bottom"] .arrow::before,
.bs-popover-bottom .arrow::before {
    border-bottom-color: #fff;
}

.bs-popover-auto[x-placement^="top"] .arrow::before,
.bs-popover-top .arrow::before {
    border-top-color: #fff;
}

.bs-popover-auto[x-placement^="right"] .arrow::before,
.bs-popover-right .arrow::before {
    border-right-color: #fff;
}

.popover .popover-header {
    background-color: #fff;
    border: none;
    padding: 15px 20px 5px;
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
}

.popover .popover-body {
    padding: 15px 20px;
    line-height: 1.6;
    color: #636e72;
    font-size: 14px;
}

/* 3.17 Grid */
.sm-gutters {
    margin-left: -5px;
    margin-right: -5px;
}
.sm-gutters > .col,
.sm-gutters > [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
}

/* 3.18 Navbar */
.navbar {
    height: 70px;
    left: 250px;
    right: 5px;
    position: absolute;
    z-index: 890;
    background-color: transparent;
    align-items: center;
}

.navbar.active {
    background: var(--primary-gradient);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-bg {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 115px;
    background: var(--primary-gradient);
    z-index: -1;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.15);
}

.navbar .navbar-brand {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

.navbar .form-inline .form-control {
    background-color: #fff;
    border-color: transparent;
    padding-left: 20px;
    padding-right: 0;
    margin-right: -6px;
    min-height: 46px;
    font-weight: 500;
    border-radius: 3px 0 0 3px;
    transition: all 1s;
}

.navbar .form-inline .form-control:focus,
.navbar .form-inline .form-control:focus + .btn {
    position: relative;
    z-index: 9001;
}

.navbar .form-inline .form-control:focus + .btn + .search-backdrop {
    opacity: 0.6;
    visibility: visible;
}

.navbar
    .form-inline
    .form-control:focus
    + .btn
    + .search-backdrop
    + .search-result {
    opacity: 1;
    visibility: visible;
    top: 80px;
}

.navbar .form-inline .btn {
    border-radius: 0 3px 3px 0;
    background-color: #fff;
    padding: 9px 15px 9px 15px;
    border-color: transparent;
}

.navbar .form-inline .search-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9000;
    background-color: #000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

.navbar .form-inline .search-result {
    position: absolute;
    z-index: 9002;
    top: 100px;
    background-color: #fff;
    border-radius: 3px;
    width: 450px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

.navbar .form-inline .search-result:before {
    position: absolute;
    top: -26px;
    left: 34px;
    content: "\f0d8";
    font-weight: 600;
    font-family: "Font Awesome 5 Free";
    color: #fff;
    font-size: 30px;
}

.navbar .form-inline .search-result .search-header {
    padding: 13px 18px 2px 18px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    font-weight: 600;
    font-size: 10px;
    color: #bcc1c6;
}

.navbar .form-inline .search-result .search-item {
    display: flex;
}

.navbar .form-inline .search-result .search-item a {
    display: block;
    padding: 13px 18px;
    text-decoration: none;
    color: #34395e;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.navbar .form-inline .search-result .search-item a:hover {
    background-color: rgba(var(--primary-rgb), 0.05); /* Dari #fbfbff */
}

.navbar .form-inline .search-result .search-item a:not(.search-close) {
    width: 100%;
}

.navbar .form-inline .search-result .search-item a i {
    margin-left: 0 !important;
}

.navbar .form-inline .search-result .search-item .search-icon {
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
}

.navbar .active .nav-link {
    color: #fff;
    font-weight: 700;
}

.navbar .navbar-text {
    color: #fff;
}

.navbar .nav-link {
    color: #f2f2f2;
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 100%;
}

.navbar .nav-link.nav-link-lg div {
    margin-top: 3px;
}

.navbar .nav-link.nav-link-lg i {
    margin-left: 0 !important;
    font-size: 18px;
    line-height: 32px;
}

.navbar .nav-link.nav-link-user {
    color: #fff;
    padding-top: 4px;
    padding-bottom: 4px;
    font-weight: 600;
}

.navbar .nav-link.nav-link-user img {
    width: 30px;
}

.navbar .nav-link.nav-link-img {
    padding-top: 4px;
    padding-bottom: 4px;
    border-radius: 50%;
    overflow: hidden;
}

.navbar .nav-link.nav-link-img .flag-icon {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
    border-radius: 50%;
    line-height: 18px;
    height: 22px;
    width: 22px;
    background-size: cover;
}

.remove-caret:after {
    display: none;
}

.navbar .nav-link:hover {
    color: #fff;
}

.navbar .nav-link.disabled {
    color: #fff;
    opacity: 0.6;
}

.nav-collapse {
    display: flex;
}

/* Media Queries */
@media (max-width: 575.98px) {
    body.search-show .navbar .form-inline .search-element {
        display: block;
    }

    .navbar .form-inline .search-element {
        position: absolute;
        top: 10px;
        left: 10px;
        right: 10px;
        z-index: 892;
        display: none;
    }

    .navbar .form-inline .search-element .form-control {
        float: left;
        border-radius: 3px 0 0 3px;
        width: calc(100% - 43px) !important;
    }

    .navbar .form-inline .search-element .btn {
        margin-top: 1px;
        border-radius: 0 3px 3px 0;
    }

    .navbar .form-inline .search-result {
        width: 100%;
    }

    .navbar .form-inline .search-backdrop {
        display: none;
    }

    .navbar .nav-link.nav-link-lg div {
        display: none;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .navbar .form-inline .search-element {
        display: block;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .collapse {
        position: relative;
    }
    .collapse .navbar-nav {
        position: absolute;
    }
}

@media (max-width: 1024px) {
    .nav-collapse {
        position: relative;
    }

    .nav-collapse .navbar-nav {
        box-shadow: 0 0 30px rgba(220, 20, 60, 0.03); /* Dari rgba(0, 0, 0, 0.03) */
        position: absolute;
        top: 40px;
        left: 0;
        width: 200px;
        display: none;
    }

    .nav-collapse .navbar-nav.show {
        display: block;
    }

    .nav-collapse .navbar-nav .nav-item:first-child {
        border-radius: 3px 3px 0 0;
    }

    .nav-collapse .navbar-nav .nav-item:last-child {
        border-radius: 0 0 3px 3px;
    }

    .nav-collapse .navbar-nav .nav-item .nav-link {
        background-color: #fff;
        color: #6c757d;
    }

    .nav-collapse .navbar-nav .nav-item .nav-link:hover {
        background-color: transparent;
        color: var(--primary);
    }

    .nav-collapse .navbar-nav .nav-item:focus > a,
    .nav-collapse .navbar-nav .nav-item.active > a {
        background-color: transparent;
        color: var(--primary);
        box-shadow: none;
        font-weight: 600;
        border-left: 2px solid var(--primary);
    }

    .navbar {
        left: 5px;
        right: 0;
    }

    .navbar .dropdown-menu {
        position: absolute;
    }

    .navbar .navbar-nav {
        flex-direction: row;
    }

    .navbar-expand-lg .navbar-nav .dropdown-menu-right {
        right: 0;
        left: auto;
    }
}

/* 3.19 Dropdown */
.dropdown-item.has-icon {
    display: flex;
    align-items: center;
}

.dropdown-item.has-icon i {
    margin-top: 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    height: 100%;
}

.dropdown-menu {
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.08);
    border: none;
    width: 200px;
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-menu.show {
    display: block !important;
    animation: dropdownFade 0.2s ease-in-out;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu a {
    font-size: 13px;
    transition: all 0.2s ease;
    color: #6c757d; /* warna default untuk semua menu */
}

.dropdown-menu a.important {
    color: var(--primary);
}

.dropdown-menu .dropdown-title {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #191d21 !important;
    padding: 12px 20px;
    line-height: 20px;
    border-bottom: 1px solid #f8f9fa;
}

.dropdown-menu.dropdown-menu-sm a {
    font-size: 14px;
    padding: 10px 20px;
    color: #6c757d;
}

a.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    line-height: 1.3;
    display: flex;
    align-items: center;
}

a.dropdown-item:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
    color: var(--primary);
}

a.dropdown-item:focus,
a.dropdown-item:active,
a.dropdown-item.active {
    background-color: var(--primary);
    color: #fff !important;
}

.dropdown-divider {
    border-top-color: #f1f1f1;
    margin: 0.5rem 0;
}

/* Dropdown List Specific Styles */
.dropdown-list {
    width: 350px;
    padding: 0;
}

.dropdown-list .dropdown-item {
    display: inline-block;
    width: 100%;
    padding: 15px;
    font-size: 13px;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.2s ease;
}

.dropdown-list .dropdown-item .time {
    margin-top: 10px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #98a6ad;
}

.dropdown-list .dropdown-item .dropdown-item-avatar {
    float: left;
    width: 40px;
    position: relative;
}

.dropdown-list .dropdown-item .dropdown-item-avatar img {
    width: 100%;
    border-radius: 50%;
}

.dropdown-list .dropdown-item .dropdown-item-avatar .is-online {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #63ed7a;
    border-radius: 50%;
    border: 2px solid #fff;
}

.dropdown-list .dropdown-item .dropdown-item-desc {
    line-height: 24px;
    white-space: normal;
    color: #34395e;
    margin-left: 60px;
}

.dropdown-list .dropdown-item .dropdown-item-desc b {
    font-weight: 600;
    color: #666;
}

.dropdown-list .dropdown-item .dropdown-item-desc p {
    margin-bottom: 0;
}

/* Unread State */
.dropdown-list .dropdown-item.dropdown-item-unread {
    background-color: rgba(var(--primary-rgb), 0.02);
    border-bottom-color: #f2f2f2;
}

/* Focus & Active States */
.dropdown-list .dropdown-item:focus,
.dropdown-list .dropdown-item:active {
    background-color: var(--primary);
}

.dropdown-list .dropdown-item:focus .dropdown-item-desc,
.dropdown-list .dropdown-item:focus .dropdown-item-desc b,
.dropdown-list .dropdown-item:active .dropdown-item-desc,
.dropdown-list .dropdown-item:active .dropdown-item-desc b {
    color: #fff;
}

/* Header & Footer */
.dropdown-list .dropdown-footer,
.dropdown-list .dropdown-header {
    letter-spacing: 0.5px;
    font-weight: 600;
    padding: 15px;
    background: rgba(var(--primary-rgb), 0.05);
}

/* Content Area */
.dropdown-list .dropdown-list-content {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.dropdown-list .dropdown-list-content:not(.is-end):after {
    content: "";
    position: absolute;
    bottom: 46px;
    left: 0;
    width: 100%;
    background-image: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.8)
    );
    height: 60px;
    pointer-events: none;
}

/* Icon List Variant */
.dropdown-list .dropdown-list-icons .dropdown-item {
    display: flex;
    align-items: center;
}

.dropdown-list .dropdown-list-icons .dropdown-item .dropdown-item-icon {
    flex-shrink: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 42px;
    text-align: center;
    background: rgba(var(--primary-rgb), 0.05);
    margin-right: 15px;
}

/* Flag Dropdown */
.dropdown-flag .dropdown-item {
    font-weight: 600;
    padding: 10px 20px;
}

.dropdown-flag .dropdown-item .flag-icon {
    width: 20px;
    height: 13px;
    margin-right: 7px;
    margin-top: -6px;
}

.dropdown-flag .dropdown-item.active {
    background-color: var(--primary);
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 575.98px) {
    .dropdown-list-toggle {
        position: static;
    }

    .dropdown-list-toggle .dropdown-list {
        left: 10px !important;
        width: calc(100% - 20px);
    }
}

/* 3.20 Dropdown */
.tab-content.no-padding > .tab-pane {
    padding: 0;
}
.tab-content > .tab-pane {
    line-height: 28px;
}

/* Progress Bar */
.progress-bar {
    background-color: var(--primary);
}

/* 3.22 Jumbotron */
.jumbotron {
    background-color: rgba(var(--primary-rgb), 0.05);
}

/* 3.23 Carousel */
.carousel .carousel-caption p {
    font-size: 13px;
    line-height: 24px;
}

/* 4. Theme Style */
/* 4.1 Misc */
/* Nunito font definitions removed since we're using Inter now */

:root {
    /* Colors */
    --primary: #c41230; /* Crimson - sedikit lebih gelap */
    --primary-rgb: 196, 18, 48; /* RGB values for rgba usage */
    --primary-dark: #a30f28; /* Darker shade for hover states */
    --primary-light: #f5d0d6; /* Light shade for backgrounds */
    --primary-gradient: linear-gradient(135deg, #c41230 0%, #8e0e29 100%);
    --primary-shadow: 0 4px 20px rgba(196, 18, 48, 0.25);

    /* Secondary dengan gradien biru gelap */
    --secondary: #34395e;
    --secondary-rgb: 52, 57, 94;
    --secondary-dark: #282c49;
    --secondary-light: #d8dae6;
    --secondary-gradient: linear-gradient(135deg, #34395e 0%, #282c49 100%);
    --secondary-shadow: 0 4px 20px rgba(52, 57, 94, 0.25);

    /* Success dengan gradien hijau yang lebih soft */
    --success: #47c363;
    --success-rgb: 71, 195, 99;
    --success-dark: #39a353;
    --success-light: #dff5e3;
    --success-gradient: linear-gradient(135deg, #47c363 0%, #39a353 100%);
    --success-shadow: 0 4px 20px rgba(71, 195, 99, 0.25);

    /* Info dengan gradien biru yang lebih soft */
    --info: #2a9bd5;
    --info-rgb: 42, 155, 213;
    --info-dark: #2182b6;
    --info-light: #d6edf8;
    --info-gradient: linear-gradient(135deg, #2a9bd5 0%, #2182b6 100%);
    --info-shadow: 0 4px 20px rgba(42, 155, 213, 0.25);

    /* Warning dengan gradien orange yang lebih soft */
    --warning: #e88f24;
    --warning-rgb: 232, 143, 36;
    --warning-dark: #d17c18;
    --warning-light: #fcecd7;
    --warning-gradient: linear-gradient(135deg, #e88f24 0%, #d17c18 100%);
    --warning-shadow: 0 4px 20px rgba(232, 143, 36, 0.25);

    /* Danger dengan gradien merah yang lebih soft */
    --danger: #e03131;
    --danger-rgb: 224, 49, 49;
    --danger-dark: #c42828;
    --danger-light: #fad7d7;
    --danger-gradient: linear-gradient(135deg, #e03131 0%, #c42828 100%);
    --danger-shadow: 0 4px 20px rgba(224, 49, 49, 0.25);

    --light: #f8f9fa;
    --dark: #191d21;

    /* System Variables */
    --body-bg: #f7f8fa;
    --body-color: #333333;
    --border-color: #f1f1f1;
    --shadow-color: rgba(220, 20, 60, 0.08);
    --hover-bg: rgba(220, 20, 60, 0.05);
    --border-radius: 8px;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.2s;

    /* Animation Variables */
    --animation-slow: 0.5s;
    --animation-fast: 0.15s;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Typography */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Font Family */
    --font-family-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-heading: "Inter", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Warna yang lebih nyaman untuk mata */
    --soft-bg: #f0f4f8; /* Soft blue-gray background */
    --card-bg: #ffffff; /* Card background */
    --text-primary: #333333; /* Kembali ke warna hitam */
    --text-secondary: #6c757d; /* Kembali ke warna abu-abu */
    --border-color: #e4e9f0; /* Light border color */
}

body {
    background-color: var(--soft-bg) !important;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    font-family: var(--font-family-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a.bb {
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 1px;
    transition: all 0.3s ease;
}

.form-divider {
    display: inline-block;
    width: 100%;
    margin: 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary); /* Tambahkan warna untuk konsistensi */
}

.ui-sortable-handle,
.sort-handler {
    cursor: move;
}

.text-job {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--secondary); /* Gunakan CSS variable */
}

.text-time {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-bottom: 10px;
}

.bullet,
.slash {
    display: inline;
    margin: 0 4px;
}

.bullet:after {
    content: "\2022";
}

.slash:after {
    content: "/";
}

.login-brand {
    margin: 40px 0;
    margin-bottom: 40px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    font-weight: 700;
}

.font-weight-600 {
    font-weight: 600 !important;
}

.budget-price {
    display: inline-block;
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}
.budget-price .budget-price-square {
    width: 15px;
    height: 3px;
    background-color: var(--hover-bg); /* Dari #f9f9f9 */
}
.budget-price .budget-price-label {
    font-size: 12px;
    font-weight: 600;
    margin-left: 5px;
}

.gradient-bottom {
    position: relative;
}
.gradient-bottom:after {
    content: " ";
    position: absolute;
    bottom: 41px;
    left: 0;
    width: 100%;
    background-image: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.8)
    );
    height: 60px;
}

.text-small {
    font-size: 12px;
    line-height: 20px;
    color: var(--text-secondary) !important;
}

.text-title {
    font-size: 14px;
    color: var(--secondary); /* Gunakan CSS variable */
    font-weight: 600;
}

.img-shadow {
    box-shadow: 0 4px 8px var(--shadow-color); /* Dari rgba(0, 0, 0, 0.03) */
}

.colors {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}
.colors .color {
    border-radius: 3px;
    width: calc((100% / 4) - 10px);
    padding: 10px;
    height: 60px;
    line-height: 40px;
    text-align: center;
    margin: 5px;
}

blockquote {
    padding: 20px;
    padding-left: 40px;
    font-style: italic; /* Dari oblique untuk better support */
    background-color: var(--hover-bg); /* Dari #f9f9f9 */
    border-radius: 3px;
    position: relative;
    font-family: "Times New Roman", serif; /* Perbaiki nama font */
    font-size: 16px;
    letter-spacing: 0.3px;
}
blockquote:before {
    content: '"';
    font-size: 30px;
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.2;
}
blockquote .blockquote-footer {
    margin-top: 10px;
}

.bg-whitesmoke {
    background-color: var(--body-bg) !important; /* Dari #f7f9f9 */
}

.ion {
    font-size: 15px;
}

.fas,
.far,
.fab,
.fal {
    font-size: 13px;
}

#visitorMap {
    height: 210px;
}

.sidebar-gone-show {
    display: none !important;
}

pre {
    border-radius: 3px;
}

.circle-step {
    display: flex;
    margin-bottom: 10px;
}
.circle-step .circle-content {
    margin-top: 3px;
    margin-left: 13px;
}
.circle-step .circle {
    border-width: 2px;
    border-style: solid;
    border-radius: 50%;
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 30px;
    font-size: 11px;
    text-align: center;
}
.circle-step .circle.circle-primary {
    border-color: var(--primary); /* Dari #6777ef */
    color: var(--primary);
}

.pe-none {
    pointer-events: none;
}

.contact-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

#visitorMap2,
#visitorMap3 {
    height: 350px;
}

.shadow-primary {
    box-shadow: 0 2px 6px rgba(220, 20, 60, 0.3); /* Dari #acb5f6 */
}

.shadow-secondary {
    box-shadow: 0 2px 6px rgba(52, 57, 94, 0.3); /* Dari #e1e5e8 */
}

.shadow-success {
    box-shadow: 0 2px 6px rgba(99, 237, 122, 0.3); /* Dari #a8f5b4 */
}

.shadow-warning {
    box-shadow: 0 2px 6px rgba(255, 164, 38, 0.3); /* Dari #ffc473 */
}

.shadow-danger {
    box-shadow: 0 2px 6px rgba(252, 84, 75, 0.3); /* Dari #fd9b96 */
}

.shadow-info {
    box-shadow: 0 2px 6px rgba(58, 186, 244, 0.3); /* Dari #82d3f8 */
}

.shadow-light {
    box-shadow: 0 2px 6px rgba(248, 249, 250, 0.3); /* Dari #e6ecf1 */
}

.shadow-dark {
    box-shadow: 0 2px 6px rgba(25, 29, 33, 0.3); /* Dari #728394 */
}

.is-online {
    width: 10px;
    height: 10px;
    background-color: var(--success); /* Dari #63ed7a */
    border-radius: 50%;
    display: inline-block;
}

.gutters-xs {
    margin-right: -0.25rem;
    margin-left: -0.25rem;
}

.gutters-xs > .col,
.gutters-xs > [class*="col-"] {
    padding-right: 0.25rem;
    padding-left: 0.25rem;
}

.beep {
    position: relative;
}
.beep:after {
    content: "";
    position: absolute;
    top: 2px;
    right: 8px;
    width: 7px;
    height: 7px;
    background-color: var(--warning); /* Dari #ffa426 */
    border-radius: 50%;
    animation: pulsate 1s ease-out infinite;
    opacity: 1;
}
.beep.beep-sidebar:after {
    position: static;
    margin-left: 10px;
}

@keyframes pulsate {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 575.98px) {
    .fc-overflow {
        width: 100%;
        overflow: auto;
    }
    .fc-overflow #myEvent {
        width: 800px;
    }

    .ionicons li {
        width: calc(100% / 4);
    }

    .icon-wrap {
        width: 100%;
    }
}

/* 4.2 Section */
.section {
    position: relative;
    z-index: 1;
}
.section > *:first-child {
    margin-top: -7px;
}
.section .section-header {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* Shadow lebih ringan */
    background-color: var(--card-bg);
    border-radius: 8px;
    border: none;
    position: relative;
    margin-bottom: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: none; /* Menghapus transisi untuk menghilangkan efek hover */
    border-bottom: 1px solid var(--border-color);
}

/* Menghapus efek hover merah pada section header/breadcrumb */
.section .section-header:hover {
    /* Menghapus efek hover merah */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    transform: none;
}

.section .section-header h1 {
    margin-bottom: 0;
    font-weight: 700;
    display: inline-block;
    font-size: 24px;
    margin-top: 0;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

/* Desktop Enhancements for Section Headers */
@media (min-width: 992px) {
    .section .section-header {
        padding: 18px 25px;
    }

    .section .section-header h1 {
        font-size: 22px;
        letter-spacing: 0.3px;
    }

    .section .section-title {
        font-size: 20px;
        margin: 25px 0 25px 0;
    }

    .section .section-title:before {
        height: 8px;
        width: 30px;
        margin-right: 10px;
    }

    .section .section-lead {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    /* Breadcrumb ukuran yang lebih kecil */
    .section .section-header .section-header-breadcrumb .breadcrumb-item {
        font-size: 12px;
    }

    /* Efek hover pada breadcrumb */
    .section
        .section-header
        .section-header-breadcrumb
        .breadcrumb-item
        a:hover {
        color: var(--primary);
        text-decoration: none;
        background-color: rgba(var(--primary-rgb), 0.05);
        border-radius: 3px;
    }

    /* Efek active/touch untuk mobile */
    .section
        .section-header
        .section-header-breadcrumb
        .breadcrumb-item
        a:active {
        background-color: rgba(var(--primary-rgb), 0.1);
        color: var(--primary);
        border-radius: 3px;
        transform: scale(0.98);
        transition: all 0.1s ease;
    }

    .breadcrumb {
        padding: 8px 15px;
    }
}

.section .section-header .section-header-back {
    margin-right: 15px;
}
.section .section-header .section-header-back .btn:hover {
    background-color: #dc143c;
    color: #fff;
}

.section .section-header .section-header-button {
    margin-left: 20px;
}
.section .section-header .section-header-breadcrumb {
    margin-left: auto;
    display: flex;
    align-items: center;
}
.section .section-header .section-header-breadcrumb .breadcrumb-item {
    font-size: 12px;
}
.section .section-header .btn {
    font-size: 12px;
}
.section .section-title {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    margin: 25px 0 25px 0;
}
.section .section-title:before {
    content: " ";
    border-radius: 5px;
    height: 8px;
    width: 30px;
    background: var(--primary-gradient);
    display: inline-block;
    margin-top: 6px;
    margin-right: 10px;
}
.section .section-title + .section-lead {
    margin-top: -20px;
}
.section .section-lead {
    margin-left: 41px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 20px;
}

.main-wrapper-1 .section .section-header {
    margin-left: -30px;
    margin-right: -30px;
    margin-top: -10px;
    border-radius: 0;
    border-top: 1px solid #f9f9f9;
    padding-left: 35px;
    padding-right: 35px;
}

@media (max-width: 575.98px) {
    .section .section-title {
        font-size: 14px;
    }
    .section .section-header {
        flex-wrap: wrap;
        margin-bottom: 20px !important;
    }
    .section .section-header h1 {
        font-size: 18px;
    }
    .section .section-header .float-right {
        display: inline-block;
        width: 100%;
        margin-top: 15px;
    }
    .section .section-header .section-header-breadcrumb {
        flex-basis: 100%;
        margin-top: 10px;
    }
    .section .section-lead {
        margin-left: 0;
        font-size: 14px;
    }
}

/* Add more animations for smoother interaction across the system */
@keyframes pulse-primary {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

/* Improve card transition animation */
.card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Enhance form focus states for better UX */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
    animation: pulse-primary 1s;
}

/* Improve button hover/active states */
.btn-primary:active,
.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25) !important;
}

/* Enhanced loading state for forms and buttons */
.btn.btn-progress:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 30px 30px;
    opacity: 0.3;
    animation: btn-progress-stripes 1s linear infinite;
}

@keyframes btn-progress-stripes {
    from {
        background-position: 30px 0;
    }
    to {
        background-position: 0 0;
    }
}

/* Navbar improvements */
.navbar.active {
    animation: navbar-active 0.3s ease-out forwards;
}

@keyframes navbar-active {
    from {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
    }
    to {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
}

/* 4.3 Page */
.page-error {
    height: 100%;
    width: 100%;
    padding-top: 60px;
    text-align: center;
    display: table;
}
.page-error .page-inner {
    display: table-cell;
    width: 100%;
    vertical-align: middle;
}
.page-error h1 {
    font-size: 10em;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.2);
}
.page-error .page-description {
    font-size: 18px;
    font-weight: 400;
    color: #34395e;
}
.page-error .page-search {
    margin: 40px auto;
    max-width: 100%;
    width: 350px;
}
.page-error .page-search .form-control {
    border-radius: 30px;
}
.page-error .page-search .btn {
    border-radius: 30px;
    margin-left: 10px;
}

@media (max-width: 575.98px) {
    .page-error .page-search {
        width: 100%;
    }
}

/* 4.4 Layout */
.main-sidebar {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
    position: fixed;
    top: 0;
    height: 100%;
    width: 250px;
    background-color: var(--card-bg);
    z-index: 880;
    left: 0;
}

.main-sidebar,
.navbar,
.main-content,
.main-footer {
    transition: all 0.5s;
}

body.sidebar-gone .main-sidebar {
    left: -250px;
}

body.sidebar-mini .hide-sidebar-mini {
    display: none !important;
}
body.sidebar-mini .main-sidebar {
    width: 65px;
    overflow: initial !important;
    position: absolute;
    box-shadow: none;
}
body.sidebar-mini .main-sidebar:after {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
    content: " ";
    position: fixed;
    background-color: #fff;
    width: 65px;
    height: 100%;
    left: 0;
    top: 0;
    z-index: -1;
    opacity: 0;
    animation-name: mini-sidebar;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
}
@keyframes mini-sidebar {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
body.sidebar-mini .main-sidebar .sidebar-brand {
    display: none;
}
body.sidebar-mini .main-sidebar .sidebar-brand-sm {
    display: block;
}
body.sidebar-mini .main-sidebar .sidebar-menu > li {
    padding: 10px;
}
body.sidebar-mini .main-sidebar .sidebar-menu > li.menu-header {
    padding: 0;
    font-size: 0;
    height: 2px;
}
body.sidebar-mini .main-sidebar .sidebar-menu > li > a {
    border-radius: 3px;
    height: 45px;
    padding: 0;
    justify-content: center;
}
body.sidebar-mini .main-sidebar .sidebar-menu > li > a .ion,
body.sidebar-mini .main-sidebar .sidebar-menu > li > a .fas,
body.sidebar-mini .main-sidebar .sidebar-menu > li > a .far,
body.sidebar-mini .main-sidebar .sidebar-menu > li > a .fab,
body.sidebar-mini .main-sidebar .sidebar-menu > li > a .fal {
    margin: 0;
    font-size: 20px;
}
body.sidebar-mini .main-sidebar .sidebar-menu > li > a span {
    display: none;
}
body.sidebar-mini .main-sidebar .sidebar-menu > li > a .badge {
    padding: 5px;
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 10px;
}
body.sidebar-mini .main-sidebar .sidebar-menu > li > a.has-dropdown:after {
    content: initial;
}
body.sidebar-mini .main-sidebar .sidebar-menu > li.active > a {
    box-shadow: var(--primary-shadow);
    background: var(--primary-gradient);
    color: #fff;
}
body.sidebar-mini .main-sidebar .sidebar-menu > li ul.dropdown-menu {
    position: absolute;
    background-color: #fff;
    left: 65px;
    top: 10px;
    width: 200px;
    display: none;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.03);
}
body.sidebar-mini
    .main-sidebar
    .sidebar-menu
    > li
    ul.dropdown-menu
    li
    > a:focus,
body.sidebar-mini
    .main-sidebar
    .sidebar-menu
    > li
    ul.dropdown-menu
    li.active
    > a,
body.sidebar-mini
    .main-sidebar
    .sidebar-menu
    > li
    ul.dropdown-menu
    li.active
    > a:hover {
    color: #fff !important; /* Tambahkan warna teks putih */
    background-color: var(--primary) !important;
}
body.sidebar-mini .main-sidebar .sidebar-menu > li ul.dropdown-menu li a {
    height: 40px;
    padding: 0 20px;
    background-color: #fff;
    color: #333333; /* Tambahkan warna teks default */
}
body.sidebar-mini
    .main-sidebar
    .sidebar-menu
    > li
    ul.dropdown-menu
    li
    a.has-dropdown:after {
    content: "\f105"; /* Perbaiki content dengan unicode yang benar */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 20px;
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
    font-size: 12px;
}
body.sidebar-mini .main-sidebar .sidebar-menu li:hover > ul.dropdown-menu {
    display: block !important;
}
body.sidebar-mini
    .main-sidebar
    .sidebar-menu
    li:hover
    > ul.dropdown-menu
    li:hover
    > a {
    background-color: #fcfcfd;
    color: var(--primary); /* Tambahkan warna teks saat hover */
}
body.sidebar-mini
    .main-sidebar
    .sidebar-menu
    li:hover
    > ul.dropdown-menu
    li
    .dropdown-menu {
    left: 200px;
    padding: 0;
}
body.sidebar-mini .navbar {
    left: 65px;
}
body.sidebar-mini .main-content,
body.sidebar-mini .main-footer {
    padding-left: 90px;
}

body.layout-2 .navbar-bg {
    z-index: 889;
    height: 70px;
}
body.layout-2 .navbar {
    left: 0;
    z-index: 890;
}
body.layout-2 .main-wrapper {
    display: flex;
    flex-wrap: wrap;
    padding: 0 50px;
}
body.layout-2 .main-sidebar,
body.layout-2 .main-content,
body.layout-2 .main-footer {
    flex-shrink: 0;
    flex-grow: 0;
}
body.layout-2 .main-sidebar {
    background-color: transparent;
    box-shadow: none;
    position: static;
    margin-top: 100px;
    width: 200px;
}
body.layout-2 .main-sidebar .sidebar-menu li.menu-header {
    padding: 0;
}
body.layout-2 .main-sidebar .sidebar-menu li a {
    padding: 0;
}
body.layout-2 .main-sidebar .sidebar-menu li a i {
    width: 10px;
}
body.layout-2 .main-sidebar .sidebar-menu li a.has-dropdown:after {
    right: 0;
}
body.layout-2 .main-sidebar .sidebar-menu li a:hover {
    color: var(--primary);
    background-color: transparent;
}
body.layout-2 .main-sidebar .sidebar-menu li ul.dropdown-menu li a {
    padding-left: 34px;
}
body.layout-2 .main-content {
    padding-top: 107px;
    padding-left: 30px;
    padding-right: 0;
    width: calc(100% - 200px);
}
body.layout-2 .main-footer {
    margin-left: 230px;
    width: calc(100% - 230px);
    padding-left: 0;
    padding-right: 0;
}

body.layout-3 .navbar {
    left: 0;
    right: 0;
}
body.layout-3 .navbar.navbar-secondary {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
    background-color: #ffffff;
    top: 70px;
    padding: 0;
    z-index: 889;
}
body.layout-3
    .navbar.navbar-secondary
    .navbar-nav
    > .nav-item.active
    > .nav-link {
    color: var(--primary);
    font-weight: 600;
}
body.layout-3
    .navbar.navbar-secondary
    .navbar-nav
    > .nav-item.active
    > .nav-link:before {
    left: 35px;
    right: 0;
}
body.layout-3
    .navbar.navbar-secondary
    .navbar-nav
    > .nav-item:first-child
    .nav-link {
    margin-left: 0;
}
body.layout-3
    .navbar.navbar-secondary
    .navbar-nav
    > .nav-item:last-child
    .nav-link {
    margin-right: 0;
}
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item > .nav-link {
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    height: 70px;
    padding: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 15px;
    margin-right: 15px;
    position: relative;
}
body.layout-3
    .navbar.navbar-secondary
    .navbar-nav
    > .nav-item
    > .nav-link.has-dropdown {
    margin-right: 35px;
}
body.layout-3
    .navbar.navbar-secondary
    .navbar-nav
    > .nav-item
    > .nav-link.has-dropdown:after {
    content: "\f107"; /* Perbaiki content dengan unicode yang benar */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: -20px;
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
    font-size: 12px;
}
body.layout-3
    .navbar.navbar-secondary
    .navbar-nav
    > .nav-item
    > .nav-link:before {
    content: " ";
    position: absolute;
    left: initial;
    right: initial;
    bottom: 0;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s;
}
body.layout-3
    .navbar.navbar-secondary
    .navbar-nav
    > .nav-item
    > .nav-link
    span {
    line-height: 74px;
}
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item > .nav-link i {
    width: 30px;
    font-size: 16px;
}
body.layout-3
    .navbar.navbar-secondary
    .navbar-nav
    > .nav-item
    > .nav-link:hover {
    color: var(--primary) !important;
}
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item .dropdown-menu {
    padding: 0;
}
body.layout-3
    .navbar.navbar-secondary
    .navbar-nav
    > .nav-item
    .dropdown-menu
    .nav-item
    .nav-link {
    color: #333333;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 7px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}
body.layout-3
    .navbar.navbar-secondary
    .navbar-nav
    > .nav-item
    .dropdown-menu
    .nav-item
    .nav-link.has-dropdown:after {
    content: "\f105"; /* Perbaiki content dengan unicode yang benar */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 15px;
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
    font-size: 12px;
}

body.layout-3
    .navbar.navbar-secondary
    .navbar-nav
    > .nav-item
    .dropdown-menu
    .nav-item:hover
    > .nav-link {
    background-color: rgba(var(--primary-rgb), 0.05);
    color: var(--primary);
}
body.layout-3
    .navbar.navbar-secondary
    .navbar-nav
    > .nav-item
    .dropdown-menu
    .nav-item:hover
    > .dropdown-menu {
    display: block !important;
    top: -5px;
    left: 200px;
}
body.layout-3
    .navbar.navbar-secondary
    .navbar-nav
    > .nav-item
    .dropdown-menu
    .nav-item.active
    > .nav-link,
body.layout-3
    .navbar.navbar-secondary
    .navbar-nav
    > .nav-item
    .dropdown-menu
    .nav-item
    .nav-link:focus {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: var(--primary-shadow);
}
body.layout-3 .main-content {
    padding-left: 0;
    padding-right: 0;
    padding-top: 170px;
}

/* Hover effect untuk navbar-secondary dropdown */
.navbar-secondary .navbar-nav .nav-item:hover > .dropdown-menu {
    display: block !important;
}

.navbar-secondary .navbar-nav .nav-item:not(:hover) .dropdown-menu {
    display: none !important;
}

/* Hover effect untuk dropdown akun di header */
.main-navbar .navbar-nav .dropdown:hover .dropdown-menu {
    display: block !important;
}

.main-navbar .navbar-nav .dropdown:not(:hover) .dropdown-menu {
    display: none !important;
}
body.layout-3 .main-footer {
    padding-left: 0;
    padding-right: 0;
}

.main-sidebar .sidebar-brand {
    display: inline-block;
    width: 100%;
    text-align: center;
    height: 30px;
    line-height: 30px;
}
.main-sidebar .sidebar-brand.sidebar-brand-sm {
    display: none;
}
.main-sidebar .sidebar-brand a {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.main-sidebar .sidebar-user {
    display: inline-block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}
.main-sidebar .sidebar-user .sidebar-user-picture {
    float: left;
    margin-right: 10px;
}
.main-sidebar .sidebar-user .sidebar-user-picture img {
    width: 50px;
    border-radius: 50%;
}
.main-sidebar .sidebar-menu {
    padding: 0;
    margin: 0;
}
.main-sidebar .sidebar-menu li {
    display: block;
}
.main-sidebar .sidebar-menu li.menu-header {
    padding: 3px 15px;
    color: #bcc1c6;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    font-weight: 600;
}
.main-sidebar .sidebar-menu li.menu-header:not(:first-child) {
    margin-top: 10px;
}
.main-sidebar .sidebar-menu li a {
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 20px;
    width: 100%;
    letter-spacing: 0.3px;
    color: #6c757d;
    text-decoration: none;
}
.main-sidebar .sidebar-menu li a .badge {
    float: right;
    padding: 5px 10px;
    margin-top: 2px;
}
.main-sidebar .sidebar-menu li a i {
    width: 28px;
    margin-right: 20px;
    text-align: center;
}
.main-sidebar .sidebar-menu li a span {
    margin-top: 3px;
    width: 100%;
}
.main-sidebar .sidebar-menu li a:hover {
    background-color: transparent;
    color: var(--primary);
}
.main-sidebar .sidebar-menu > li.active > a {
    color: var(--primary);
    font-weight: 600;
    background-color: transparent;
    border-right: 2px solid var(--primary);
}
.main-sidebar .sidebar-menu li.active ul.dropdown-menu {
    background-color: #fcfcfd;
}
.main-sidebar .sidebar-menu li a.has-dropdown:after {
    content: "\f107"; /* Perbaiki content dengan unicode yang benar */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 20px;
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
    font-size: 12px;
}

.main-sidebar .sidebar-menu li.active > ul.dropdown-menu {
    display: block;
}
.main-sidebar .sidebar-menu li.active > ul.dropdown-menu li a:hover {
    background-color: #fcfcfd;
}
.main-sidebar .sidebar-menu li ul.dropdown-menu {
    padding: 0;
    margin: 0;
    display: none;
    position: static;
    float: none;
    width: 100%;
    box-shadow: none;
    background-color: transparent;
}
.main-sidebar .sidebar-menu li ul.dropdown-menu li a {
    color: #333333;
    height: 35px;
    padding-left: 65px;
    font-weight: 400;
}
.main-sidebar .sidebar-menu li ul.dropdown-menu li a:hover {
    color: var(--primary);
    background-color: transparent;
}
.main-sidebar .sidebar-menu li ul.dropdown-menu li.active > a {
    color: var(--primary);
    font-weight: 600;
    border-right: 2px solid var(--primary);
}

/* Untuk menu level pertama (Umum, Pendampingan, dll) */
.main-sidebar .sidebar-menu > li > a {
    color: #6c757d;
}

/* Hanya menu yang sedang aktif (dibuka) yang diberi warna */
.main-sidebar .sidebar-menu > li.active > a {
    color: var(--primary);
}
.main-sidebar .sidebar-menu li ul.dropdown-menu li a i {
    margin-top: 1px;
    text-align: center;
}
.main-sidebar .sidebar-menu li ul.dropdown-menu li ul.dropdown-menu {
    padding-left: 10px;
}

.main-content {
    padding-left: 280px;
    padding-right: 30px;
    padding-top: 80px;
    width: 100%;
    position: relative;
}

.main-footer {
    padding: 20px 30px 20px 280px;
    margin-top: 40px;
    color: #333333;
    border-top: 1px solid #e3eaef;
    display: inline-block;
    width: 100%;
}
.main-footer .footer-left {
    float: left;
}
.main-footer .footer-right {
    float: right;
}

.simple-footer {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

body:not(.sidebar-mini) .sidebar-style-1 .sidebar-menu > li.active > a {
    background-color: transparent;
    color: var(--primary);
    box-shadow: none;
    font-weight: 600;
    border-right: 2px solid var(--primary);
}
body:not(.sidebar-mini)
    .sidebar-style-1
    .sidebar-menu
    li.active
    ul.dropdown-menu
    li
    a {
    color: #333; /* Warna teks normal */
}
body:not(.sidebar-mini)
    .sidebar-style-1
    .sidebar-menu
    li.active
    ul.dropdown-menu
    li
    a:hover {
    background-color: transparent;
    color: var(--primary);
}
body:not(.sidebar-mini)
    .sidebar-style-1
    .sidebar-menu
    li.active
    ul.dropdown-menu
    li.active
    a {
    color: var(--primary);
    background-color: transparent;
    font-weight: 600;
    border-right: 2px solid var(--primary);
}

body:not(.sidebar-mini) .sidebar-style-2 .sidebar-menu > li.active > a {
    padding-left: 16px;
    background-color: transparent;
    position: relative;
}
body:not(.sidebar-mini) .sidebar-style-2 .sidebar-menu > li.active > a:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 25px;
    width: 2px;
    background-color: var(--primary);
    box-shadow: none;
}
body:not(.sidebar-mini)
    .sidebar-style-2
    .sidebar-menu
    li.active
    ul.dropdown-menu
    li
    a {
    padding-left: 61px;
    background-color: transparent;
    color: #333;
}

body:not(.sidebar-mini)
    .sidebar-style-2
    .sidebar-menu
    li.active
    ul.dropdown-menu
    li
    a:hover {
    color: var(--primary);
}

body:not(.sidebar-mini)
    .sidebar-style-2
    .sidebar-menu
    li.active
    ul.dropdown-menu
    li.active
    a {
    color: var(--primary);
    font-weight: 600;
    border-right: 2px solid var(--primary);
}

@media (max-width: 1024px) {
    .sidebar-gone-hide {
        display: none !important;
    }

    .sidebar-gone-show {
        display: block !important;
    }

    .main-sidebar {
        position: fixed !important;
        margin-top: 0 !important;
        z-index: 891;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Tambahkan shadow untuk depth */
    }

    body.layout-2 .main-wrapper,
    body.layout-3 .main-wrapper {
        width: 100%;
        padding: 0;
        display: block;
    }

    .main-content {
        padding-left: 30px;
        padding-right: 30px;
        width: 100% !important;
    }

    .main-footer {
        padding-left: 30px;
    }

    body.search-show {
        overflow: hidden;
    }
    body.search-show .navbar {
        z-index: 892;
    }
    body.sidebar-show {
        overflow: hidden;
    }
    body.search-show:before,
    body.sidebar-show:before {
        content: "";
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-color: #000;
        opacity: 0;
        z-index: 891;
        -webkit-animation-name: fadeinbackdrop;
        animation-name: fadeinbackdrop;
        -webkit-animation-duration: 0.5s; /* Percepat animasi untuk responsiveness lebih baik */
        animation-duration: 0.5s;
        -webkit-animation-fill-mode: forwards;
        animation-fill-mode: forwards;
    }
    @-webkit-keyframes fadeinbackdrop {
        to {
            opacity: 0.5; /* Kurangi opacity untuk kontras yang lebih baik */
        }
    }
    @keyframes fadeinbackdrop {
        to {
            opacity: 0.5;
        }
    }
}

/* 4.5 Animation */
.pulsate {
    animation: pulsate 1s ease-out;
    animation-iteration-count: infinite;
    opacity: 1;
}

@keyframes pulsate {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@-webkit-keyframes pulsate {
    0% {
        -webkit-transform: scale(0.1);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        -webkit-transform: scale(1.2);
        opacity: 0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5; /* Lebih terang untuk kontras lebih baik */
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c51236 0%, #8a0e2a 100%);
}

/* 6. Custom Components */
/* 6.1 Sticky Preview */
/**
 * DOKUMENTASI PENGGUNAAN STICKY PREVIEW:
 * CSS ini sudah tersedia secara global melalui app.blade.php
 *
 * Cara menggunakan fitur sticky preview:
 *
 * 1. Tambahkan class "sticky-preview" pada kolom yang ingin dibuat sticky:
 *    <div class="col-12 col-md-12 col-lg-6 sticky-preview">
 *
 * 2. Gunakan class "viewer-container" untuk container PDF:
 *    <div id="viewer-container" class="viewer-container">
 *
 * 3. Gunakan class "loading-preview" untuk loading spinner:
 *    <div id="loading-preview" class="loading-preview" style="display: none;">
 *
 * 4. Gunakan class "pdf-viewer" untuk iframe PDF:
 *    <iframe id="pdfViewer" class="pdf-viewer"></iframe>
 *
 * 5. Gunakan class "form-overlay" dan "form-overlay-message" untuk overlay saat preview.
 *    Overlay dapat ditambahkan secara dinamis dengan jQuery (direkomendasikan):
 *
 *    // Tambahkan overlay saat preview dimulai
 *    $('<div id="form-overlay" class="form-overlay"><div id="form-overlay-message" class="form-overlay-message">Form dikunci selama preview</div></div>')
 *        .appendTo('#invoiceForm');
 *
 *    // Hapus overlay setelah preview selesai
 *    $('#form-overlay').remove();
 *
 *    Atau sebagai elemen HTML statis:
 *    <div id="form-overlay" class="form-overlay">
 *        <div id="form-overlay-message" class="form-overlay-message">
 *            Form dikunci selama preview
 *        </div>
 *    </div>
 *
 * Pastikan form memiliki position: relative (sudah diterapkan pada #penawaranForm, #invoiceForm, dll.)
 */

/* Sticky Preview Component */
.sticky-preview {
    position: -webkit-sticky; /* Untuk kompatibilitas browser Safari */
    position: sticky;
    top: 80px; /* Jarak dari atas. Sesuaikan jika tinggi navbar berbeda */
    align-self: flex-start; /* Mencegah kolom meregang */
    z-index: 100; /* Memastikan tetap di atas konten lain */
    height: fit-content; /* Menyesuaikan tinggi dengan kontennya */
}

/* Form Overlay untuk Preview */
.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(240, 244, 248, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-overlay-message {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    font-weight: bold;
}

/* Loading Preview */
.loading-preview {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(240, 244, 248, 0.5);
    z-index: 1;
}

/* Viewer Container */
.viewer-container {
    height: 127vh;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
}

/* Form Positioning */
#penawaranForm,
#invoiceForm,
#bapForm,
#lhppForm,
#pendampinganForm,
#tugasLhppForm,
#lapanganForm {
    position: relative;
}

/* 6.2 Enhanced Loading States */
/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

/* Wave loading animation */
.loading-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
}

.loading-wave .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: #dc143c;
    animation: wave 1.3s linear infinite;
}

.loading-wave .dot:nth-child(2) {
    animation-delay: -1.1s;
}

.loading-wave .dot:nth-child(3) {
    animation-delay: -0.9s;
}

@keyframes wave {
    0%,
    60%,
    100% {
        transform: initial;
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    height: 20px;
    margin-bottom: 10px;
}

.skeleton-circle {
    border-radius: 50%;
    height: 40px;
    width: 40px;
}

.skeleton-card {
    height: 200px;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.skeleton-title {
    width: 70%;
    height: 20px;
}

.skeleton-text {
    width: 100%;
    height: 15px;
}

.skeleton-button {
    width: 120px;
    height: 36px;
    border-radius: 18px;
}

@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Page loading indicator */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 244, 248, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.fadeout {
    opacity: 0;
    visibility: hidden;
}

.page-loader .spinner {
    width: 70px;
    text-align: center;
}

.page-loader .spinner > div {
    width: 18px;
    height: 18px;
    background-color: #dc143c;
    border-radius: 100%;
    display: inline-block;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.page-loader .spinner .bounce1 {
    animation-delay: -0.32s;
}

.page-loader .spinner .bounce2 {
    animation-delay: -0.16s;
}

@keyframes sk-bouncedelay {
    0%,
    80%,
    100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Media Queries for loading states */
@media (max-width: 575.98px) {
    .loading-wave .dot {
        width: 6px;
        height: 6px;
        margin: 0 3px;
    }

    .page-loader .spinner > div {
        width: 14px;
        height: 14px;
    }
}

/* Elevation Utility Classes */
.elevation-none {
    box-shadow: none !important;
}

.elevation-1 {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.elevation-2 {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08) !important;
}

.elevation-3 {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12) !important;
}

.elevation-4 {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.elevation-primary-1 {
    box-shadow: 0 2px 4px rgba(var(--primary-rgb), 0.15) !important;
}

.elevation-primary-2 {
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2) !important;
}

.elevation-primary-3 {
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.25) !important;
}

/* Hover Elevation Utilities */
.hover-elevation-1:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease;
}

.hover-elevation-2:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.3s ease;
}

.hover-elevation-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.25) !important;
    transition: all 0.3s ease;
}

/* 6.3 Animation Utilities */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideUp 0.5s ease-in-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-down {
    animation: slideDown 0.5s ease-in-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-scale {
    animation: scale 0.5s ease-in-out;
}

@keyframes scale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hover Animations */
.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.05);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5);
}

/* Text Gradient Utilities */
.text-gradient-primary {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Additional Spacing Utilities */
.mt-6 {
    margin-top: 4rem !important;
}
.mb-6 {
    margin-bottom: 4rem !important;
}
.pt-6 {
    padding-top: 4rem !important;
}
.pb-6 {
    padding-bottom: 4rem !important;
}

.mt-7 {
    margin-top: 5rem !important;
}
.mb-7 {
    margin-bottom: 5rem !important;
}
.pt-7 {
    padding-top: 5rem !important;
}
.pb-7 {
    padding-bottom: 5rem !important;
}

/* Additional Border Radius Utilities */
.rounded-xl {
    border-radius: 1rem !important;
}
.rounded-2xl {
    border-radius: 1.5rem !important;
}
.rounded-3xl {
    border-radius: 2rem !important;
}

/* Backdrop Blur Utilities */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Glass Effect Utilities */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-effect-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Gradient Border Utilities */
.gradient-border-primary {
    position: relative;
    border: none !important;
}

.gradient-border-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Placeholder styling */
.selectric .label {
    color: #495057 !important; /* Warna teks normal */
}

.selectric-wrapper .selectric .label[data-placeholder="true"],
.selectric-wrapper .selectric-items li.placeholder {
    color: #999 !important; /* Warna teks placeholder */
    /* Removing font-style: italic; */
}

/* Perbaikan warna biru pada dropdown */
.selectric-items li:hover {
    background-color: rgba(var(--primary-rgb), 0.05) !important;
    color: var(--primary) !important;
}

.selectric-items li.highlighted {
    background: var(--primary-gradient) !important;
    color: #fff !important;
}

/* Perbaikan untuk placeholder yang terlihat seperti terpilih */
.selectric-items li.disabled,
.selectric-items li.disabled.selected,
.selectric-items li.placeholder {
    background-color: #f0f0f0 !important;
    color: #999 !important;
}

.selectric-items li.disabled.selected,
.selectric-items li.placeholder.selected {
    background: #f0f0f0 !important; /* Pastikan tidak ada background merah untuk placeholder */
    color: #999 !important;
}

/* Pastikan placeholder tidak terlihat seperti terpilih di dropdown */
.selectric-open .selectric-items li.disabled,
.selectric-open .selectric-items li.disabled.selected,
.selectric-open .selectric-items li.placeholder {
    background-color: #f0f0f0 !important;
    color: #999 !important;
}

/* Perbaikan untuk tampilan mobile */
@media (max-width: 767px) {
    .main-sidebar .sidebar-menu li ul.dropdown-menu li {
        margin-bottom: 8px;
    }

    .main-sidebar .sidebar-menu li ul.dropdown-menu li a {
        height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
        line-height: 1.5;
        font-size: 14px; /* Ukuran font yang lebih besar */
        color: #333333; /* Warna default untuk submenu */
        background-color: transparent; /* Pastikan background transparan */
    }

    /* Perbaikan untuk submenu Pendampingan */
    .main-sidebar .sidebar-menu li.active > ul.dropdown-menu {
        padding-top: 10px;
        padding-bottom: 10px;
        background-color: transparent; /* Background transparan untuk dropdown */
    }

    .main-sidebar
        .sidebar-menu
        li.active
        > ul.dropdown-menu
        li:not(:last-child) {
        margin-bottom: 12px;
    }

    /* Tambahkan garis pemisah antar submenu untuk kejelasan visual */
    .main-sidebar .sidebar-menu > li:not(:last-child) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    /* Perbaikan untuk menu dropdown yang terbuka */
    .main-sidebar .sidebar-menu li.active ul.dropdown-menu {
        background-color: transparent; /* Ubah ke transparan */
        border-radius: 5px;
        margin: 5px 0;
    }

    /* Hanya menu yang sedang aktif yang diberi warna merah */
    .main-sidebar .sidebar-menu > li > a {
        color: #6c757d; /* Warna default untuk menu level pertama */
        padding-right: 35px; /* Tambahkan padding kanan untuk menghindari teks berdempetan dengan panah */
        background-color: transparent; /* Background transparan */
    }

    /* Perbaikan untuk ikon panah dropdown */
    .main-sidebar .sidebar-menu li a.has-dropdown:after {
        right: 15px; /* Posisi panah lebih ke kiri */
    }

    .main-sidebar .sidebar-menu > li.active > a {
        color: var(--primary); /* Warna merah untuk menu aktif */
        font-weight: 600;
        background-color: transparent; /* Background transparan */
    }

    /* Submenu yang aktif */
    .main-sidebar .sidebar-menu li ul.dropdown-menu li.active > a {
        color: var(--primary);
        font-weight: 600;
        background-color: transparent;
    }

    /* Perbaikan warna background untuk semua menu */
    .main-sidebar .sidebar-menu li a,
    .main-sidebar .sidebar-menu li ul.dropdown-menu li a,
    .main-sidebar .sidebar-menu li.active ul.dropdown-menu li a {
        background-color: transparent;
    }

    /* Efek hover yang konsisten - hanya ubah warna teks tanpa background */
    .main-sidebar .sidebar-menu li a:hover,
    .main-sidebar .sidebar-menu li ul.dropdown-menu li a:hover {
        background-color: transparent; /* Hapus background hover */
        color: var(
            --primary
        ); /* Tetap ubah warna teks menjadi merah saat hover */
    }

    /* Warna background untuk item menu yang dipilih */
    .main-sidebar .sidebar-menu li ul.dropdown-menu li.active > a {
        background-color: transparent; /* Hapus background untuk menu aktif */
    }

    /* Perbaikan untuk breadcrumb di header khusus untuk mobile */
    /* Ini hanya berlaku pada tampilan mobile, desktop tetap menggunakan style default */
    .section-header-breadcrumb {
        margin-top: 10px;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    /* Style khusus mobile untuk item breadcrumb */
    .section-header-breadcrumb .breadcrumb-item {
        font-size: 12px;
        white-space: nowrap;
        margin-right: 5px;
        margin-bottom: 5px;
        background-color: #f8f9fa;
        padding: 4px 10px;
        border-radius: 4px;
        /* Tambahkan touch target yang lebih besar tapi tidak berlebihan */
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        -webkit-tap-highlight-color: rgba(
            var(--primary-rgb),
            0.1
        ); /* Efek tap untuk iOS */
    }

    .section-header-breadcrumb .breadcrumb-item a {
        color: #6c757d; /* Mengubah warna link menjadi abu-abu */
        display: inline-flex;
        align-items: center;
        height: 100%;
        font-weight: 500;
        transition: all 0.2s ease;
        padding: 1px 4px;
    }

    .section-header-breadcrumb .breadcrumb-item:last-child {
        background-color: rgba(
            0,
            0,
            0,
            0.05
        ); /* Mengubah warna background menjadi abu-abu */
        font-weight: 600;
        padding: 6px 12px;
    }

    /* Perbaikan untuk breadcrumb yang terlalu panjang */
    .section-header-breadcrumb .breadcrumb-item {
        max-width: none;
        overflow: visible;
    }

    /* Hapus tampilan tanda slash/arrow yang default pada mobile */
    .section-header-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        display: none;
    }

    /* Tambahkan tanda panah yang lebih kecil dan rapi pada mobile */
    .section-header-breadcrumb .breadcrumb-item:not(:last-child):after {
        content: "›";
        margin-left: 6px;
        color: #aaa;
        font-size: 16px;
        font-weight: bold;
    }
}

/* Memastikan tampilan breadcrumb pada desktop tetap default */
@media (min-width: 768px) {
    .section-header-breadcrumb {
        margin-left: auto;
        display: flex;
        align-items: center;
    }

    .section-header-breadcrumb .breadcrumb-item {
        font-size: 12px;
        background-color: transparent;
        padding: 0;
        border-radius: 0;
        margin-right: 0;
        margin-bottom: 0;
    }

    .section-header-breadcrumb .breadcrumb-item:not(:last-child):after {
        content: none;
    }

    .section-header-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        display: inline-block;
        content: "/";
        padding: 0 5px;
        color: #6c757d;
    }

    .section-header-breadcrumb .breadcrumb-item:last-child {
        background-color: transparent;
    }
}
@media (min-width: 768px) {
    .section-header-breadcrumb {
        margin-left: auto;
        display: flex;
        align-items: center;
    }

    .section-header-breadcrumb .breadcrumb-item {
        font-size: 12px;
        background-color: transparent;
        padding: 0;
        border-radius: 0;
        margin-right: 0;
        margin-bottom: 0;
    }

    .section-header-breadcrumb .breadcrumb-item:not(:last-child):after {
        content: none;
    }

    .section-header-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        display: inline-block;
        content: "/";
        padding: 0 5px;
        color: #6c757d;
    }

    .section-header-breadcrumb .breadcrumb-item:last-child {
        background-color: transparent;
    }
}

/* Optimalisasi lebar konten pada mobile - pendekatan lebih agresif */
@media (max-width: 767px) {
    /* Reset padding dan margin global */
    body,
    html {
        overflow-x: hidden;
    }

    /* Memperlebar container utama dengan tetap menyisakan sedikit ruang di tepi */
    .container,
    .container-fluid {
        padding-left: 8px !important;
        padding-right: 8px !important;
        max-width: 100% !important;
        width: calc(100% - 16px) !important;
    }

    /* Memperlebar card dengan tetap menjaga estetika */
    .card {
        margin-left: 0;
        margin-right: 0;
        width: 100% !important;
        border-radius: 10px;
        padding: 12px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    }

    .card .card-body {
        padding: 15px 10px;
    }

    /* Memperlebar section dan kontennya */
    .section {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .main-content {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Memperlebar row dan kolom */
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    .col,
    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-9,
    .col-10,
    .col-11,
    .col-12,
    .col-sm,
    .col-sm-1,
    .col-sm-2,
    .col-sm-3,
    .col-sm-4,
    .col-sm-5,
    .col-sm-6,
    .col-sm-7,
    .col-sm-8,
    .col-sm-9,
    .col-sm-10,
    .col-sm-11,
    .col-sm-12,
    .col-md,
    .col-md-1,
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-7,
    .col-md-8,
    .col-md-9,
    .col-md-10,
    .col-md-11,
    .col-md-12 {
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Memperlebar tabel dan elemen lainnya */
    .table-responsive {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    /* Memperlebar breadcrumb container */
    .section-header-breadcrumb {
        width: 100%;
        padding-right: 0;
    }

    /* Memperlebar tombol aksi */
    .btn-group {
        width: 100%;
        display: flex;
    }

    .btn-group .btn {
        flex: 1;
    }

    /* Perbaikan untuk card statistik di dashboard */
    .card-statistic-1,
    .card-statistic-2 {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
}

/* Perbaikan khusus untuk card dashboard pada mobile */
@media (max-width: 767px) {
    /* Card pada dashboard */
    .card-statistic-1 .card-icon,
    .card-statistic-2 .card-icon {
        margin: 5px;
        width: 60px;
        height: 60px;
        line-height: 60px;
    }

    /* Optimasi padding pada card dashboard */
    .card-statistic-1 .card-header,
    .card-statistic-2 .card-header {
        padding: 15px 10px 0;
    }

    .card-statistic-1 .card-body,
    .card-statistic-2 .card-body {
        padding: 10px;
    }

    /* Memastikan teks tetap terlihat jelas */
    .card-statistic-1 .card-header h4,
    .card-statistic-2 .card-header h4 {
        font-size: 14px;
    }

    /* Memperbaiki layout pada section beranda */
    .section-body .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    /* Mengurangi margin antar card */
    .section-body .card {
        margin-bottom: 15px;
    }
}

/* Desktop Optimizations */
@media (min-width: 992px) {
    /* Smoother card transitions */
    .card {
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    }

    /* Enhanced table hover experience */
    .table-hover tbody tr:hover {
        background-color: rgba(var(--primary-rgb), 0.05);
        border-left: 3px solid var(--primary);
        position: relative;
        box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.08);
        z-index: 1;
    }

    /* Consistent section spacing */
    .section {
        margin-bottom: 25px;
    }

    /* Better form spacing */
    .form-group {
        margin-bottom: 25px;
    }

    /* Enhanced dropdown animations */
    .dropdown-menu.show {
        animation: dropdownFade 0.25s ease-in-out;
    }
}

/* Fix untuk input yang terpotong pada semua browser */
input,
select,
textarea,
.form-control,
.custom-select,
.select2-container,
.selectric,
.selectric-wrapper {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

/* Fix khusus untuk Firefox */
@-moz-document url-prefix() {
    input,
    select,
    textarea,
    .form-control,
    .custom-select,
    .select2-container,
    .selectric,
    .selectric-wrapper {
        overflow: visible !important;
    }
}

/* Fix khusus untuk Safari */
@media not all and (min-resolution: 0.001dpcm) {
    @supports (-webkit-appearance: none) {
        input,
        select,
        textarea,
        .form-control,
        .custom-select,
        .select2-container,
        .selectric,
        .selectric-wrapper {
            overflow: visible !important;
            text-overflow: clip !important;
        }
    }
}

/* Fix khusus untuk Chrome */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    input,
    select,
    textarea,
    .form-control,
    .custom-select,
    .select2-container,
    .selectric,
    .selectric-wrapper {
        overflow: visible !important;
    }
}

/* Fix untuk dropdown akun agar ikon dan teks sejajar dengan sempurna */
.dropdown-menu a.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    line-height: 1.3;
    display: flex;
    align-items: center;
}

.dropdown-menu a.dropdown-item i {
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    width: 24px;
    height: 24px;
    text-align: center;
}

/* Fix khusus untuk ikon profil dan keluar */
.dropdown-menu a.dropdown-item i.fas.fa-user,
.dropdown-menu a.dropdown-item i.fas.fa-sign-out-alt {
    line-height: 1;
    position: relative;
    top: 0;
}

/* Perbaikan khusus untuk breadcrumb pada layar sangat kecil */
@media (max-width: 380px) {
    .section-header-breadcrumb .breadcrumb-item {
        padding: 5px 10px;
        min-height: 34px;
        font-size: 13px;
        margin-right: 6px;
        margin-bottom: 6px;
    }

    .section-header-breadcrumb {
        margin-top: 15px;
    }

    /* Efek sentuhan yang lebih baik */
    .section-header-breadcrumb .breadcrumb-item a:active {
        background-color: rgba(var(--primary-rgb), 0.1);
        color: var(--primary);
        border-radius: 3px;
        transform: scale(0.98);
        transition: all 0.1s ease;
    }
}

/* Perbaikan tampilan breadcrumb pada section header desktop */
@media (min-width: 768px) {
    .section-header-breadcrumb .breadcrumb-item a {
        padding: 3px 6px;
        border-radius: 3px;
        transition: all 0.2s ease;
    }

    .section-header-breadcrumb .breadcrumb-item a:hover {
        color: var(--primary);
        background-color: rgba(var(--primary-rgb), 0.05);
        text-decoration: none;
    }

    .section-header-breadcrumb .breadcrumb-item a:active {
        color: var(--primary);
        background-color: rgba(var(--primary-rgb), 0.1);
        transform: scale(0.98);
    }
}

/* CSS untuk memperbaiki alignment judul dan tombol */
.section-body .d-flex.justify-content-between.align-items-center {
    margin-bottom: 1.5rem;
    flex-wrap: nowrap;
}

.section-body
    .d-flex.justify-content-between.align-items-center
    .section-title {
    margin-bottom: 0;
    margin-top: 0;
    flex: 1;
    min-width: 0;
}

.section-body .d-flex.justify-content-between.align-items-center .btn {
    flex-shrink: 0;
    margin-left: 10px;
}

@media (max-width: 575.98px) {
    .section-body .d-flex.justify-content-between.align-items-center {
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    .section-body
        .d-flex.justify-content-between.align-items-center
        .section-title {
        font-size: 16px;
        margin-right: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60%;
    }

    .section-body .d-flex.justify-content-between.align-items-center .btn {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
        min-width: 85px;
        text-align: center;
    }
}

/* Perbaikan tampilan breadcrumb pada section header desktop */
@media (min-width: 768px) {
    .section-header-breadcrumb .breadcrumb-item:last-child {
        font-weight: 600;
    }
}

/* DateRangePicker Custom Styling */
.daterangepicker {
    font-family: var(--font-family-base);
    border: 1px solid #ddd !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1) !important;
    border-radius: 4px !important;
    padding: 4px;
    z-index: 3000 !important;
    position: absolute;
    max-width: none;
    display: none; /* Secara default daterangepicker disembunyikan */
    width: auto !important;
    font-size: 12px;
}

/* Hanya tampilkan daterangepicker saat memiliki class show */
.daterangepicker.show {
    display: block;
}

/* Perbaiki header kalender */
.daterangepicker .calendar-table th {
    font-weight: 600 !important;
    font-size: 12px;
    color: #333;
    padding: 5px !important;
    background: #f8f9fa;
    text-align: center;
    width: 30px;
    height: 30px;
}

/* Perbaiki sel tanggal - hanya struktur, bukan warna */
.daterangepicker td {
    padding: 5px !important;
    font-size: 12px;
    border: 1px solid #f1f1f1 !important;
    text-align: center;
    width: 30px;
    height: 30px;
}

/* Warna item menu ranges yang aktif/dipilih saja */
.daterangepicker .ranges li.active {
    background-color: #6777ef !important;
    color: white !important;
}

/* Memastikan dropdown tidak terpotong */
.daterangepicker .drp-calendar {
    max-width: 250px;
    clear: none !important;
    padding: 0 4px;
    margin: 0 auto;
}

/* Perbaikan untuk tampilan mobile */
@media (max-width: 767px) {
    .daterangepicker {
        width: 280px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
    }

    .daterangepicker .drp-calendar {
        max-width: none;
        margin: 0 auto;
    }

    .daterangepicker.ltr .ranges,
    .daterangepicker.ltr .drp-calendar {
        float: none !important;
    }

    .daterangepicker .ranges {
        width: 100% !important;
    }
}

/* Memastikan posisi daterangepicker tetap terlihat */
.daterangepicker.opensright:before {
    position: absolute;
    top: -7px;
    left: 9px;
    display: inline-block;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #ccc;
    border-left: 7px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.2);
    content: "";
}

.daterangepicker.opensright:after {
    position: absolute;
    top: -6px;
    left: 10px;
    display: inline-block;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    border-left: 6px solid transparent;
    content: "";
}

/* Perbaikan untuk calendar-table */
.daterangepicker .calendar-table {
    border: 1px solid #fff;
    border-radius: 3px;
    background-color: #fff;
    margin: 0 auto;
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
}

/* Perbaikan untuk tanggal yang dipilih - hanya untuk start-date dan end-date */
.daterangepicker td.start-date,
.daterangepicker td.end-date {
    background-color: #6777ef !important;
    color: #fff !important;
}

/* Perbaikan untuk tanggal dalam rentang */
.daterangepicker td.in-range {
    background-color: rgba(103, 119, 239, 0.1) !important;
    color: #333 !important;
    position: relative;
}

/* Perbaikan untuk start-date dan end-date */
.daterangepicker td.start-date,
.daterangepicker td.end-date {
    background-color: #6777ef !important;
    color: #fff !important;
    border-radius: 3px !important;
}

/* Perbaikan untuk rentang tanggal yang dipilih */
.daterangepicker td.start-date.end-date {
    border-radius: 3px !important;
}

/* Perbaikan untuk hover pada tanggal */
.daterangepicker td.available:not(.start-date):not(.end-date):hover {
    background-color: #f0f0f0 !important;
}

/* Memastikan tanggal aktif tetap biru saat hover */
.daterangepicker td.start-date:hover,
.daterangepicker td.end-date:hover {
    background-color: #6777ef !important;
    color: #fff !important;
}

/* Perbaikan untuk tombol apply dan cancel */
.daterangepicker .drp-buttons .btn {
    margin-left: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
}

/* Perbaikan untuk label rentang tanggal */
.daterangepicker .drp-selected {
    font-size: 11px;
    padding-right: 5px;
    color: #666;
}

/* Perbaikan untuk tampilan rentang tanggal */
.daterangepicker .ranges {
    margin: 0;
    padding: 3px;
}

.daterangepicker .ranges ul {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.daterangepicker .ranges li {
    font-size: 12px;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.daterangepicker .ranges li:hover {
    background-color: #f8f9fa;
}

/* Perbaikan untuk tanggal di luar bulan saat ini */
.daterangepicker td.off.in-range,
.daterangepicker td.off.start-date,
.daterangepicker td.off.end-date {
    background-color: transparent !important;
    color: #ccc !important;
}

.daterangepicker td.off.active {
    background-color: transparent !important;
    color: #ccc !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: var(--primary-shadow);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #a30f28 0%, #8e0e29 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(196, 18, 48, 0.35);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: var(--soft-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader img {
    max-width: 120px;
    height: auto;
}

.preloader-content {
    text-align: center;
    max-width: 90%;
    width: 300px;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(196, 18, 48, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto;
}

.preloader h4 {
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 5px;
    color: var(--primary) !important;
    font-size: 18px;
}

.preloader p {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 0;
}

@media (max-width: 576px) {
    .preloader-spinner {
        width: 50px;
        height: 50px;
    }

    .preloader h4 {
        font-size: 16px;
    }

    .preloader p {
        font-size: 12px;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Efek highlight untuk nomor surat yang diperbarui */
.highlight-updated {
    background-color: #d4edda !important;
    transition: background-color 0.3s ease;
    border-color: #28a745 !important;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

html {
    min-height: 100%;
    overflow-x: hidden;
}

.preloader-active {
    overflow: hidden;
}

/* DataTables Mobile Pagination Fix */
@media (max-width: 767px) {
    /* Memperbaiki tampilan wrapper datatable pada mobile */
    .dataTables_wrapper {
        overflow-x: auto; /* Satu scrollbar untuk seluruh datatable */
        padding-bottom: 10px;
    }

    /* Menghilangkan scrollbar terpisah pada container tabel */
    .dataTables_wrapper .dataTable {
        margin-bottom: 5px !important;
    }

    /* Memperbaiki tampilan pagination pada mobile */
    .dataTables_wrapper .dataTables_paginate {
        display: flex;
        justify-content: center;
        align-items: center; /* Memastikan semua tombol sejajar secara vertikal */
        margin-top: 5px;
        overflow-x: visible; /* Tidak perlu scrollbar terpisah */
        width: 100%;
        white-space: nowrap;
        padding-bottom: 0;
    }

    /* Memindahkan info "Showing" ke dalam area yang sama dengan tabel */
    .dataTables_wrapper .dataTables_info {
        text-align: center;
        margin-bottom: 5px;
        font-size: 11px;
        padding-top: 0 !important;
    }

    /* Mengurangi ukuran tombol pagination dan memastikan ukuran yang konsisten */
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 4px 8px !important;
        margin: 0 1px !important;
        font-size: 10px;
        display: inline-flex !important;
        justify-content: center;
        align-items: center;
        min-width: 24px;
        min-height: 24px;
        text-align: center;
        line-height: 1;
        border-radius: 3px;
        box-sizing: border-box;
        vertical-align: middle;
    }

    /* Memastikan tombol previous dan next memiliki ukuran yang sama dengan tombol nomor */
    .dataTables_wrapper .dataTables_paginate .paginate_button.previous,
    .dataTables_wrapper .dataTables_paginate .paginate_button.next {
        padding: 4px 8px !important;
        font-size: 10px;
        min-width: 24px;
        min-height: 24px;
    }

    /* Menampilkan titik-titik (ellipsis) dengan ukuran yang sesuai */
    .dataTables_wrapper .dataTables_paginate .ellipsis {
        display: inline-flex !important;
        justify-content: center;
        align-items: center;
        padding: 0 4px;
        font-size: 10px;
        min-width: 16px;
        min-height: 24px;
        vertical-align: middle;
    }

    /* Memperbaiki tampilan tombol pagination saat aktif */
    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background: #f0f0f0 !important;
        border-color: #e0e0e0 !important;
        color: #8a1022 !important;
        font-weight: 600;
    }

    /* Menyesuaikan ukuran font dan tampilan untuk elemen "Show entries" */
    .dataTables_wrapper .dataTables_length {
        text-align: center;
        margin-bottom: 10px;
        font-size: 11px;
    }

    /* Menyesuaikan ukuran font dan tampilan untuk elemen "Search" */
    .dataTables_wrapper .dataTables_filter {
        text-align: center;
        margin-bottom: 10px;
        font-size: 11px;
    }

    /* Menyesuaikan ukuran input dan select pada DataTables */
    .dataTables_wrapper .dataTables_length select,
    .dataTables_wrapper .dataTables_filter input {
        font-size: 11px;
        padding: 4px 8px;
        height: 28px;
    }
}

/* Perbaikan tampilan card pada dashboard */
.card.card-statistic-1 .card-header {
    padding-top: 15px;
    padding-bottom: 0;
    min-height: auto;
}

.card.card-statistic-1 .card-header h4 {
    line-height: 1.3;
    margin-bottom: 3px;
    display: -webkit-box;
    display: -ms-box;
    display: box;
    -webkit-line-clamp: 2;
    -ms-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -ms-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 36px;
}

.card.card-statistic-1 .card-body {
    padding-top: 0;
    padding-bottom: 15px;
}

/* Responsif untuk layar kecil */
@media (max-width: 767px) {
    .card.card-statistic-1 .card-header h4 {
        -webkit-line-clamp: 1;
        -ms-line-clamp: 1;
        line-clamp: 1;
        max-height: 20px;
    }
}

/* Optimasi DataTable: Pengganti loop JavaScript agar lebih ringan */
.dataTable td {
    vertical-align: middle !important;
}

.dataTable td:last-child {
    cursor: default !important;
}

.dataTable td:last-child a,
.dataTable td:last-child button,
.dataTable td:last-child .btn,
.dataTable td:last-child [data-toggle="tooltip"] {
    cursor: pointer !important;
}

/* Penyesuaian DataTable di Mobile */
@media (max-width: 767.98px) {
    .dataTables_wrapper .dataTables_info {
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    .dataTables_wrapper .dataTables_paginate {
        text-align: center !important;
        margin-top: 5px !important;
        white-space: normal !important;
    }

    .dataTable thead th {
        white-space: normal !important;
    }
}

/* Memastikan tooltip tetap berfungsi dengan baik */
.tooltip {
    pointer-events: none;
}

.tooltip-inner {
    max-width: 200px;
    padding: 6px 10px;
    text-align: center;
}
