/* تنسيقات عامة وتحسين واجهة المستخدم */
body { 
  font-family: 'Arial', sans-serif; 
  direction: rtl; 
  text-align: center; 
  padding: 20px; 
  background: linear-gradient(135deg, #f3f4f6, #d1e0e0); /* تدرج لوني ناعم لخلفية الصفحة */
  color: #333; 
  margin: 0;
}

/* رأس الصفحة */
.header {
  background: linear-gradient(135deg, #0056b3, #006bb3); /* تدرج لوني من الأزرق الداكن إلى الأزرق الفاتح */
  color: white;
  padding: 20px;
  border-radius: 15px; /* جعل الحواف ناعمة */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); /* إضافة ظل ناعم */
  text-align: center;
  max-width: 90%; /* لتوسيع المساحة بشكل متناسق */
  margin: 0 auto; /* لتوسيط الهيدر */
}

.header h1 {
  margin: 0;
  font-size: 36px; /* جعل الخط أكبر قليلاً لزيادة الوضوح */
  font-weight: bold;
  letter-spacing: 1px; /* تحسين التباعد بين الحروف لجعل النص أكثر وضوحًا */
}

/* التصفح بين التبويبات */
.tabs {
  margin-bottom: 20px;
}

.btn { 
  padding: 15px 30px; 
  margin: 10px 5px;
  cursor: pointer; 
  border: none; 
  border-radius: 50px; /* جعل الحواف ناعمة */
  color: white; 
  font-size: 18px; 
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); /* الظل */
}

.btn:hover {
  transform: scale(1.1); /* تكبير الزر عند التمرير */
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2); /* زيادة الظل عند التمرير */
}

.btn-buy { 
  background: linear-gradient(45deg, #4CAF50, #81C784); /* تدرج لوني أخضر */
}
.btn-sell { 
  background: linear-gradient(45deg, #FF5722, #FF8A65); /* تدرج لوني برتقالي */
}

.btn-buy:hover { 
  background: linear-gradient(45deg, #388E3C, #66BB6A); /* تدرج أخضر عند التمرير */
}
.btn-sell:hover { 
  background: linear-gradient(45deg, #E64A19, #FF7043); /* تدرج برتقالي عند التمرير */
}

/* النص الذي يوضح نوع الصفحة */
.page-title {
  font-size: 24px;
  font-weight: bold;
  padding: 15px;
  margin-bottom: 20px;
  color: white;
  border-radius: 10px;
  text-align: center;
}

.buy-title {
  background-color: #4CAF50; /* خلفية خضراء */
}

.sell-title {
  background-color: #FF5722; /* خلفية برتقالية */
}

/* تنسيق للنماذج */
.form-container { 
  background-color: white; 
  border: 1px solid #0056b3; 
  border-radius: 10px; /* جعل الحواف ناعمة */
  padding: 20px; 
  max-width: 500px; 
  margin: 10px auto;
}

.form-group { 
  margin-bottom: 15px; 
  text-align: right; 
}

.form-group label { 
  display: block; 
  margin-bottom: 5px; 
  font-weight: bold; 
  color: #333;
}

.form-group input, .form-group select, .form-group textarea { 
  width: 100%; 
  padding: 10px; 
  border: 1px solid #ccc; 
  border-radius: 5px; /* جعل الحواف ناعمة */
  box-sizing: border-box; 
  font-size: 16px; 
}

.form-group textarea { 
  resize: vertical; 
  min-height: 100px; 
}

.form-actions { text-align: center; }

.form-actions .btn-cancel { 
  background-color: #6c757d; 
}

/* تنسيق العناصر المعروضة (الطلبات) */
.trade-item { 
  border: 1px solid #ccc; 
  border-radius: 10px; /* جعل الحواف ناعمة */
  padding: 10px; 
  margin-bottom: 10px; 
  background-color: #f1f3f5; 
  text-align: right; 
}

.whatsapp-link { 
  color: white; 
  text-decoration: none; 
  background-color: #007bff; 
  padding: 10px 20px; 
  display: inline-block; 
  border-radius: 5px; 
}

.whatsapp-link:hover { 
  background-color: #0056b3; 
}

/* مؤشرات التحميل */
.loading-indicator {
  display: none;
  font-size: 18px;
  color: #0056b3;
  margin: 10px 0;
}

/* شريط البحث */
.search-input {
  width: 80%;
  padding: 8px;
  margin: 10px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px; /* جعل الحواف ناعمة */
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
  .btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .trade-item {
    font-size: 14px;
  }
}