/* أنماط مخصصة وخطوط لطيفة لرياض الأطفال والتدخل المبكر */
.font-child {
  font-family: 'Baloo Bhaijaan 2', 'Readex Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* زر التبويب النشط وغير النشط */
.tab-btn {
  background-color: transparent;
  color: #475569;
  border: 2px solid transparent;
}
.tab-btn:hover {
  background-color: #f8fafc;
}
.tab-btn.active-tab {
  background-color: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.15);
}

.sheet-tab-btn {
  background-color: #f8fafc;
  color: #334155;
  border-color: #e2e8f0;
}
.sheet-tab-btn.active-sheet-tab {
  background-color: #ffe4e6;
  color: #9f1239;
  border-color: #fda4af;
  box-shadow: 0 2px 4px rgba(244, 63, 94, 0.15);
}

/* كروت الخيارات للأطفال: حواف ناعمة، ضغط فوري لطيف، إمكانية لمس ممتازة */
.choice-card {
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}
.choice-card:active {
  transform: scale(0.92);
}

/* حركات خفيفة ومحببة للطفل */
@keyframes bounce-gentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.animate-bounce-gentle {
  animation: bounce-gentle 2.2s infinite ease-in-out;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.animate-spin-slow {
  animation: spin-slow 16s linear infinite;
}

@keyframes pop {
  0% {
    transform: scale(0.75);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.animate-pop {
  animation: pop 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* تنسيقات الطباعة الدقيقة A4 لطابعات المدارس والمنازل */
@media print {
  /* إخفاء كافة عناصر واجهة التطبيق التفاعلية عند الطباعة */
  .no-print, header, nav, footer, button, #reward-modal, .tab-btn {
    display: none !important;
  }

  body {
    background-color: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #000000 !important;
  }

  main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #section-worksheets {
    display: block !important;
  }

  .tab-content:not(#section-worksheets) {
    display: none !important;
  }

  .a4-sheet {
    box-shadow: none !important;
    border: 2px dashed #94a3b8 !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    page-break-after: always;
    page-break-inside: avoid;
    padding: 1.5cm !important;
  }
}

/* لمسات إمكانية الوصول والتفاعل */
button:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}