/* ═══════════════════════════════════════════════════
   Quran Sidebar - القرآن الكريم
   Professional Islamic-themed sidebar for browsing,
   searching and inserting Quran verses
   ═══════════════════════════════════════════════════ */

:root {
  --quran-green: #1a8a4a;
  --quran-green-dark: #0f6b37;
  --quran-green-light: #22c55e;
  --quran-gold: #c9a84c;
  --quran-gold-light: #e2c76a;
  --quran-cream: #faf6ed;
  --quran-pattern: rgba(26, 138, 74, 0.03);
}

.quran-sidebar-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: var(--z-overlay);
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
}

.quran-sidebar {
  width: 440px;
  height: 100%;
  min-height: 0;
  background: var(--bg-surface-solid);
  border-left: 1px solid var(--border-glass);
  box-shadow: var(--shadow-main);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--tr-smooth), width 0.3s ease;
  pointer-events: auto;
  z-index: var(--z-modal);
  position: relative;
  direction: ltr;
}

.quran-sidebar.rtl-mode {
  direction: rtl;
}

.quran-sidebar-container.open .quran-sidebar {
  transform: translateX(0);
}

.quran-sidebar-container.open {
  pointer-events: auto;
}

.quran-sidebar.expanded {
  width: 640px;
}

/* ============ CLOSE BUTTONS ============ */
.quran-expand-toggle {
  position: absolute;
  top: calc(50% - 28px);
  transform: translateY(-50%);
  left: -22px;
  width: 44px;
  height: 44px;
  background: var(--quran-green);
  border: 3px solid var(--bg-surface-solid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.quran-sidebar-container.open .quran-expand-toggle {
  opacity: 1;
  pointer-events: auto;
}

.quran-expand-toggle:hover {
  transform: translateY(-50%) scale(1.1) rotate(-10deg);
  background: var(--quran-green-dark);
  box-shadow: -6px 0 20px rgba(26, 138, 74, 0.4);
}

.quran-expand-toggle i {
  font-size: 1.1rem;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.quran-sidebar.expanded .quran-expand-toggle i {
  transform: rotate(360deg);
}

.quran-close-btn {
  position: absolute;
  top: calc(50% + 28px);
  transform: translateY(-50%);
  left: -22px;
  width: 44px;
  height: 44px;
  background: var(--bg-surface-solid);
  border: 2px solid var(--border-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.quran-sidebar-container.open .quran-close-btn {
  opacity: 1;
  pointer-events: auto;
}

.quran-close-btn:hover {
  transform: translateY(-50%) scale(1.1);
  background: var(--bg-item-hover);
  color: var(--text-main);
  border-color: var(--text-muted);
}

.quran-backdrop {
  display: none;
}

/* Prevent sidebar from blocking page scroll when closed */
.quran-sidebar-container:not(.open) {
  pointer-events: none;
  touch-action: none;
}

/* ============ HEADER ============ */
.quran-header {
  padding: 14px 18px;
  border-bottom: 2px solid var(--quran-green);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(26, 138, 74, 0.08), rgba(201, 168, 76, 0.05));
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  flex-shrink: 0;
}

.quran-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
}

.quran-title .quran-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--quran-green), var(--quran-green-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.quran-title-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.quran-title-arabic {
  font-family: 'Noto Naskh Arabic', 'Amiri', 'Traditional Arabic', serif;
  font-size: 0.95rem;
  color: var(--quran-green);
  direction: rtl;
}

.quran-title-english {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.quran-header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quran-header-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quran-header-btn:hover {
  background: var(--bg-item-hover);
  color: var(--quran-green);
}

.quran-reciter-select {
  background: var(--bg-item);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  max-width: 120px;
}

.quran-reciter-select:hover {
  border-color: var(--quran-green);
}

.quran-reciter-select:focus {
  border-color: var(--quran-green);
  box-shadow: 0 0 0 2px rgba(26, 138, 74, 0.1);
}

/* ============ TABS ============ */
.quran-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.quran-tab {
  flex: 1;
  padding: 10px 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: inherit;
}

.quran-tab i {
  font-size: 0.75rem;
}

.quran-tab:hover {
  color: var(--text-main);
  background: var(--bg-item-hover);
}

.quran-tab.active {
  color: var(--quran-green);
}

.quran-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--quran-green);
  border-radius: 2px 2px 0 0;
}

.quran-tab .arabic-label {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  font-size: 0.82rem;
  margin-right: 2px;
}

/* ============ SEARCH BAR ============ */
.quran-search-wrap {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.quran-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-item);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 6px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.quran-search:focus-within {
  border-color: var(--quran-green);
  box-shadow: 0 0 0 2px rgba(26, 138, 74, 0.1);
}

.quran-search-icon {
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.quran-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  padding: 4px 0;
}

.quran-search input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.quran-search-clear {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 4px;
  border-radius: 50%;
  display: none;
}

.quran-search-clear.visible {
  display: block;
}

.quran-search-clear:hover {
  color: var(--text-main);
}

/* ============ BODY ============ */
.quran-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  background: var(--bg-app);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
}

/* Allow vertical scrolling by touch on body */
.quran-body {
  touch-action: pan-y;
}

/* ============ SURAH LIST ============ */
.quran-surah-list {
  padding: 6px 0;
}

.quran-surah-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.quran-surah-item:hover {
  background: var(--bg-item-hover);
}

.quran-surah-item.active {
  background: rgba(26, 138, 74, 0.08);
  border-left: 3px solid var(--quran-green);
}

.quran-surah-number {
  width: 28px;
  height: 28px;
  background: var(--bg-item);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.quran-surah-item.active .quran-surah-number {
  background: var(--quran-green);
  color: white;
}

.quran-surah-info {
  flex: 1;
  min-width: 0;
}

.quran-surah-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quran-surah-arabic {
  font-family: 'Noto Naskh Arabic', 'Amiri', 'Traditional Arabic', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  direction: rtl;
}

.quran-surah-english {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.quran-surah-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.quran-surah-ayah-count {
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.quran-surah-revelation {
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(26, 138, 74, 0.1);
  color: var(--quran-green);
}

.quran-surah-chevron {
  color: var(--text-muted);
  font-size: 0.75rem;
  opacity: 0.4;
  transition: transform 0.2s;
}

.quran-surah-play-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(26, 138, 74, 0.08);
  color: var(--quran-green);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 4px;
  transition: all 0.2s;
}

.quran-surah-play-btn:hover {
  background: var(--quran-green);
  color: white;
  transform: scale(1.1);
}

.quran-surah-play-btn.playing {
  background: #ef4444;
  color: white;
  animation: quran-pulse 1.5s infinite;
}

.quran-surah-play-btn i {
  font-size: 0.6rem;
}

/* ============ AYAH VIEW ============ */
.quran-ayah-view {
  padding: 10px 14px;
}

.quran-ayah-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.quran-ayah-surah-name {
  font-weight: 700;
  color: var(--quran-green);
  font-size: 0.9rem;
}

.quran-ayah-surah-name .arabic {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  font-size: 1rem;
  direction: rtl;
  display: inline-block;
  margin-left: 6px;
}

.quran-actions-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.quran-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
}

.quran-btn-primary {
  background: var(--quran-green);
  color: white;
}

.quran-btn-primary:hover {
  background: var(--quran-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 138, 74, 0.3);
}

.quran-btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}

.quran-btn-outline:hover {
  background: var(--bg-item-hover);
  color: var(--text-main);
}

.quran-btn-sm {
  padding: 4px 10px;
  font-size: 0.7rem;
}

.quran-ayah-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quran-ayah-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.2s;
}

