/* Container untuk input floating */
.form-float {
    position: relative;
    margin-bottom: 10px;
    width: 100%;
}

/* Styling untuk input, select, dan Select2 */
.form-float input, .form-float select,
.select2-container .select2-selection--single {
    width: 100%;
    padding: 12px 8px;
    padding-top: 14px; /* Ruang untuk label */
    font-size: 14px;
    font-family: inherit;
    font-weight: 400; /* Bobot teks normal */
    border: 1px solid rgba(0, 0, 0, 0.42);
    border-radius: 4px;
    background-color: transparent;
    box-sizing: border-box; /* Pastikan padding termasuk tinggi */
    transition: border-color 0.3s, box-shadow 0.3s;
    appearance: none; /* Hilangkan default arrow pada select */
    height: 51px; /* Tinggi input yang proporsional */
}

/* Styling khusus untuk input[type="date"] */
.form-floating input[type="date"] {
    padding: 10px 12px;
}

/* Fokus: ubah warna border dan tambahkan shadow */
.form-float input:focus, .form-float select:focus {
    border-color: #1a73e8;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Styling untuk label */
.form-float label {
    position: absolute;
    top: 14px; /* Posisi awal label */
    left: 9px;
    font-size: 14px;
    font-weight: 400; /* Bobot teks normal */
    color: rgba(0, 0, 0, 0.6);
    background-color: white;
    padding: 0 4px;
    transition: all 0.2s ease;
    pointer-events: none;
}

/* Jika inputan difokuskan atau diisi, pindahkan label */
.form-float input:focus + label,
.form-float input:not(:placeholder-shown) + label,
.form-float select:focus + label,
.form-float select:not([value=""]):valid + label,
.form-floating input[type="date"]:focus + label,
.form-floating input[type="date"]:not(:placeholder-shown) + label
.select2-container .select2-selection--single:not([aria-activedescendant=""]) + label {
    top: -6px; /* Label naik ke atas */
    left: 8px;
    font-size: 12px; /* Label mengecil */
    color: #1a73e8; /* Warna biru */
}

/* Tinggi khusus untuk Select2 */
.select2-container .select2-selection--single {
    height: 42px; /* Samakan dengan input text */
    display: flex;
    align-items: center; /* Teks berada di tengah vertikal */
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.42);
}

/* Styling panah dropdown pada Select2 */
.select2-container .select2-selection__arrow {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Select custom arrow */
.form-float select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}

/* Styling for select arrow in older browsers */
.form-floating select::-ms-expand {
    display: none;
}

/* Checkbox */
.google-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    border: 2px solid rgba(0, 0, 0, 0.42);
    border-radius: 2px;
    appearance: none;
    background-color: #fff;
    transition: all 0.2s ease;
}

.google-checkbox input[type="checkbox"]:checked {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

/* Checkmark */
.google-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}



