/* 🔹 زر عائم محسّن */
.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatUp 2s infinite alternate ease-in-out;
}

/* 🔹 تأثير الحركة عند تحميل الصفحة */
@keyframes floatUp {
    0% { transform: translateY(px); }
    100% { transform: translateY(-20px); }
}

/* 🔹 تأثير عند التمرير */
.floating-button:hover {
    background: linear-gradient(135deg, #0056b3, #004494);
    transform: scale(1.1);
}

/* 🔹 تأثير Ripple عند الضغط */
.floating-button:active::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: ripple 0.4s ease-out;
}

@keyframes ripple {
    from { transform: scale(0); opacity: 1; }
    to { transform: scale(2); opacity: 0; }
}

/* 🔹 إخفاء الزر عند التمرير لأسفل */
.hidden-fab {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
/* 🔹 تصميم النافذة المنبثقة */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* 🔹 محتوى النافذة مع دمج أفضل الميزات */
.modal-content {
    width: 90%; /* تكبير العرض إلى 90% من الشاشة */
    max-width: 800px; /* تحديد أقصى عرض */
    max-height: 90vh; /* تحديد أقصى ارتفاع بالنسبة لارتفاع الشاشة */
    height: auto; /* السماح للارتفاع بأن يكون مرنًا */
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease-out, opacity 0.3s ease-in-out;
    overflow-y: auto; /* 🔹 تمكين التمرير العمودي عند الحاجة */
}

/* 🔹 زر الإغلاق */
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
    transition: color 0.3s;
}

.close-button:hover {
    color: red;
}

/* 🔹 عند تفعيل النافذة */
.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}
/* 🔹 نافذة إدخال الكمية */
.modal-item {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* 🔹 محتوى النافذة */
.modal-item-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 300px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease-out, opacity 0.3s ease-in-out;
}

/* 🔹 عند ظهور النافذة */
.modal-item.show {
    visibility: visible;
    opacity: 1;
}

.modal-item.show .modal-item-content {
    transform: scale(1);
    opacity: 1;
}

/* 🔹 زر الإغلاق */
.modal-item .close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
    transition: color 0.3s;
}

.modal-item .close-button:hover {
    color: red;
}

/* 🔹 حقل إدخال الكمية */
#quantity-input {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

/* 🔹 زر التأكيد */
.modal-item button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.modal-item button:hover {
    background: #0056b3;
}
.export-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.export-buttons button {
    background: #28a745;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

.export-buttons button:hover {
    background: #218838;
}
.user-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.user-info label {
    font-weight: bold;
}

.user-info input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

html {
    scroll-behavior: smooth; /* تمرير سلس على مستوى الموقع */
}

.modal-content {
    overflow-y: scroll;
    scrollbar-width: none; /* إخفاء الشريط لمتصفح Firefox */
    -ms-overflow-style: none; /* إخفاء الشريط لمتصفح Edge */
}

/* إخفاء شريط التمرير في WebKit */
.modal-content::-webkit-scrollbar {
    display: none;
}

#item-details {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    text-align: center;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

