.form-group {
    margin-bottom: 1rem;
}

.hp-hero-text-gradient {
    --hp-bg-size: 400%;
    --hp-color-one: rgb(37, 161, 244);
    --hp-color-two: rgb(249, 31, 169);

    background: linear-gradient(90deg,
            var(--hp-color-one),
            var(--hp-color-two),
            var(--hp-color-one)) 0 0 / var(--hp-bg-size) 100%;
    color: transparent !important;
    -webkit-background-clip: text;
    background-clip: text;
    animation: hp-move-bg 24s infinite linear;
}

@keyframes hp-move-bg {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 400% 0;
    }
}


.payment-group {
    box-shadow: none !important;
}

/* .payment-group .accordion-button:focus {
      box-shadow: none;
  } */
.payment-menu input[type="radio"] {
    display: none;
}

.payment-menu {
    /*cursor: pointer;*/
    position: relative;
    display: block;
    color: var(--bs-card-title-color);
    text-decoration: none;
    background: var(--bs-body-bg);
    border-radius: 1rem !important;
    user-select: none;
}

.payment-menu input[type="radio"]+.payment-item {
    text-align: center;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 13px !important;
    border-radius: 1rem !important;
    border: 2px solid var(--bs-gray-300);
    width: 100%;
}

.payment-menu input[type="radio"]:checked+.payment-item {
    background-color: var(--bs-primary-light);
    border: 2px solid var(--bs-primary);
    color: var(--bs-primary);
    font-size: 13px !important;
    display: block;
}

.payment-menu input[type="radio"]:hover:not(:checked)+.payment-item {
    border: 2px solid var(--bs-primary);
}

.payment-menu .info-top {
    margin-top: 7px;
}

.payment-menu .info-bottom {
    margin-top: 7px;
    margin-bottom: 3px;
}

.select2 {
    width: 100% !important;
}

body .swal2-container {
    z-index: 1081 !important;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #f3f5f7;
}

.select2-container--default .select2-selection--single {
    border-radius: 8px !important;
    border: 1px solid #bec8d0 !important;
    height: 100% !important;
}

.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    height: 0 !important;
    left: 0 !important;
    margin-left: -5px !important;
    margin-top: 8px !important;
}

.select2-container .select2-selection--single:hover {
    background-color: #f8f9fa !important;
}

.select2-container .select2-selection--single:focus {
    color: #131920 !important;
    background-color: #f8f9fa !important;
    border-color: var(--bs-primary) !important;
    outline: 0 !important;
    box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb), 0.1) !important;
}

.select2-results__option:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
    color: var(--bs-primary) !important;
}

.select2-results__option[aria-selected="true"] {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

.select2-results__option--highlighted[aria-selected="false"] {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
    color: var(--bs-primary) !important;
}

.select2-results__option--highlighted[aria-selected="true"] {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

.select2-container--open .select2-selection--single {
    color: #131920 !important;
    background-color: #f8f9fa !important;
    border-color: var(--bs-primary) !important;
    outline: 0 !important;
    box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb), 0.1) !important;
}

.select2-container .select2-selection--single {
    width: 100%;
    /*padding: 0.58rem 0.75rem;*/
    padding: 0.58rem 2rem 0.58rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    background-color: #ffffff;
    background-clip: padding-box;
    border: 1px solid #bec8d0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border-radius: 0.357rem;
    height: 2rem;
}

[data-pc-theme="dark"] .select2-container .select2-selection--single {
    background-color: #263240 !important;
    border-color: #303f50 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #131920 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--bs-body-color) !important;
}

[data-pc-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--bs-body-color) !important;
}

[data-pc-theme="dark"] .select2-search__field {
    background-color: #263240 !important;
    color: var(--bs-body-color) !important;
}

[data-pc-theme="dark"] .select2-dropdown {
    background-color: #263240 !important;
    color: var(--bs-body-color) !important;
}

[data-pc-theme="dark"] .select2-results__option:hover {
    background: transparent !important;
    color: var(--bs-primary) !important;
}

