* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

.image_delete_button {
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    border: 0.5px solid #dddddd;
}

.image_delete_button img {
    object-fit: cover;
    width: 100%;
    height: 100%
}

.image_delete_button:hover::after {
    content: "Delete";
    position: absolute;
    color: white;
    font-size: 14px;
    background: rgb(255, 76, 76);
    padding: 5px 10px;
    border-radius: 5px;
}

.square_img {
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
    width: 50px;
    height: 50px;
}

.square_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    padding: 5px 8px;
}

.alertify .ajs-dimmer,
.alertify .ajs-modal {
    z-index: 9999;
}

.alertify .ajs-dialog {
    padding: 24px;
}

.alertify .ajs-content {
    padding: 24px 0px !important;
}

.alertify .ajs-content input {
    pointer-events: auto !important;
    cursor: text !important;
}


.alertify .ajs-footer {
    padding: 24px;
    margin: 0px;
    padding: 0px;
}

.ajs-message {
    color: white !important;
}

.ajs-button {
    border: 0px;
    border-radius: 5px;
}

.alertify .ajs-dimmer {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Dialog Container */
.alertify .ajs-dialog {
    max-width: 500px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #dee2e6;
}

/* Header */
.alertify .ajs-header {
    background: #0d6efd;
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: none;
}

/* Body */
.alertify .ajs-body {
    padding: 20px;
    background: #ffffff;
}

.alertify .ajs-body .ajs-content {
    font-size: 14px;
    line-height: 1.5;
    color: #212529;
}

/* Footer */
.alertify .ajs-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    text-align: right;
}

/* Buttons */
.alertify .ajs-button {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    margin-left: 8px;
}

/* Primary Button */
.alertify .ajs-button.ajs-ok {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.alertify .ajs-button.ajs-ok:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
}

/* Cancel Button */
.alertify .ajs-button.ajs-cancel {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.alertify .ajs-button.ajs-cancel:hover {
    background: #5c636a;
    border-color: #565e64;
}

/* Danger Variant (for Kick) */
.alertify.ajs-danger .ajs-header {
    background: #dc3545;
}

.alertify.ajs-danger .ajs-button.ajs-ok {
    background: #dc3545;
    border-color: #dc3545;
}

.alertify.ajs-danger .ajs-button.ajs-ok:hover {
    background: #bb2d3b;
    border-color: #b02a37;
}

/* Success Variant */
.alertify.ajs-success .ajs-header {
    background: #198754;
}

/* Warning Variant */
.alertify.ajs-warning .ajs-header {
    background: #ffc107;
    color: #000;
}

/* Info Variant */
.alertify.ajs-info .ajs-header {
    background: #0dcaf0;
    color: #000;
}

/* Notification Toasts */
.alertify-notifier {
    right: 20px;
    top: 70px;
}

.alertify-notifier .ajs-message {
    background: #fff;
    color: #212529;
    border-radius: 4px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #6c757d;
    font-size: 14px;
    min-width: 280px;
}

.alertify-notifier .ajs-message.ajs-success {
    background: #d1e7dd;
    color: #0f5132;
    border-left-color: #198754;
}

.alertify-notifier .ajs-message.ajs-error {
    background: #f8d7da;
    color: #842029;
    border-left-color: #dc3545;
}

.alertify-notifier .ajs-message.ajs-warning {
    background: #fff3cd;
    color: #664d03;
    border-left-color: #ffc107;
}

.alertify-notifier .ajs-message.ajs-info {
    background: #cff4fc;
    color: #055160;
    border-left-color: #0dcaf0;
}

/* Close button */
.alertify-notifier .ajs-message .ajs-close {
    opacity: 0.5;
    color: inherit;
}

.alertify-notifier .ajs-message .ajs-close:hover {
    opacity: 1;
}

/* Input fields */
.alertify .ajs-input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    margin-top: 10px;
}

.alertify .ajs-input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ============================================
   DARK MODE
   ============================================ */

