/* تصميم أزرق × أصفر بطابع المفكر */

.tes-pro {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
  direction: rtl;
  font-family: "Tajawal", "Noto Kufi Arabic", Arial, sans-serif;
}

/* الرأس */
.tes-head {
  background: #0a4b78;
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tes-head .timer {
  background: #ffd400;
  color: #000;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 10px;
  min-width: 85px;
  text-align: center;
}

/* شاشة الترحيب */
.tes-welcome {
  background: #0a4b78;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
  border-radius: 16px;
}

.tes-welcome h2 {
  font-size: 28px;
  margin: 0 0 10px;
}

.tes-welcome p {
  opacity: 0.95;
  margin-bottom: 20px;
}

/* الأزرار */
.tes-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.2s;
}

.tes-btn.primary {
  background: #ffd400;
  color: #000;
}

.tes-btn.primary:hover {
  background: #ffe85b;
}

.tes-btn.secondary {
  background: #eaf3ff;
  color: #0a4b78;
}

.tes-btn.secondary:hover {
  background: #d3e8ff;
}

/* محتوى السؤال */
.tes-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px;
}

.tes-qtext {
  font-size: 18px;
  margin-bottom: 12px;
}

.tes-choices {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.tes-choices li {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.tes-choices li:hover {
  background: #f6fbff;
}

.tes-choices li.sel {
  border-color: #0a4b78;
  box-shadow: 0 0 0 2px #0a4b7875 inset;
}

/* أزرار أسفل السؤال */
.tes-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* صفحة المراجعة */
.tes-review .info {
  margin-bottom: 12px;
}

.tes-badge {
  display: inline-block;
  background: #0a4b78;
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  margin-inline-start: 6px;
}

.tes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}

.tes-error,
.tes-pro-error {
  background: #fff3f3;
  color: #a00;
  border: 1px solid #ffcccc;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
/* ================================
   🔹 وضع ملء الشاشة الكامل للامتحان
   ================================ */

.tes-pro {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  background: #f3f8fc;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#tes-app {
  width: 100%;
  max-width: 1100px;
  min-height: 100vh;
  background: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.08);
  border-radius: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* إزالة أي هامش خارجي للصفحة */
body.page,
.page-content,
.site-main {
  margin: 0 !important;
  padding: 0 !important;
}

/* الصفحة نفسها تاخد العرض الكامل */
body {
  background: #f3f8fc !important;
}

/* في الموبايل */
@media (max-width: 768px) {
  #tes-app {
    padding: 15px;
  }
}

