body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  background-color: #ffffff;
  margin: 0;
}

/* الحاوية العامة */
.page-container {
  margin-right: 600px;
  padding: 40px 20px;
  max-width: 900px;
}

/* صندوق النموذج */
.form-box {
  background-color: #4a00ff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  margin-bottom: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* مفتاح اختيار الجهاز */
.device-switch {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.device-switch label {
  background-color: #ffffff;
  color: #4a00ff;
  border: 2px solid #4a00ff;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.device-switch input[type="radio"] {
  display: none;
}

.device-switch label:has(input[type="radio"]:checked) {
  background-color: #00c9a7;
  color: #fff;
  border-color: #00c9a7;
}

/* نموذج السرعة */
.speed-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.speed-form input {
  padding: 12px 15px;
  font-size: 16px;
  border-radius: 10px;
  border: none;
  outline: none;
  width: 60%;
  background-color: #c6f1f2;
  text-align: center;
}

.speed-form button {
  padding: 12px 20px;
  font-size: 16px;
  background-color: #ffffff;
  color: #000;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

.speed-form button:hover {
  background-color: #f0f0f0;
}

/* صندوق النتائج */
.result-box {
  background-color: #c6f1f2;
  padding: 20px;
  border-radius: 14px;
  border: 5px solid #4a00ff;
  box-shadow: inset 0 0 0 5px #c6f1f2;
  margin-top: 20px;
  overflow-x: auto;
}

/* بطاقات المعلومات */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.info-card {
  background: linear-gradient(to bottom right, #e0f7fa, #f0ffff);
  border: 1.5px solid #ccc;
  border-radius: 12px;
  padding: 20px;
  width: 220px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.info-card:hover {
  transform: translateY(-3px);
}

.info-card h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #1e00c9;
  border-bottom: 1px solid #1e00c9;
  padding-bottom: 4px;
}

.info-card p {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

/* تحميل */
.loading {
  font-size: 18px;
  color: #1e00c9;
  margin-top: 20px;
  text-align: center;
}

/* صور لقطات الشاشة */
#screenshots img {
  border-radius: 10px;
  margin: 5px;
  border: 1px solid #ccc;
}

.screenshot-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 15px;
}

.screenshot-strip img {
  max-width: 120px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.screenshot-strip img:hover {
  transform: scale(1.05);
}

/* العناوين الفرعية */
.section-title {
  font-size: 20px;
  color: #1e00c9;
  border-bottom: 2px solid #1e00c9;
  padding-bottom: 6px;
  margin-top: 40px;
  text-align: center;
}
