/* إعدادات عامة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
  padding: 20px;
  direction: rtl;
  text-align: right;
}

/* العناوين */
h1, h2, h3 {
  margin-bottom: 15px;
  color: #2c3e50;
  text-align: center;
}

/* الروابط */
a {
  color: #007bff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* الأزرار */
button, input[type="submit"] {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 16px;
}
button:hover, input[type="submit"]:hover {
  background-color: #0056b3;
}

/* النماذج */
form {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  max-width: 600px;
  margin: 20px auto;
}
label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}
input, select, textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

/* الجداول */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: white;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}
th, td {
  padding: 14px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 16px;
}
th {
  background-color: #f0f0f0;
  color: #333;
}

/* بطاقات المنتجات */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 300px;
}
.card:hover {
  transform: translateY(-5px);
}
.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
}
.card h4 {
  margin-top: 10px;
  font-size: 18px;
}

/* تخطيط مرن للبطاقات */
.flex-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

/* القوائم */
ul {
  margin: 20px;
  padding: 0;
  list-style: none;
}
ul li {
  margin: 10px 0;
  font-size: 16px;
}

/* استجابة للأجهزة */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  h1, h2, h3 {
    font-size: 20px;
  }

  form {
    padding: 15px;
    margin: 10px;
  }

  input, select, textarea, button {
    font-size: 15px;
    padding: 10px;
  }

  table th, table td {
    font-size: 14px;
    padding: 8px;
  }

  .card {
    max-width: 100%;
  }

  .flex-grid {
    flex-direction: column;
    align-items: center;
  }
  
}


