/* نمط ورق دفتر الرياضيات المربعات المريح للعين */
.math-notebook-card {
  background-color: #FDFBF7;
  background-image: 
    linear-gradient(#EFE6D8 1px, transparent 1px),
    linear-gradient(90deg, #EFE6D8 1px, transparent 1px);
  background-size: 24px 24px;
}

/* تنسيقات خانات الحمل والمدخلات */
.carry-box {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.carry-box:focus {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(244, 114, 182, 0.25);
}

.ans-box {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.ans-box:focus {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(167, 139, 250, 0.3);
}

.num-cell {
  letter-spacing: 0.05em;
  font-feature-settings: "tnum";
}

/* وميض لطيف عند توجيه الطالبة لمنزلة معينة */
@keyframes highlightPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(236, 72, 153, 0); }
}

.highlight-focus {
  animation: highlightPulse 1.5s infinite;
  border-color: #EC4899 !important;
  background-color: #FDF2F8 !important;
}

/* حركات النوافذ المنبثقة */
@keyframes popIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.animate-pop {
  animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* تخصيص الطباعة للشهادة فقط */
@media print {
  body * {
    visibility: hidden;
  }
  .print-area, .print-area * {
    visibility: visible;
  }
  .print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: none;
  }
  .no-print {
    display: none !important;
  }
}