/* Dark mode melalui class di body */
html.dark-theme .alertify .ajs-dialog,
[data-bs-theme="dark"] .alertify .ajs-dialog {
    background: #212529;
    border-color: #495057;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

/* Dark Mode - Body */
html.dark-theme .alertify .ajs-body,
[data-bs-theme="dark"] .alertify .ajs-body {
    background: #212529;
}

html.dark-theme .alertify .ajs-body .ajs-content,
[data-bs-theme="dark"] .alertify .ajs-body .ajs-content {
    color: #dee2e6;
}

/* Dark Mode - Footer */
html.dark-theme .alertify .ajs-footer,
[data-bs-theme="dark"] .alertify .ajs-footer {
    background: #343a40;
    border-top-color: #495057;
}

/* Dark Mode - Input */
html.dark-theme .alertify .ajs-input,
[data-bs-theme="dark"] .alertify .ajs-input {
    background: #343a40;
    border-color: #495057;
    color: #dee2e6;
}

html.dark-theme .alertify .ajs-input:focus,
[data-bs-theme="dark"] .alertify .ajs-input:focus {
    background: #495057;
    border-color: #6c757d;
    color: #fff;
}

/* Dark Mode - Notifications */
html.dark-theme .alertify-notifier .ajs-message,
[data-bs-theme="dark"] .alertify-notifier .ajs-message {
    background: #343a40;
    color: #dee2e6;
    border-left-color: #6c757d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html.dark-theme .alertify-notifier .ajs-message.ajs-success,
[data-bs-theme="dark"] .alertify-notifier .ajs-message.ajs-success {
    background: #1a4d2e;
    color: #75b798;
    border-left-color: #198754;
}

html.dark-theme .alertify-notifier .ajs-message.ajs-error,
[data-bs-theme="dark"] .alertify-notifier .ajs-message.ajs-error {
    background: #4d1a1a;
    color: #ea868f;
    border-left-color: #dc3545;
}

html.dark-theme .alertify-notifier .ajs-message.ajs-warning,
[data-bs-theme="dark"] .alertify-notifier .ajs-message.ajs-warning {
    background: #4d3d1a;
    color: #ffda6a;
    border-left-color: #ffc107;
}

html.dark-theme .alertify-notifier .ajs-message.ajs-info,
[data-bs-theme="dark"] .alertify-notifier .ajs-message.ajs-info {
    background: #1a3d4d;
    color: #6edff6;
    border-left-color: #0dcaf0;
}

/* Dark Mode dengan prefers-color-scheme */
@media (prefers-color-scheme: dark) {
    .alertify .ajs-dialog {
        background: #212529;
        border-color: #495057;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    }

    .alertify .ajs-body {
        background: #212529;
    }

    .alertify .ajs-body .ajs-content {
        color: #dee2e6;
    }

    .alertify .ajs-footer {
        background: #343a40;
        border-top-color: #495057;
    }

    .alertify .ajs-input {
        background: #343a40;
        border-color: #495057;
        color: #dee2e6;
    }

    .alertify .ajs-input:focus {
        background: #495057;
        border-color: #6c757d;
        color: #fff;
    }

    .alertify-notifier .ajs-message {
        background: #343a40;
        color: #dee2e6;
        border-left-color: #6c757d;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .alertify-notifier .ajs-message.ajs-success {
        background: #1a4d2e;
        color: #75b798;
        border-left-color: #198754;
    }

    .alertify-notifier .ajs-message.ajs-error {
        background: #4d1a1a;
        color: #ea868f;
        border-left-color: #dc3545;
    }

    .alertify-notifier .ajs-message.ajs-warning {
        background: #4d3d1a;
        color: #ffda6a;
        border-left-color: #ffc107;
    }

    .alertify-notifier .ajs-message.ajs-info {
        background: #1a3d4d;
        color: #6edff6;
        border-left-color: #0dcaf0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .alertify .ajs-dialog {
        max-width: 90%;
        margin: 20px;
    }

    .alertify .ajs-footer {
        text-align: center;
    }

    .alertify .ajs-button {
        display: block;
        width: 100%;
        margin: 5px 0;
    }

    .alertify-notifier {
        right: 10px;
        left: 10px;
    }

    .alertify-notifier .ajs-message {
        min-width: unset;
    }
}

.icon_theme {
    border-radius: 100%;
    width: 30px;
    height: 30px;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #c7a87446;
}


/* .btn:has(> [data-feather="plus"]):not(:has(> :not([data-feather="plus"]))),
.btn:has(> .feather-plus):not(:has(> :not(.feather-plus))),
.btn.btn-feather {
    width: 37px;
    height: 37px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
} */

.btn:has(> [data-feather]):not(:has(> :not([data-feather]))),
.btn:has(> [class^="feather-"]):not(:has(> :not([class^="feather-"]))),
.btn.btn-feather {
    width: 37px;
    height: 37px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


table .btn:has(> [data-feather]):not(:has(> :not([data-feather]))) {
    width: 33px;
    height: 31px;
    padding: 0px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.accordion-item,
.accordion-button {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none;
}

.accordion-button:not(.collapsed) {
    color: inherit;
    background-color: transparent !important;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button::after {
    transform: scale(0.7);
}

.form-control,
.form-select,
.btn,
span {
    box-shadow: none !important;
}

label.required::after {
    content: " *";
    color: red;
}

input[type="month"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

input[type="file"] {
    background-color: black;
    color: white;
}

.btn_click_effect {
    transition: 0.3s;
    cursor: pointer;
}

.btn_click_effect:hover {
    transform: scale(95%);
}

.btn_click_effect:active {
    transform: scale(90%);
}

.table-responsive {
    overflow: visible !important;
}

.card.btn_click_effect {
    border: 1px solid rgba(255, 255, 255, 0.308) !important
}

.card-body {
    overflow: visible !important;
}

table td,
table th {
    vertical-align: middle;
    position: relative;
}

#common-modal-2 .modal-content {
    border: 1px solid rgb(146, 146, 146);
}

.pppoe_session_indicator {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    vertical-align: sub;
}

.pppoe_session_indicator.active {
    background-color: #28a745;
    animation: blink 2.5s infinite;
    /* animasi berkedip */
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}

.pppoe_session_indicator.inactive {
    background-color: rgb(255, 156, 43);
}
