/* Mengatur display inline untuk radio button dan label */
.radio-buttons .icheck-success {
    display: inline-block;
    margin-right: 20px; /* Jarak antara radio button */
}
/* Mengatur label radio button */
.radio-buttons label {
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px; /* Jarak antara radio button dan teks label */
}
/* Optional: Mengatur gaya untuk label */
.radio-buttons label {
    font-weight: normal;
    color: #333;
}
/* Gaya umum untuk Select2 */
.select2-container {
    width: 100% !important;
}
.select2-container .select2-selection--single {
    height: 42px;
    border: 1px solid #ccc;
    border-radius: 25px;
    background-color: transparent;
    font-size: 15px;
    padding-left: 46px;
    color: #999;
    font-family: "Poppins-Medium";
    line-height: 42px;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    overflow: visible !important;
    line-height: 42px;
    padding-top: 0;
    padding-bottom: 0;
    color: #999;
}
/* Gaya saat dropdown terbuka */
.select2-container--open .select2-dropdown {
    width: 100%;
    border: 1px solid #ccc;
    border-color: #00bd75;
    padding-top: auto;
    padding-bottom: auto;
}
.select2-container .select2-results__option:hover {
    background-color: #00bd75;
    color: #fff;
    border-radius: 25px;
}
.select2-container .select2-results__option[aria-selected=true] {
    background-color: #999;
    color: #fff;
    border-radius: 25px;
}
.select2-container .select2-results__option[aria-selected=true]:hover {
    background-color: #00bd75;
    color: #fff;
    border-radius: 25px;
}
.select2-container--open.select2-container--below .select2-selection--single {
    border-radius: 25px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    border-color: #00bd75;
    border-bottom: none;
}
.select2-container--open.select2-container--above .select2-selection--single {
    border-radius: 25px;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    border-color: #00bd75;
    border-top: none;
}
.select2-container--open .select2-selection--single .select2-selection__arrow {
    background: transparent;
    border: none;
}
.select2-container .select2-search--dropdown .select2-search__field {
    border: 1px solid #ccc;
    outline: none;
    font-size: 15px;
    padding: auto;
    border-radius: 25px;
    height: 36px;
}
/* Gaya untuk opsi pertama saat ada kesalahan */
.select2-container .select2-selection--single .select2-selection__rendered.error {
    color: red;
    font-size: 12px; /* Ukuran font pesan kesalahan */
}
/* Gaya untuk opsi pertama yang digunakan sebagai pesan kesalahan */
.select2-container .select2-results__option.first-option-error {
    color: red;
    background-color: #f8d7da; /* Warna latar belakang saat ada kesalahan */
    border-radius: 25px;
}
/* Gaya saat tidak ada kesalahan */
.select2-container .select2-results__option.first-option {
    color: #999;
}

/*Gaya untuk header */
.sticky-header {
    background-color: #00bd75;
    color: #fff;
    position: sticky; /* Apply the sticky positioning */
    top: 0; /* Stick the element to the top of the viewport */
    z-index: 100; /* Ensure the navbar is above other content */
}
.sticky-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
.sticky-header ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.sticky-header li {
    margin-right: 20px;
}
.sticky-header a {
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease; /* Efek transisi untuk perubahan */
}
.sticky-header a:hover {
    color: #f5d742; /* Ganti dengan warna yang diinginkan */
    transform: scale(1.7); /* Memperbesar elemen sebesar 10% saat dihover */
}

/*Gaya untuk error input form */
input.placeholder-red::placeholder {
    color: red !important;
    font-size: 12px;
}


.radio-error-message-jk,
.radio-error-message-kps,
.radio-error-message-kelas {
    color: red;
    font-size: 0.85em;
    display: none;
    margin-top: 10px;
    margin-bottom: 10px;
}


/*style Upload Foto User*/
.error-message {
    color: red;
    font-size: 0.85em;
    margin-top: 4px;
    display: none;
}


.rata-tengah {
    text-align: center; /* Untuk label */
    display: flex;
    flex-direction: column; /* Untuk menata label di atas gambar */
    justify-content: flex-start; /* Atau center jika Anda ingin rata tengah vertikal juga */
    align-items: center; /* Untuk membuat elemen di dalamnya rata tengah horizontal */
}

.image_area {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    /* Tidak perlu margin: 0 auto; di sini karena align-items sudah mengatur tengah */
}

.framed-image {
    border: 3px solid #00bd75; /* Warna hijau default */
    border-radius: 15px;        /* Opsional, untuk sudut yang melengkung */
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px; /* Jika ada border-radius pada gambar */
}

.framed-image.error {
    border: 2px solid red;
}

.overlay {
    position: absolute;
    bottom: 0; /* Posisikan overlay di bagian bawah */
    left: 0;
    background-color: #FFFF7A80; /* Warna overlay Anda */
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* Transisi opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px; /* Sesuaikan dengan border-radius framed-image dikurangi border */
}

.image_area:hover .overlay {
    opacity: 0.8; /* Tingkat opacity overlay saat hover */
    cursor: pointer;
}

.overlay .text {
    color: white;       /* Warna ikon atau teks di dalam overlay */
    font-size: 2em;    /* Ukuran ikon atau teks */
}

.text {
    color: #00bd75;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
}
.cropper-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Sesuaikan dengan tinggi modal body */
    width: 100%; /* Sesuaikan dengan lebar modal body */
    position: relative; /* Pastikan posisinya relatif untuk pusat yang benar */
}

.cropper-container {
    max-width: 100%; /* Agar cropper responsif */
    max-height: 100%; /* Agar cropper responsif */
    margin: auto; /* Untuk pusatkan secara horizontal */
}

