/* أنماط مخصصة وهوية بصرية لمنصة دُلني | DULNI */

:root {
  --brand-orange: #F97316;
  --brand-pink: #EC4899;
  --brand-rose: #F43F5E;
}

/* تحسين تجربة التمرير وحفظ خطوط الواجهة */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

/* شاشات المنصة (Single Page View Switcher) */
.screen-view {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.screen-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* تنسيق مربعات إدخال كود التحقق OTP */
.otp-box {
  width: 48px;
  height: 54px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  font-family: monospace;
  background-color: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 14px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #0F172A;
}

.otp-box:focus {
  border-color: var(--brand-orange);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
  transform: translateY(-2px);
}

/* تبويبات الأيام في صفحة الجدول */
.day-tab {
  background-color: #FFFFFF;
  color: #64748B;
}

.day-tab:hover {
  background-color: #FFF7ED;
  color: var(--brand-orange);
}

.day-tab.active {
  background: linear-gradient(135deg, #F97316 0%, #EC4899 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 15px -2px rgba(249, 115, 22, 0.35);
}

/* بطاقة الهوية الجامعية */
.student-id-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.student-id-card:hover {
  transform: translateY(-3px) scale(1.01);
}

/* تحسين إمكانية الوصول والتفاعل */
button:active {
  transform: scale(0.98);
}

/* شريط تمرير ناعم ومخفي في التبويبات */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* المودالات المفتوحة */
.modal-backdrop.flex {
  display: flex !important;
  animation: modalFadeIn 0.2s ease-out forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}