/* Hero Banner Refined Royal Blue Radial Glow */
.hero-banner {
  background: radial-gradient(circle at 80% 20%, #1e3a8a 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Nafis CTA Button with 2px bottom shadow border & depth */
.btn-nafis-cta {
  background-color: #fbbf24;
  border-bottom: 2px solid #d97706;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-nafis-cta:hover {
  background-color: #fcd34d;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
}

.btn-nafis-cta:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.2);
}

/* Unit Module Cards with warm defined border & soft layered drop shadow */
.unit-card {
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.06) !important;
}

.unit-card:hover {
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.1) !important;
}

/* Secondary Start Training Buttons (Soft Tinted Blue State) */
.btn-start-unit {
  background-color: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-start-unit:hover {
  background-color: #dbeafe !important;
  color: #1e40af !important;
  border-color: #93c5fd !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

/* Custom Math Font & Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(2deg);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes scaleUp {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Grid paper pattern for scratchpad */
.grid-paper {
  background-size: 20px 20px;
  background-image: 
    linear-gradient(to right, rgba(99, 102, 241, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
}

/* Math badge styles */
.math-inline {
  display: inline-flex;
  align-items: center;
  direction: ltr;
  unicode-bidi: isolate;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  background: #f1f5f9;
  color: #0f172a;
  padding: 0.1rem 0.45rem;
  border-radius: 0.45rem;
  border: 1px solid #e2e8f0;
  margin: 0 0.25rem;
}

.math-exp {
  vertical-align: super;
  font-size: 0.75em;
  font-weight: 800;
  color: #4f46e5;
  margin-left: 1px;
}

/* Option Button Animations & States */
.option-btn {
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.option-btn:active:not(:disabled) {
  transform: scale(0.985);
}

.option-btn.correct-state {
  background-color: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2) !important;
}

.option-btn.wrong-state {
  background-color: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.2) !important;
}

.option-btn.neutral-state {
  opacity: 0.6;
}

/* Print styling for certificate */
@media print {
  body * {
    visibility: hidden;
  }
  #printableCertificate, #printableCertificate * {
    visibility: visible;
  }
  #printableCertificate {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 40px;
    border: 4px solid #b45309;
    box-shadow: none;
  }
}