[data-pc-theme="dark"] .select2-container .select2-selection--single:focus {
    border-color: var(--bs-primary) !important;
    outline: 0 !important;
    box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb), 0.1) !important;
}

[data-pc-theme="dark"] .select2-results__option[aria-selected="true"] {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
    color: var(--bs-primary) !important;
}

[data-pc-theme="dark"] .select2-results__option--highlighted[aria-selected="false"] {
    background: transparent !important;
    color: var(--bs-primary) !important;
}

[data-pc-theme="dark"] .select2-results__option--highlighted[aria-selected="true"] {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
    color: var(--bs-primary) !important;
}

[data-pc-theme="dark"] .select2-container--open .select2-selection--single {
    border-color: var(--bs-primary) !important;
    outline: 0 !important;
    box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb), 0.1) !important;
}

[data-pc-theme="dark"] .form-control:disabled,
[data-pc-theme="dark"] .custom-select:disabled,
[data-pc-theme="dark"] .dataTable-selector:disabled,
[data-pc-theme="dark"] .dataTable-input:disabled {
    -webkit-text-fill-color: var(--bs-body-color);
}

body.swal2-height-auto {
    overflow: hidden !important;
}

.available-balance-card::after {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.3),
            rgba(255, 255, 255, 0));
}

.btn-primary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger,
.btn-secondary,
.btn-custom-gradient {
    background-image: linear-gradient(180deg,
            rgba(255, 255, 255, 0.25),
            rgba(255, 255, 255, 0)) !important;
    border: none;
}

.btn-outline-primary,
.btn-outline-success,
.btn-outline-info,
.btn-outline-warning,
.btn-outline-danger,
.btn-outline-secondary {
    background-image: linear-gradient(180deg,
            rgba(255, 255, 255, 0.25),
            rgba(255, 255, 255, 0)) !important;
}

[data-pc-theme="dark"] .card .card-header {
    border-bottom: 1px solid #444a52;
}

.table thead th .form-check {
    font-size: var(--bs-body-font-size) !important;
}

.form-check .form-check-input {
    cursor: pointer;
}

.pc-sidebar .pc-hasmenu.pc-trigger>.pc-link>.pc-arrow {
    margin-top: 2px;
}

[data-pc-theme="dark"] .payment-menu input[type="radio"]:checked+.payment-item {
    background-color: rgba(var(--bs-primary-rgb), 0.2);
}

.hero-text-gradient {
    --bg-size: 400%;
    --color-one: rgb(37, 161, 244);
    --color-two: rgb(249, 31, 169);

    background: linear-gradient(90deg,
            var(--color-one),
            var(--color-two),
            var(--color-one)) 0 0 / var(--bg-size) 100%;
    color: transparent !important;
    -webkit-background-clip: text;
    background-clip: text;
    animation: move-bg 24s infinite linear;
}

@keyframes move-bg {
    to {
        background-position: var(--bg-size) 0;
    }
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    z-index: 999999;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 1;
    transition: opacity 1s ease-out;
    /* Atur durasi fade-out di sini */
}

.custom-loader {
    margin: 0 auto;
    width: 50px;
    height: 50px;
    --pc: radial-gradient(farthest-side, var(--bs-primary) 92%, #0000);
    background: var(--pc) 50% 0, var(--pc) 50% 100%, var(--pc) 100% 50%, var(--pc) 0 50%;
    background-size: 10px 10px;
    background-repeat: no-repeat;
    animation: spin 0.6s infinite linear;
    position: relative;
}

.custom-loader::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: 3px;
    background: repeating-conic-gradient(rgba(0, 0, 0, 0) 0 35deg, var(--bs-primary) 0 90deg);
    -webkit-mask: radial-gradient(farthest-side, rgba(0, 0, 0, 0) calc(100% - 3px), #000 0);
    border-radius: 50%;
}

@keyframes spin {
    100% {
        transform: rotate(0.5turn);
    }
}