.topbar-user .profile-pic {
    display: flex;
    align-items: center;
}

.topbar-user .avatar-sm {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-user .status-indicator {
    width: 10px;
    height: 10px;
    border: 2px solid white;
}

.topbar-user .profile-username {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2; /* Memastikan spasi vertikal sesuai */
}

.topbar-user .small.text-muted {
    display: flex;
    align-items: center;
}

#sidebar-form {
    width: 420px;
    position: fixed;
    right: -440px;
    top: 0;
    height: 100vh;
    background: var(--bs-white);
    box-shadow: -2px 0px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
    border-radius: 0px 0 0 0px;
}
#sidebar-form.active {
    right: 0;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1049;
}
.overlay.active {
    display: block;
}

/* Global Form Input - Medium Size */
.form-control {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9375rem;
    line-height: 1.5;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

/* Ensure standard inputs in form groups match the select height */
.form-group .form-control:not(.form-control-sm) {
    height: 46px !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
}

.form-control:focus {
    border-color: var(--primary-color, #177dff);
    box-shadow: 0 0 0 3px rgba(23, 125, 255, 0.1);
    outline: none;
}

.form-control-sm {
    padding: 6px 10px;
    font-size: 0.8125rem;
}

.form-control-md {
    padding: 10px 14px;
    font-size: 0.9375rem;
}

.form-label {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Form Floating untuk Modal - Styling menarik seperti login */
.modal .form-floating {
    position: relative;
}

.modal .form-floating > .form-control {
    border: 1.5px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 14px;
    padding-right: 40px;
    font-size: 0.9375rem;
    line-height: 1.5;
    transition: all 0.2s ease;
    background: #f8f9fa;
    height: auto;
    min-height: 46px;
}

.modal .form-floating > .form-control:hover {
    border-color: #ced4da;
    background: #ffffff;
}

.modal .form-floating > .form-control:focus {
    border-color: var(--primary-color, #177dff);
    box-shadow: 0 0 0 3px rgba(23, 125, 255, 0.1);
    background: #ffffff;
    outline: none;
}

.modal .form-floating > label {
    color: #6c757d;
    padding: 12px 14px;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    pointer-events: none;
}

.modal .form-floating > .form-control:focus ~ label,
.modal .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color, #177dff);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.1rem);
    font-weight: 600;
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    height: auto;
}

.modal .form-floating label i {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.modal .form-floating:focus-within label i,
.modal .form-floating > .form-control:not(:placeholder-shown) ~ label i {
    color: var(--primary-color, #177dff);
}

.modal .required {
    color: #f3545d;
    margin-left: 2px;
    font-weight: 600;
}

/* Select2 dengan Form Floating di Modal */
.modal .form-floating.has-select2 .select2-container {
    width: 100% !important;
}

.modal .form-floating.has-select2 .select2-container .select2-selection {
    border: 1.5px solid #e9ecef;
    border-radius: 8px;
    height: 46px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.modal .form-floating.has-select2 .select2-container .select2-selection:hover {
    border-color: #ced4da;
    background: #ffffff;
}

.modal .form-floating.has-select2.select2-focused .select2-container .select2-selection,
.modal .form-floating.has-select2 .select2-container--open .select2-selection {
    border-color: var(--primary-color, #177dff);
    box-shadow: 0 0 0 3px rgba(23, 125, 255, 0.1);
    background: #ffffff;
}

.modal .form-floating.has-select2 .select2-container .select2-selection__rendered {
    line-height: 44px;
    padding-left: 14px;
    padding-right: 30px;
    color: #495057;
}

.modal .form-floating.has-select2 .select2-container .select2-selection__arrow {
    height: 44px;
    right: 10px;
}

.modal .form-floating.has-select2 > label {
    color: #6c757d;
    padding: 12px 14px;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1;
}

.modal .form-floating.has-select2.select2-has-value > label,
.modal .form-floating.has-select2.select2-focused > label {
    color: var(--primary-color, #177dff);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.1rem);
    font-weight: 600;
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    height: auto;
}

.modal .form-floating.has-select2 label i {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.modal .form-floating.has-select2.select2-focused label i,
.modal .form-floating.has-select2.select2-has-value label i {
    color: var(--primary-color, #177dff);
}

.modal .form-floating.has-select2 .select2-dropdown {
    border: 1.5px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal .form-floating.has-select2 .select2-results__option {
    padding: 10px 14px;
}

.modal .form-floating.has-select2 .select2-results__option--highlighted {
    background-color: rgba(23, 125, 255, 0.1);
    color: var(--primary-color, #177dff);
}


.select2-container .select2-selection--single {
    box-sizing: border-box !important;
    cursor: pointer !important;
    display: block !important;
    height: 45px !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    /* padding: 6px !important; */
    font-size: 16px !important;
    border-radius: 10px !important;
    border: 2px solid #ebedf2 !important;
}

.select2-container .select2-selection--multiple {
    min-height: 45px !important;
    padding: 6px 2x !important;
    font-size: 16px !important;
    border-radius: 10px !important;
    border: 2px solid #ebedf2 !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    display: flex !important;
  }
  
/* 
.select2-container .select2-selection--single:focus {
    border: 2px solid #000000 !important;
} */

/* .select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border: 2px solid #000000 !important;
} */

.background-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 700"><defs><linearGradient id="bgGradient" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%232D9CDB;stop-opacity:1"/><stop offset="100%" style="stop-color:%2356CCF2;stop-opacity:1"/></linearGradient></defs><rect width="1440" height="700" fill="url(%23bgGradient)"/><circle cx="200" cy="100" r="50" fill="white" opacity="0.3"/><circle cx="1300" cy="600" r="70" fill="white" opacity="0.2"/><path d="M300 250 Q450 150, 600 250 T900 250" stroke="white" stroke-width="4" fill="none" opacity="0.4"/><path d="M100 500 Q300 350, 500 500 T900 500" stroke="white" stroke-width="3" fill="none" opacity="0.3"/><circle cx="720" cy="180" r="50" fill="white" opacity="0.2"/><circle cx="720" cy="180" r="25" fill="%232D9CDB"/></svg>');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

ul.no-dot-list {
    list-style: none;
    padding-left: 0; /* Menghilangkan indentasi bawaan */
    margin-left: 0;
}

/* Login */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: var(--bs-component-active-bg);
    min-height: 100vh;
}

.sign-up-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: var(--bs-component-active-bg);
    min-height: 100vh;
}

@media (max-width: 600px) {
    .word-text {
        display: none;
    }
    .login-container {
        padding: 0px 30px 0px 30px;
    }
    .sign-up-container {
        padding: 30px 30px 0px 30px;
    }
}

.required {
    color: red;
}


.custom-tooltip {
    position: relative;
    display: inline-block;
}

.custom-tooltip .tooltip-text {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    white-space: nowrap;

    position: absolute;
    z-index: 9999;
    bottom: 125%; /* muncul di atas elemen */
    left: 50%;
    transform: translateX(-50%);

    opacity: 0;
    transition: opacity 0.1s ease;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ============================================
   Members Page & Global Page Enhancements
   ============================================ */

/* Page Header Section */
.page-header-section {
    /* background: linear-gradient(135deg, rgba(23, 125, 255, 0.05) 0%, rgba(23, 125, 255, 0.02) 100%); */
    /* border-radius: 12px; */
    padding: 0.5rem 1.5rem 0.5rem 1.5rem;
    /* margin-bottom: 1.5rem; */
    /* border: 1px solid rgba(23, 125, 255, 0.1); */
}

.page-header-content {
    flex: 1;
}

/* Icon Circle for Page Headers */
.icon-circle {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.icon-circle i {
    font-size: 20px;
}

.icon-wrapper {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper-table {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(23, 125, 255, 0.1);
    border-radius: 50%;
    padding: 8px;
}

.icon-wrapper-table i {
    color: #177dff;
    font-size: 18px;
}

.page-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #177dff 0%, #36a3f7 100%);
    border-radius: 12px;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(23, 125, 255, 0.3);
}

/* Members Add Button */
.members-add-btn {
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(23, 125, 255, 0.2);
}

.members-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 125, 255, 0.3);
}

.members-add-btn:active {
    transform: translateY(0);
}

/* Members Table Card */
.members-table-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.members-table-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.members-table-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #e9ecef;
    padding: 1.25rem 1.5rem;
}

.members-table-header h5 {
    color: #2A2F5B;
}

/* Table Search Input */
.table-search-form {
    position: relative;
}

.table-search-input {
    min-width: 200px;
    border-radius: 8px;
    border: 1.5px solid #e9ecef;
    transition: all 0.2s ease;
}

.table-search-input:focus {
    border-color: var(--primary-color, #177dff);
    box-shadow: 0 0 0 3px rgba(23, 125, 255, 0.1);
}

.entries-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.entries-select:focus {
    border-color: var(--primary-color, #177dff);
    box-shadow: 0 0 0 3px rgba(23, 125, 255, 0.1);
}

/* Members Table */
.members-table {
    margin-top: 0 !important;
}

.members-table thead th {
    background: #f8f9fa;
    color: #2A2F5B;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.members-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f1f3;
}

.members-table tbody tr {
    transition: all 0.2s ease;
}

.members-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

.members-table tbody tr:last-child td {
    border-bottom: none;
}

/* Members Modal */
.members-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.members-modal-header {
    background: linear-gradient(135deg, #177dff 0%, #36a3f7 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.members-modal-header .modal-title {
    color: white;
}

.members-modal-header .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.members-modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.members-modal-header .btn-close:hover {
    opacity: 1;
}

.modal-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1.25rem;
    backdrop-filter: blur(10px);
}

.members-modal-body {
    padding: 2rem;
    background: #ffffff;
}

.members-modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.25rem 2rem;
    background: #f8f9fa;
}

.members-modal-footer .btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.members-modal-footer .btn-primary {
    box-shadow: 0 2px 8px rgba(23, 125, 255, 0.2);
}

.members-modal-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 125, 255, 0.3);
}

/* Alert Messages in Modal */
.bg-danger-light {
    background-color: rgba(243, 84, 93, 0.1);
    border-left: 4px solid #f3545d;
}

.bg-success-light {
    background-color: rgba(53, 205, 58, 0.1);
    border-left: 4px solid #35cd3a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header-section {
        padding: 1rem;
    }

    .page-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .members-table-header {
        padding: 1rem;
    }

    .members-table-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .table-search-input {
        min-width: 150px;
    }

    .members-modal-body {
        padding: 1.5rem;
    }

    .members-modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .members-modal-footer .btn {
        width: 100%;
    }
}

/* Breadcrumbs Enhancement */
.breadcrumbs {
    margin-top: 0.5rem;
}

.breadcrumbs li a {
    color: #6c757d;
    transition: color 0.2s ease;
}

.breadcrumbs li a:hover {
    color: var(--primary-color, #177dff);
}

/* Card Enhancements (Global) */
.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
    border-bottom: 2px solid #e9ecef;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
}

.card-body {
    padding: 1.5rem;
}

/* Badge Styles */
.badge.bg-gray,
.badge.bg-inactive {
background-color: #6c757d !important;
    color: #ffffff;
}

.badge.bg-gray {
    background-color: #6c757d !important;
    color: #ffffff;
}

/* Choices.js Dropdown Z-Index Fix - Ensure dropdown is always on top */
.choices__list--dropdown {
    z-index: 99999 !important;
    position: absolute !important;
}

/* Choices.js Dropdown in Modal - Higher z-index */
.modal .choices__list--dropdown,
.modal .choices[data-type*="select-one"] .choices__list--dropdown,
.modal.show .choices__list--dropdown {
    z-index: 99999 !important;
    position: absolute !important;
}

/* Choices.js Dropdown in Filter Modal */
.modal-filter .choices__list--dropdown,
#modal_filter_users .choices__list--dropdown,
#modal_filter_members .choices__list--dropdown,
#modal_filter_mentors .choices__list--dropdown,
#modal_filter_affiliators .choices__list--dropdown,
#modal_filter_services .choices__list--dropdown,
#modal_filter_packages .choices__list--dropdown,
#modal_filter_invoices .choices__list--dropdown,
#modal_filter_banks .choices__list--dropdown {
    z-index: 99999 !important;
    position: absolute !important;
}

/* Ensure dropdown is above all form elements and other Choices.js inputs */
body > .choices__list--dropdown {
    z-index: 99999 !important;
    position: absolute !important;
}

/* Fix for dropdown that might be inside form groups */
.form-group .choices__list--dropdown,
.form-floating .choices__list--dropdown {
    z-index: 99999 !important;
    position: absolute !important;
}

/* Ensure Choices.js container doesn't interfere with dropdown z-index */
.choices {
    position: relative;
    z-index: 1;
}

.choices.is-open {
    z-index: 99998 !important;
}

/* Ensure dropdown is above Choices.js input when open */
.choices.is-open .choices__list--dropdown {
    z-index: 99999 !important;
    position: absolute !important;
}
/* Choices.js in Input Group Fix */
.input-group > .choices {
    flex: 0 0 auto;
    width: auto;
    min-width: 140px;
    margin-bottom: 0;
}

.input-group > .choices .choices__inner {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

.input-group > .choices.is-focused .choices__inner,
.input-group > .choices.is-open .choices__inner {
    background-color: #ffffff;
    border-right-color: #dee2e6 !important; /* Keep border right color if focused? Or let it be */
}

.input-group > .form-control {
    border-left: 1px solid #dee2e6 !important;
}

.input-group > .choices + .form-control {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    margin-left: -1px;
}

/* Premium Input Group Look */
.input-group {
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    box-shadow: 0 4px 12px rgba(23, 125, 255, 0.1);
}

.input-group .form-control, 
.input-group .choices .choices__inner {
    border: 1.5px solid #eef0f2 !important;
}

.input-group .choices .choices__inner {
    border-right: none !important;
}

.input-group:focus-within .form-control,
.input-group:focus-within .choices .choices__inner {
    border-color: rgba(23, 125, 255, 0.4) !important;
}
