/* خلفية الصفحة */
body {
    margin: 0;
    padding: 0;
    background-image: url('1.jpg');
    background-size: cover;         /* يضمن أن الخلفية تغطي كامل الشاشة */
    background-position: center;    /* يضع الصورة في المنتصف */
    background-attachment: fixed;   /* يجعل الخلفية ثابتة أثناء التمرير */
    font-family: "Tajawal", sans-serif;
}

::-webkit-scrollbar {
    width: 4px; 
  }
  
::-webkit-scrollbar-track {
    background: #0d141d;
  }
  
::-webkit-scrollbar-thumb {
    background: #1d232b;
  }
  
::-webkit-scrollbar-thumb:hover {
    background: #007bff; 
}

/* النافبار */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px; /* زيادة حجم النافبار */
    background-color: rgba(0, 0, 0, 0.7); /* شبه شفاف */
    position: sticky;
    top: 0;
    z-index: 99;
    color: white;
    font-size: 12px; /* تكبير الخط */
}

/* القسم الأيسر */
.left-section {
    display: flex;
    gap: 10px; /* تحديد المسافة بين الأزرار */
}

.left-section .nav-button {
    padding: 10px 22px; /* تكبير الأزرار */
    background-color: rgba(0, 0, 0, 0.3); /* جعل الزر شفاف بنسبة 30% */
    border: 2.5px solid #007bff;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 16px; /* تكبير النص داخل الأزرار */
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-family: "Tajawal", sans-serif;
}

.left-section .nav-button:hover {
    background-color: #007bff; /* لون أزرق داكن عند التمرير */
    color: white;
}

/* القسم الأيمن */
.right-section {
    display: flex;
    align-items: center;
    gap: 8px; /* يمكن تقليل المسافة بين العناصر إذا لزم الأمر */
}

/* المحفظة */
.wallet-container {
    display: flex;
    align-items: center;
    gap: 8px; /* تحديد المسافة بين الرقم والأيقونة */
}

.wallet-icon {
    color: #007bff; /* لون أيقونة المحفظة باللون الأزرق */
    font-size: 25px;
}

.balance {
    font-size: 18px;
    color: white; /* النص يبقى أبيض */
    font-weight: bold; /* جعل الخط عريض */
}

/* اسم المستخدم والأيقونة */
.username {
    font-size: 20px;
    color: white;
    font-weight: bold; /* جعل الخط عريض */
    margin-right: 0px; /* إزالة المسافة بين اسم المستخدم والأيقونة */
}

/* الأيقونة */
.icon {
    color: #007bff; /* أيقونة زرقاء */
    font-size: 25px; /* تكبير الأيقونة */
    cursor: pointer;
    transition: 0.4s;
}
.icon:hover {
    transform: scale(1.1);
    transition: 0.4s;
}

.shopcontainer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.product-card {
    width: 300px;
    z-index: 50;
    border: 2px solid rgba(255, 255, 255, 0.3); /* إطار شفاف */
    border-radius: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* تحسين وضوح النص */
    text-align: center;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 25px rgba(255, 255, 255, 0.1); /* تأثير الظلال */
    transition: 0.3s ease;
}

#car {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0px;
}

#name {
    font-size: 1.3em;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* تحسين وضوح النص */
}

#price {
    font-size: 1.1em;
    color: #007bff;
    font-weight: bolder; /* تعتيم النص قليلاً لجعل السعر أكثر وضوحًا */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* تحسين وضوح النص */
}

#description {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9); /* زيادة وضوح النص */
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* تحسين وضوح النص */
}

#buybtn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    color: white;
    background-color: #007bff;
    border: 2px solid #007bff;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#buybtn:hover {
    background-color: rgba(0, 0, 0, 0); /* جعل الزر شفاف بنسبة 30% */
}

#buybtn:disabled {
    background-color: #007bff;
    cursor: not-allowed; /* مؤشر الفأرة يظهر كـ 'غير مسموح' */
    color: white;
}

.fixed-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 99;
  }
  
  .fixed-message .message-box button {
    background-color: rgba(0, 38, 92, 0.6); /* اللون الأزرق الداكن مع الشفافية */
    color: #007bff; /* لون النص أبيض */
    border: 1px solid #007bff; /* حدود الزر بلون أزرق داكن */
    padding: 9.5px 35px;
    font-size: 14px; /* حجم النص */
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s ease;
  }
  
  .fixed-message .message-box button:hover {
    background-color: #007bff; /* خلفية الزر تصبح داكنة عند التمرير */
    color: white;
  }
  
  .fixed-message .message-box h1 {
    color: #007bff; /* لون النص الأزرق */
    font-size: 28px; /* حجم النص */
    font-weight: bold; /* خط عريض */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9); /* تحسين وضوح النص */
    margin-bottom: 20px;
  }  

  .overlay {
    position: fixed; /* تجعل العنصر ثابتًا في الشاشة */
    top: 0;
    left: 0;
    width: 100%; /* عرض الطبقة كامل الشاشة */
    height: 100%; /* ارتفاع الطبقة كامل الشاشة */
    background-color: rgba(0, 0, 0, 0.7); /* لون الخلفية مع شفافية (يمكن تغيير اللون) */
    z-index: 0; /* تجعل الطبقة فوق باقي العناصر */
}
  
