/* ==============================
   آزمون‌ساز — استایل‌های مشترک UI
   مسیر: public/css/app-ui.css
   ============================== */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #bfdbfe;
  color: #1e3a8a;
}

/* کارت نرم */
.card-soft {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* دکمه اصلی */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: #2563eb;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px -4px rgba(37, 99, 235, 0.35);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
  background: #1d4ed8;
}

/* اینپوت یکدست */
.input-soft {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.input-soft:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* safe area برای ناو پایین موبایل */
.safe-area-pb {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* انیمیشن ورود صفحه */
@keyframes app-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes app-slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: app-fade-in 0.4s ease-out;
}
.animate-slide-up {
  animation: app-slide-up 0.35s ease-out;
}

/* مودال */
.modal-backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

/* انتخاب متن و جلوگیری از کپی فقط در public/css/exam-take.css و بر اساس تنظیم طراح کنترل می‌شود. */

/* ---------- Shared pagination ---------- */
.ds-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0.35rem 0;
}
.ds-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none !important;
  line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
a.ds-page:hover {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.ds-page.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff !important;
  font-weight: 700;
}
.ds-page.is-disabled {
  color: #cbd5e1;
  border-color: #f1f5f9;
  background: #fff;
  pointer-events: none;
}
.ds-page.is-dots {
  border-color: transparent;
  background: transparent;
  color: #94a3b8;
  min-width: 1.5rem;
}
