@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/amiri-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/amiri-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cairo-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/cairo-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/cairo-900.ttf') format('truetype');
}

:root {
  --primary-deep: #064e3b;
  --primary-light: #10b981;
  --accent-gold: #d97706;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --quran-font: 'Amiri', serif;
  --ui-font: 'Cairo', sans-serif;
  --radius-lg: 1rem;
  --radius-md: 0.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--ui-font);
  background-color: var(--bg-main);
  color: var(--text-main);
  direction: rtl;
  overflow-x: hidden;
}

/* Centering classes used in React */
.min-h-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.max-w-3xl {
  width: 100%;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dark .glass {
  background: rgba(15, 23, 42, 0.7);
}

.quran-text {
  font-family: var(--quran-font);
  font-size: 1.5rem;
  line-height: 2.2;
}

/* Utilities */
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1); }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.m-4 { margin: 1rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }

.bg-emerald-600 { background-color: #059669; }
.text-white { color: white; }
.text-emerald-900 { color: #064e3b; }
.text-emerald-600 { color: #059669; }
.text-emerald-800 { color: #065f46; }
.text-slate-500 { color: #64748b; }
.text-slate-400 { color: #94a3b8; }

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

.fade-slide-in {
  animation: fadeSlide 0.5s ease-out forwards;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.border-2 { border-width: 2px; }
.border-transparent { border-color: transparent; }
.border-emerald-500 { border-color: #10b981; }

.bg-white { background-color: white; }
.dark .bg-slate-800 { background-color: #1e293b; }