.overlay2{
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 1000;
    display: none;
}

/* Modal background overlay */
.modal {
    display: none; /* مخفي بشكل افتراضي */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* خلفية شفافة داكنة */
    z-index: 1000;
}

/* Modal content box */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #0056b3; /* أزرق أكثر جمالاً */
    padding: 20px;
    border-radius: 12px; /* زوايا دائرية أكثر نعومة */
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* ظل أكثر وضوحاً */
    max-width: 320px;
    width: 90%;
    animation: fadeIn 0.3s ease-in-out; /* حركة ظهور ناعمة */
}

/* Animation for fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Modal text */
#modalText {
    font-size: 16px;
    color: #f0f8ff; /* أزرق فاتح للنص */
    margin-bottom: 20px;
    font-family: 'Tajawal', sans-serif; /* خط مناسب */
    line-height: 1.6;
}

/* Modal button */
.modal-button {
    background-color: #0056b3; /* لون أزرق داكن للزر */
    color: #f0f8ff; /* نص أزرق فاتح */
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-button:hover {
    background-color: #003f7f; /* لون أغمق عند التمرير */
}

.modal-button:active {
    transform: scale(0.95); /* تأثير ضغط الزر */
}

/* Popup container */
.popup-message {
    position: fixed;
    top: 100px; /* قريب من أعلى الشاشة */
    left: 50%;
    transform: translateX(-50%); /* مركز أفقيًا */
    background: linear-gradient(135deg, #007bff, #0056b3); /* تدرج لون مميز */
    color: #fff; /* نص أبيض */
    padding: 15px 25px; /* مساحة داخلية مناسبة */
    border-radius: 10px; /* زوايا مستديرة */
    font-size: 16px; /* حجم الخط */
    font-family: 'Tajawal', sans-serif; /* خط أنيق */
    text-align: center; /* توسيط النص */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* ظل لطيف */
    opacity: 0; /* مخفي في البداية */
    pointer-events: none; /* يمنع التفاعل عند عدم الظهور */
    z-index: 1000; /* فوق باقي العناصر */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* يظهر العنصر */
.popup-message.show {
    opacity: 1; /* إظهار الرسالة */
    pointer-events: auto; /* السماح بالتفاعل */
    transform: translateX(-50%) translateY(0); /* تحريك طفيف */
}

/* حركة مميزة عند الظهور */
@keyframes slideIn {
    0% {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* الصندوق الرئيسي (form) */
.suggestion-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #007bff;
    padding: 15px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    width: 440px;
    height: 50px;
    z-index: 1000;
}

/* حقل الإدخال */
.suggestion-input {
    flex-grow: 1;
    padding: 12px;
    font-size: 16px;
    border: none; /* إزالة الحدود */
    background: transparent;
    color: white; /* النص باللون الأبيض */
    margin-right: 15px;
    transition: all 0.3s ease;
}

/* تغيير لون النص داخل الـ placeholder */
.suggestion-input::placeholder {
    color: white; /* تغيير لون نص الـ placeholder إلى الأبيض */
    opacity: 0.7; /* تحديد الشفافية (يمكنك ضبطها حسب الرغبة) */
}

/* تأثير عند التمرير على حقل الإدخال */
.suggestion-input:focus {
    outline: none;
}

/* زر الإرسال */
.submit-button {
    padding: 12px 25px;
    background-color: #3399ff;
    color: white;
    border: 3px solid #3399ff;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 16px;

}

.submit-button:hover {
    background-color: #007bff;
}


#submitButton:disabled {
    background-color: #3399ff;
    cursor: not-allowed; /* مؤشر الفأرة يظهر كـ 'غير مسموح' */
    color: white;
}

/* استعلامات الوسائط */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column; /* جعل الأقسام في عمود */
        align-items: center;
        text-align: center;
        padding: 10px 15px; /* تقليل الحواف */
    }

    .left-section {
        justify-content: center;
        gap: 6px;
        margin-bottom: 10px; /* إضافة مساحة بين الأزرار والقسم الأيمن */
    }

    .right-section {
        justify-content: center;
        gap: 4px; /* تقليل المسافات بين العناصر */
    }

    .wallet-container {
        justify-content: center;
        gap: 4px; /* تقليل المسافات */
    }
}

@media (max-width: 480px) {
    .navbar {
        font-size: 10px; /* تصغير حجم الخط */
    }

    .left-section .nav-button {
        padding: 6px 12px; /* تصغير الأزرار أكثر */
        font-size: 12px;
    }

    .wallet-icon,
    .icon {
        font-size: 18px; /* تقليل حجم الأيقونات أكثر */
    }

    .balance,
    .username {
        font-size: 14px; /* تصغير النصوص قليلاً */
    }
}