.quran-ayah-card:hover {
  border-color: rgba(26, 138, 74, 0.2);
  box-shadow: 0 2px 12px rgba(26, 138, 74, 0.06);
}

.quran-ayah-text {
  font-family: 'Noto Naskh Arabic', 'Amiri', 'Traditional Arabic', serif;
  font-size: 1.5rem;
  line-height: 2;
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  margin-bottom: 4px;
  word-spacing: 0.15em;
}

.quran-ayah-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(26, 138, 74, 0.1);
  color: var(--quran-green);
  font-size: 0.6rem;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

.quran-ayah-number-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(26, 138, 74, 0.1);
  color: var(--quran-green);
  font-size: 0.55rem;
  font-weight: 700;
  vertical-align: middle;
  margin: 0 4px;
}

.quran-ayah-translation {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--border-glass);
}

.quran-ayah-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  justify-content: flex-end;
}

.quran-ayah-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 3px;
}

.quran-ayah-action-btn:hover {
  background: var(--bg-item-hover);
  color: var(--quran-green);
}

.quran-ayah-action-btn.add-to-canvas {
  background: rgba(26, 138, 74, 0.1);
  color: var(--quran-green);
  font-weight: 600;
}

.quran-ayah-action-btn.add-to-canvas:hover {
  background: var(--quran-green);
  color: white;
}

.quran-repeat-btn,
.quran-autonext-btn {
  position: relative;
}

.quran-repeat-btn.active {
  background: var(--quran-green) !important;
  color: white !important;
}

.quran-autonext-btn.active {
  background: #6366f1 !important;
  color: white !important;
}

/* ============ SEARCH RESULTS ============ */
.quran-search-results {
  padding: 10px 14px;
}

.quran-search-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 6px 10px;
  background: var(--bg-item);
  border-radius: 8px;
}

.quran-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-muted);
  text-align: center;
}

.quran-empty-state i {
  font-size: 2.5rem;
  color: var(--text-muted);
  opacity: 0.2;
  margin-bottom: 12px;
}

.quran-empty-state p {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ============ TAFSEER ============ */
.quran-tafseer-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-main);
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  margin-top: 8px;
}

.quran-tafseer-text.arabic {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  direction: rtl;
  text-align: right;
  font-size: 0.95rem;
}

