/* BAGIAN FOTO UPLOAD*/
/* Flex container to place the input layout and preview side by side */
.form-group-image-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

/* Forces input block to grow and fill empty space */
.input-col {
    flex: 1;
}

.input-col label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d3748;
}

/* Beautiful custom framing for the upload bar */
.form-control.file-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(66, 153, 225, 0.4);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #2d3748;
    box-sizing: border-box;
    cursor: pointer;
}

.form-control.file-input:focus {
    outline: none;
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

/* The circular avatar frame next to the input */
.image-avatar-frame {
    width: 150px;
    /*height: 150px; */
    border-radius: 5%;
    border: 2px solid #CFEBFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ensures image corners stay rounded */
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image scaling to cleanly fill the frame without distortion */
.image-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Clean stacked layout for mobile screens */
@media (max-width: 480px) {
    .form-group-image-preview {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 12px;
    }
}
