/* موقعیت و استایل دکمه شناور */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #007bff; /* رنگ آبی */
    color: #fff; /* رنگ آیکون سفید */
    border: 5px solid #ffffff; /* حاشیه سفید */
    border-radius: 50%; /* دایره‌ای کردن دکمه */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px; /* سایز آیکون */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* انیمیشن تکان خوردن */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-1px); }
}

/* فعال کردن انیمیشن */
.floating-btn:hover,
.floating-btn:focus {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.floating-btn {
    animation: shake 0.3s ease-in-out infinite;
    animation-delay: 3s; /* اجرای انیمیشن هر 3 ثانیه یکبار */
}

.patient-form-wrapper {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.patient-form-wrapper h2 {
    text-align: center;
    margin-bottom: 20px;
}

.patient-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.patient-form-row .form-field {
    flex: 1 1 calc(50% - 20px);
    display: flex;
    flex-direction: column;
}

.patient-form-row .form-field label {
    font-weight: bold;
    margin-bottom: 5px;
}

.patient-form-row .form-field input,
.patient-form-row .form-field select,
.patient-form-row .form-field textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

.patient-form-wrapper img {
    display: inline-block;
    margin-right: 10px;
    margin-top: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.patient-form-wrapper .submit-button {
    text-align: center;
    margin-top: 20px;
}
.box-header {
    background-color: #007bff;
    color: #fff;
    padding: 5px 15px;
    font-size: 15px;
    border-radius: 4px 4px 0 0;
}
.box-content {
    border: 1px solid #007bff;
    padding: 15px;
    border-top: none; /* حذف مرز بالا برای یکپارچگی */
    border-radius: 0 0 4px 4px;
}
.images-box img {
    margin-right: 10px;
    border-radius: 4px;
    border: 1px solid #007bff;
}

.patient-form-wrapper .image-upload-box {
    border: 2px dashed #ced4da;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    background-color: #fafafa;
}

.patient-form-wrapper .image-upload-box p {
    color: gray;
    margin-top: 10px;
}

.patient-form-wrapper .img-thumbnail {
    max-width: 100px;
    border-radius: 4px;
    margin-right: 10px;
}
.patient-form-wrapper .patient_delete-image {
    width: 18px;
    height: 18px;
    color: white;
    background-color: red;
    font-size: 12px;
    border-radius: 50%;
    position: absolute;
    text-align: center;
    z-index: 1024;
    top: 5px;
    right: 0px; /* Changed from left to right for correct positioning */
    border: none; /* Optional: Remove border */
    cursor: pointer; /* Optional: Change cursor to pointer for better UX */
}
.patient-form-wrapper .patientFormImagePreview {
    width: calc(30% - 10px); /* Each image takes up to 30% width minus margins */
    overflow: hidden; /* Ensure no overflow */
    margin: 20px 5px; /* Margin around each image */
    display: inline-block; /* To allow images to be side by side */
    position: relative; /* For positioning delete button */
}

.patient-form-wrapper .patientFormImagePreview img {
    width: 100% !important; /* Make images responsive to container */
    height: auto; /* Maintain aspect ratio */
}