/* ============ AYAH RANGE SELECTOR ============ */
.quran-range-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.quran-range-selector label {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.quran-range-selector input {
  width: 60px;
  padding: 4px 8px;
  background: var(--bg-item);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 0.8rem;
  text-align: center;
  outline: none;
}

.quran-range-selector input:focus {
  border-color: var(--quran-green);
}

.quran-range-selector span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============ LOADING / SPINNER ============ */
.quran-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px;
  color: var(--quran-green);
  font-size: 0.85rem;
}

.quran-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(26, 138, 74, 0.2);
  border-top-color: var(--quran-green);
  border-radius: 50%;
  animation: quran-spin 0.6s linear infinite;
}

@keyframes quran-spin {
  to { transform: rotate(360deg); }
}

/* ============ BASMALAH ============ */
.quran-basmalah {
  font-family: 'Noto Naskh Arabic', 'Amiri', 'Traditional Arabic', serif;
  font-size: 1.1rem;
  color: var(--quran-green);
  direction: rtl;
  text-align: center;
  padding: 12px;
  opacity: 0.7;
  border-bottom: 1px solid var(--border-glass);
}

/* ============ CONTENT MODE CHIPS ============ */
.quran-content-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-surface);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.quran-chip {
  padding: 4px 12px;
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.quran-chip:hover {
  border-color: var(--quran-green);
  color: var(--quran-green);
  background: rgba(26, 138, 74, 0.06);
}

.quran-chip.active {
  background: var(--quran-green);
  border-color: var(--quran-green);
  color: white;
}

.quran-chip-hint {
  font-size: 0.62rem;
  color: var(--text-muted);
  opacity: 0.5;
  margin-left: auto;
  white-space: nowrap;
}

/* ============ RTL SUPPORT ============ */
.quran-sidebar.rtl-mode .quran-title {
  flex-direction: row-reverse;
}

.quran-sidebar.rtl-mode .quran-surah-item {
  flex-direction: row-reverse;
}

.quran-sidebar.rtl-mode .quran-search input {
  text-align: right;
}

.quran-sidebar.rtl-mode .quran-ayah-card-actions {
  justify-content: flex-start;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  .quran-sidebar {
    width: 100vw !important;
  }
  .quran-sidebar.expanded {
    width: 100vw !important;
  }
  .quran-expand-toggle,
  .quran-close-btn {
    display: none;
  }
  .quran-header {
    padding: 10px 14px;
  }
  .quran-ayah-text {
    font-size: 1.2rem;
  }
}

@media (pointer: coarse) {
  .quran-expand-toggle,
  .quran-close-btn {
    width: 48px;
    height: 48px;
  }
  .quran-surah-item {
    min-height: 48px;
  }
  .quran-tab {
    min-height: 44px;
    font-size: 0.82rem;
  }
}

/* ============ ANIMATION ============ */
@keyframes quranFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.quran-ayah-card {
  animation: quranFadeIn 0.25s ease-out;
}

/* ============ SCROLLBAR ============ */
.quran-body::-webkit-scrollbar {
  width: 8px;
}

.quran-body::-webkit-scrollbar-track {
  background: rgba(128, 128, 128, 0.06);
  border-radius: 4px;
}

.quran-body::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.3);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
  min-height: 40px;
}

.quran-body::-webkit-scrollbar-thumb:hover {
  background: rgba(128, 128, 128, 0.5);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* ============ TOAST ============ */
.quran-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--quran-green);
  color: white;
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(26, 138, 74, 0.3);
  z-index: 99999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.quran-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ SURAH DETAIL HEADER ============ */
.quran-surah-detail-header {
  background: linear-gradient(135deg, rgba(26, 138, 74, 0.06), rgba(201, 168, 76, 0.04));
  border-bottom: 1px solid var(--border-glass);
  padding: 14px 16px;
  text-align: center;
}

.quran-surah-detail-arabic {
  font-family: 'Noto Naskh Arabic', 'Amiri', 'Traditional Arabic', serif;
  font-size: 1.3rem;
  color: var(--quran-green);
  direction: rtl;
  margin-bottom: 4px;
}

.quran-surah-detail-english {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quran-surah-detail-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.quran-back-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.quran-back-btn:hover {
  background: var(--bg-item-hover);
  color: var(--text-main);
}

.quran-sidebar.rtl-mode .quran-back-btn {
  left: auto;
  right: 14px;
}

/* ============ PLAY BUTTON ============ */
.quran-play-btn {
  background: rgba(26, 138, 74, 0.08) !important;
  color: var(--quran-green) !important;
  border-radius: 50% !important;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  flex-shrink: 0;
}

.quran-play-btn:hover {
  background: var(--quran-green) !important;
  color: white !important;
  transform: scale(1.1);
}

.quran-play-btn.playing {
  background: #ef4444 !important;
  color: white !important;
  animation: quran-pulse 1.5s infinite;
}

.quran-play-btn i {
  font-size: 0.65rem;
}

@keyframes quran-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
