@font-face {
  font-family: 'noorehira';
  src: url('./fonts/noorehira.woff2') format('woff2'),
      url('./fonts/noorehira.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: '__omar_8a198f';
  src: local('__omar_8a198f'),
       local('__omar_Fallback_8a198f'),
       url('./fonts/noorehira.woff2') format('woff2'),
       url('./fonts/noorehira.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: '__omar_Fallback_8a198f';
  src: local('__omar_Fallback_8a198f'),
       local('__omar_8a198f'),
       url('./fonts/noorehira.woff2') format('woff2'),
       url('./fonts/noorehira.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
.quran-text-arabic {
  font-family: 'noorehira', 'KFGQPC Uthman Taha Naskh', serif;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.9;
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
  direction: rtl;
  text-align: right;
}
.quran-text-arabic--large {
  font-size: 25px;
  line-height: 65px;
}
.quran-surah-ayah--meta{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
  min-width: 0;
}

.quran-surah-ayah-play{
  margin-top: 0;
  cursor: pointer;
  width: 28px;
  height: 28px;
  opacity: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e6e7ea;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.quran-surah-ayah-play:hover{
  background: rgba(10,125,56,0.06);
  border-color: #dfe3e8;
}

.quran-surah-ayah-play svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Bookmark button styling */
.quran-surah-ayah-bookmark {
  cursor: pointer;
  width: 28px;
  height: 28px;
  color: #888;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #e6e7ea;
  border-radius: 50%;
  background: #fff;
}
.quran-surah-ayah-bookmark:hover {
  color: #ffbf00;
  background: rgba(255,191,0,0.08);
  border-color: #e6cf8a;
}
.quran-surah-ayah-bookmark.active {
  color: #ffbf00;
  background: rgba(255,191,0,0.12);
  border-color: #e6cf8a;
}

.qita-note-indicator {
  cursor: pointer;
  width: 28px;
  height: 28px;
  color: #4b5563;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #e6e7ea;
  border-radius: 50%;
  background: #fff;
  font-size: 14px;
}

.qita-note-indicator.has-note {
  color: #0a7d38;
  border-color: #9fd8b4;
  background: #edf9f1;
}

.qita-note-indicator:hover {
  background: rgba(10,125,56,0.08);
  color: #0a7d38;
}

/* Circular icon buttons feel */
.quran-surah-ayah-play,
.quran-surah-ayah-bookmark,
.qita-note-indicator{
  border-radius: 50%;
}

.quran-surah-ayah-play:focus-visible,
.quran-surah-ayah-bookmark:focus-visible,
.qita-note-indicator:focus-visible{
  outline: 2px solid #0a7d38;
  outline-offset: 2px;
}

.quran-surah-ayah-play:hover,
.quran-surah-ayah-bookmark:hover,
.qita-note-indicator:hover{
  background: rgba(10,125,56,0.08);
}

/* Ensure icons don't shrink */
.quran-surah-ayah--meta svg {
  width: 100%;
  height: 100%;
}

.ayah-svg{
  background-image: url('../images/bullet.svg');
  display: inline-block;
  width: 25px;
  height: 25px;
  background-size: cover;
  margin-left: 10px;
  vertical-align: top;
  margin-top: 30px;
}

.quran-audio-player{
  opacity: 0;
}
.quran-surah-name--wrapper{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
h2.quran-surah-name--arabic{
width: auto;
}
.dwl-surah-toggle {
  margin-right: auto;
  cursor: pointer;
  background: transparent;
  color: #000;
  border: none;
  font-size: 20px;
  outline: none;
  padding: 0;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.dwl-surah-toggle:hover,.dwl-surah-toggle:focus {
  outline: none;
  background: none;
  color: #000;
  opacity: 0.9;
}
.dwl-surah-toggle .quran-surah-name--english {
  margin-right: 5px;
}
.dwl-surah-toggle *{
  pointer-events: none;
}

/* Surah Dropdown Menu */
.surah-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #d0d3d8;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 8px;
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  min-width: 300px;
}

.surah-dropdown-menu[hidden] {
  display: none;
}

.surah-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-left: 3px solid transparent;
}

.surah-dropdown-item:hover {
  background-color: rgba(10, 125, 56, 0.08);
  color: #0a7d38;
  border-left-color: #0a7d38;
}

.surah-dropdown-item.active {
  background-color: rgba(10, 125, 56, 0.15);
  color: #0a7d38;
  border-left-color: #0a7d38;
  font-weight: 600;
}

.offacnvas-area {
  position: fixed;
  top: 0;
  left: -101%;
  background: rgba(0,0,0, 0.4);
  width: 100%;
  height: 100%;
  z-index: 99999;
  transition: all 0.1s ease;
}

.offacnvas-area.active-offcanvas{
  left: 0;
}

button.dwl-surah-offcanvas-close {
  border: 0 none;
  width: 25px;
  display: block;
  padding: 0;
  background: transparent;
  height: 24px;
  z-index: 99999;
  cursor: pointer;
  margin-right: auto;
  margin-bottom: 50px;
}

.dwl-surah-offcanvas-close *{
  pointer-events: none;
}

button.dwl-surah-offcanvas-close span {
  width: 100%;
  height: 2px;
  background: #000;
  transform: rotate(40deg);
  display: block;
  transform-origin: top;
}

button.dwl-surah-offcanvas-close span:last-child {
  transform: rotate(-42deg) translate(0px, -2px);
}

.dwl-quran-area .offcanvas-content-wrap {
  background: #fff;
  width: 320px;
  margin-right: auto;
  padding: 50px 20px;
  height: 100%;
  overflow: auto;
}


ul.dwl-surah-list {
  list-style: none;
  height: 100%;
  overflow-x: auto;
  margin: 0;
  padding: 0;
}

ul.dwl-surah-list button {
  padding: 14px 18px;
  background: transparent;
  border-radius: 12px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border: none;
  font-weight: 500;
  color: #000;
  margin: 0;
  cursor: pointer;
  display: flex;
  width: 100%;
  text-align: left;
  flex-direction: column;
  gap: 8px;
}
.dwl-surah-list .dwl-surah-name-btn.active,
.dwl-surah-list .dwl-surah-name-btn:hover {
  background-color: #f3f3f3;
}
.dwl-surah-list .dwl-surah-name-btn:focus {
  outline: 2px solid #0a7d38;
  outline-offset: 3px;
}
.dwl-surah-list .dwl-surah-name-btn *{
  pointer-events: none;
}
.dwl-surah-list .dwl-surah--number {
  font-family: 'noorehira', 'KFGQPC Uthman Taha Naskh', serif;
  font-size: 15px;
  font-weight: 600;
  background: #fff;
  color: #333;
  border-radius: 50%;
  border: 1px solid #ddd;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dwl-surah--english-name {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dwl-surah--translation {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}
.dwl-surah--arabic-name.quran-text-arabic {
  font-size: 21px;
  font-weight: 600;
  color: #0a7d38;
  line-height: 1.5;
  text-align: right;
  direction: rtl;
}

/* Surah listing */
.quran-surah-ayah--text {
    margin-top: 20px;
}
.dwl-quran-surah{
  display: none;
}
.dwl-quran-surah.active{
  display: block;
}
.quran-surah-ayah--number {
  font-family: 'noorehira', 'KFGQPC Uthman Taha Naskh', serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 10px;
  background: #f2f3f5;
  color: #333;
  border-radius: 999px;
  border: 1px solid #e6e7ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
}
.quran-surah-ayah--wrapper {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: box-shadow .2s ease, transform .2s ease;
  min-width: 0;
  overflow: visible;
}
.quran-surah-ayah--wrapper:hover{
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
#quran-audio-player{
  opacity: 0;
}
.dwl-quran-single-surah-wrapper .dwl-surah-toggle span:last-child{

  display: none;

}

/* Single Ayah*/

.dwl-quran-ayah-wrapper .quran-surah-ayah--meta{
  justify-content: normal;
}
.dwl-quran-ayah-wrapper .quran-surah-ayah--meta .quran-surah-name--english,
.dwl-quran-ayah-wrapper .quran-surah-ayah--meta .quran-surah-ayah--number{
  width: auto;
  flex: 1 1 220px;
  min-width: 0;
}
.dwl-quran-ayah-wrapper .quran-surah-name--english{
  font-weight: bold;
}
.dwl-quran-ayah-wrapper .quran-surah-ayah--wrapper {
  padding: 15px 20px;
}

/* Translation line (non‑Arabic) */
.quran-surah-ayah--translation,
.quran-surah-ayah--translation .quran-single-ayah{
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  font-weight: 400;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.quran-surah-ayah--translation {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  background: #fbfcfe;
  min-width: 0;
}

.quran-ayah-context {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #e6ebf0;
  border-radius: 8px;
  background: #f9fbfd;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.quran-ayah-context__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a7d38;
  margin-bottom: 8px;
}

.quran-ayah-context__body {
  color: #2b2f33;
  font-size: 14px;
  line-height: 1.65;
}

.quran-ayah-context.is-loading .quran-ayah-context__body {
  color: #65707c;
}

.quran-word-meaning {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  background: #fcfdff;
  min-width: 0;
}

.quran-word-meaning__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a7d38;
  margin-bottom: 8px;
}

.quran-word-meaning__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.quran-word-meaning__item {
  border: 1px solid #e8edf3;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
}

.quran-word-meaning__arabic {
  font-size: 20px;
  line-height: 1.5;
  text-align: right;
  direction: rtl;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.quran-word-meaning__translation,
.quran-word-meaning__body {
  font-size: 13px;
  line-height: 1.5;
  color: #2f3338;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.quran-word-meaning.is-loading .quran-word-meaning__body {
  color: #65707c;
}

.quran-pronunciation {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  background: #fbfcfe;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.quran-pronunciation__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a7d38;
  margin-bottom: 8px;
}

.quran-pronunciation__body {
  font-size: 14px;
  line-height: 1.65;
  color: #2d3136;
}

.quran-pronunciation.is-loading .quran-pronunciation__body {
  color: #65707c;
}

/* Typography normalization for non-Arabic reading content */
.quran-surah-ayah--translation,
.quran-surah-ayah--translation .quran-single-ayah,
.quran-ayah-context__body,
.quran-pronunciation__body,
.quran-word-meaning__translation,
.quran-word-meaning__body,
.qita-tafseer-content,
.qita-tafseer-meta,
.qita-notes-warning,
.qita-notes-text,
.qita-last-read-card__meta {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  text-align: start;
  text-justify: auto;
}

.quran-ayah-context__title,
.quran-word-meaning__title,
.quran-pronunciation__title,
.qita-last-read-card__title,
#qita-tafseer-title,
#qita-notes-title {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.3;
  font-size: 12px;
  text-transform: capitalize;
  letter-spacing: normal;
}

.quran-surah-name--english,
.dwl-surah--english-name,
.qita-last-read-card__title,
.qita-last-read-card__btn {
  text-transform: capitalize;
}

/* Normalize heading hierarchy inside API-rendered HTML */
.quran-ayah-context__body h1,
.quran-ayah-context__body h2,
.quran-ayah-context__body h3,
.quran-ayah-context__body h4,
.quran-ayah-context__body h5,
.quran-ayah-context__body h6,
.qita-tafseer-content h1,
.qita-tafseer-content h2,
.qita-tafseer-content h3,
.qita-tafseer-content h4,
.qita-tafseer-content h5,
.qita-tafseer-content h6 {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  margin: 0 0 10px;
  text-transform: capitalize;
}

.quran-ayah-context__body p,
.quran-ayah-context__body li,
.qita-tafseer-content p,
.qita-tafseer-content li {
  margin: 0 0 10px;
  line-height: 1.6;
}

/* Footer player bar polish */
#qita-player-bar{
  backdrop-filter: saturate(140%) blur(6px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
#qita-player-bar button{
  border-radius: 6px;
}
#qita-player-bar #qita-seek{
  height: 4px;
}

@media (max-width: 600px) {
  .quran-surah-ayah--wrapper { padding: 14px 16px; }
  .quran-surah-ayah-play, .quran-surah-ayah-bookmark { width: 24px; height: 24px; }
  .quran-surah-ayah--number { font-size: 16px; padding: 3px 8px; }
  .quran-text-arabic { font-size: clamp(24px, 6vw, 34px); line-height: 1.8; }
}

/* Improved Surah list layout and alignment for Surah names */
.dwl-surah-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
}

.dwl-surah--meta {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 4px;
  min-width: 0;
}

/* Translation Selector Styles */
.dwl-translation-selector-wrap {
  padding: 12px 16px;
  background: #f5f7fa;
  border-bottom: 1px solid #e0e3e8;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dwl-translation-selector-wrap label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  margin: 0;
}

.dwl-translation-selector-wrap select {
  padding: 6px 10px;
  border: 1px solid #d0d3d8;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dwl-translation-selector-wrap select:hover {
  border-color: #0a7d38;
}

.dwl-translation-selector-wrap select:focus {
  outline: none;
  border-color: #0a7d38;
  box-shadow: 0 0 0 3px rgba(10, 125, 56, 0.1);
}

.dwl-surah-selector {
  margin-right: 10px;
  min-width: 250px;
}

.dwl-ayah-selector {
  min-width: 150px;
}

/* Font Size Settings */
.dwl-settings-container {
  margin-left: auto;
  position: relative;
}

@media (max-width: 768px) {
  .dwl-translation-selector-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .dwl-translation-selector-wrap select {
    width: 100%;
    min-width: 0;
  }

  .dwl-surah-selector {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin-right: 0;
  }

  .dwl-ayah-selector {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }

  #dwl-translation-select {
    grid-column: 2;
    grid-row: 2;
    min-width: 120px;
  }

  .dwl-settings-container {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    justify-self: end;
  }
}

.dwl-settings-button {
  background: #fff;
  border: 1px solid #d0d3d8;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.dwl-settings-button:hover {
  border-color: #0a7d38;
  background: rgba(10, 125, 56, 0.05);
}

.dwl-settings-button:focus {
  outline: none;
  border-color: #0a7d38;
  box-shadow: 0 0 0 3px rgba(10, 125, 56, 0.1);
}

.dwl-settings-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #d0d3d8;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 16px;
  margin-top: 8px;
  min-width: 280px;
  z-index: 1000;
}

@media (max-width: 768px) {
  body.qita-settings-mobile-open {
    overflow: hidden;
  }

  body.qita-settings-mobile-open .dwl-settings-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: min(360px, calc(100vw - 24px));
    min-width: 0;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin-top: 0;
    z-index: 100001;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 0 0 9999px rgba(0, 0, 0, 0.35);
  }
}

.dwl-settings-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}

.dwl-settings-option label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  margin: 0;
}

.dwl-settings-option .dwl-toggle-label {
  flex: 1;
}

.dwl-font-size-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.dwl-font-size-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #e0e3e8;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  accent-color: #0a7d38;
}

.dwl-font-size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0a7d38;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 3px rgba(10, 125, 56, 0.1);
}

.dwl-font-size-slider::-webkit-slider-thumb:hover {
  background: #087d3a;
  box-shadow: 0 0 0 6px rgba(10, 125, 56, 0.15);
}

.dwl-font-size-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0a7d38;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 3px rgba(10, 125, 56, 0.1);
}

.dwl-font-size-slider::-moz-range-thumb:hover {
  background: #087d3a;
  box-shadow: 0 0 0 6px rgba(10, 125, 56, 0.15);
}

.dwl-font-size-value {
  font-weight: 600;
  color: #0a7d38;
  font-size: 14px;
  min-width: 45px;
  text-align: right;
}

/* Ayat Menu */
.ayat-menu-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  flex-shrink: 0;
  z-index: 2;
}

.ayat-menu-container.is-open {
  z-index: 12050;
}

.ayat-menu-btn {
  background: #0a7d38;
  border: 1px solid #0a7d38;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 18px;
  cursor: pointer;
  color: #fff;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  line-height: 1;
}

.ayat-menu-btn:hover {
  border-color: #086d2f;
  background: #086d2f;
  color: #fff;
}

.ayat-menu-btn:focus {
  outline: none;
  border-color: #0a7d38;
  box-shadow: 0 0 0 3px rgba(10, 125, 56, 0.1);
}

.ayat-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #d0d3d8;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 4px;
  z-index: 12060;
  min-width: 260px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .ayat-menu-dropdown {
    min-width: 220px;
    max-width: min(86vw, 320px);
  }
}

.ayat-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ayat-menu-item__icon {
  width: 18px;
  min-width: 18px;
  text-align: center;
  font-size: 14px;
  opacity: 0.9;
}

.ayat-menu-item__label {
  flex: 1;
}

.ayat-menu-item:hover {
  background-color: rgba(10, 125, 56, 0.08);
  color: #0a7d38;
}

.ayat-menu-item:focus {
  outline: none;
  background-color: rgba(10, 125, 56, 0.12);
  color: #0a7d38;
}

/* Copy Notification */
.ayat-copy-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #0a7d38;
  color: #fff;
  padding: 16px 24px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  font-weight: 600;
  font-size: 14px;
  pointer-events: none;
  animation: slideIn 0.3s ease-in-out, slideOut 0.3s ease-in-out 1.7s forwards;
}

/* Tafseer Modal */
.qita-modal-open {
  overflow: hidden;
}

.qita-tafseer-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
}

.qita-tafseer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.qita-tafseer-dialog {
  position: relative;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  padding: 18px 20px 20px;
  overflow: auto;
}

.qita-tafseer-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid #ccd0d5;
  border-radius: 6px;
  background: #fff;
  color: #333;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.qita-tafseer-meta {
  color: #666;
  font-size: 13px;
  margin: 6px 0 14px;
}

.qita-tafseer-content {
  color: #222;
  line-height: 1.7;
  font-size: 15px;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.qita-tafseer-content h1,
.qita-tafseer-content h2,
.qita-tafseer-content h3 {
  margin-top: 0;
}

.qita-notes-warning {
  margin: 8px 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #7a2e2e;
  background: #fff5f5;
  border: 1px solid #ffd9d9;
  border-radius: 8px;
  padding: 8px 10px;
}

.qita-notes-text {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  border: 1px solid #d0d6de;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #222;
}

@media (max-width: 768px) {
  .quran-surah-ayah--wrapper {
    padding: 14px;
  }

  .quran-surah-ayah--translation,
  .quran-ayah-context,
  .quran-word-meaning,
  .quran-pronunciation {
    padding: 10px 12px;
  }
}

.qita-notes-text:focus {
  outline: none;
  border-color: #0a7d38;
  box-shadow: 0 0 0 3px rgba(10, 125, 56, 0.12);
}

.qita-notes-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.qita-notes-btn {
  border: 1px solid #c7ccd4;
  background: #fff;
  color: #2b3440;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.qita-notes-btn:hover {
  background: #f7f9fc;
}

.qita-notes-btn--primary {
  border-color: #0a7d38;
  background: #0a7d38;
  color: #fff;
}

.qita-notes-btn--primary:hover {
  background: #086d2f;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
}

/* Settings Divider */
.dwl-settings-divider {
  height: 1px;
  background: #e0e3e8;
  margin: 10px 0;
}

/* Toggle Switch */
.dwl-toggle-label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  margin: 0;
  flex: 1;
}

.dwl-toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  cursor: pointer;
}

.dwl-toggle-checkbox {
  opacity: 0;
  width: 0;
  height: 0;
}

.dwl-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.dwl-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.dwl-toggle-checkbox:checked + .dwl-toggle-slider {
  background-color: #0a7d38;
}

.dwl-toggle-checkbox:checked + .dwl-toggle-slider:before {
  transform: translateX(24px);
}

.dwl-toggle-checkbox:focus + .dwl-toggle-slider {
  box-shadow: 0 0 0 3px rgba(10, 125, 56, 0.1);
}

/* Ayat Signal */
.quran-ayat-signal {
  text-align: center;
  padding: 8px 0;
  font-size: 20px;
  color: #0a7d38;
  user-select: none;
}

/* Isyarat (Sign Language) Styling */
.quran-word-container {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0 2px;
}

.quran-word {
  display: inline;
  line-height: 1.9;
}

.isyarat-sign-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
}

.isyarat-sign {
  width: 100%;
  height: 100%;
  max-width: 40px;
  max-height: 40px;
}

.isyarat-sign-placeholder {
  width: 100%;
  height: 100%;
  max-width: 40px;
  max-height: 40px;
  opacity: 0.6;
}

/* Hide isyarat by default */
.isyarat-sign-container.hidden {
  display: none !important;
}

/* Adjust word spacing for isyarat */
.quran-text-arabic.isyarat-enabled {
  word-spacing: 8px;
}

/* Tajweed Color Coding */
.tajweed-ghunnah {
  background-color: rgba(255, 193, 7, 0.2);
  border-bottom: 2px solid #FFC107;
}

.tajweed-ikhfa {
  background-color: rgba(244, 67, 54, 0.2);
  border-bottom: 2px solid #F44336;
}

.tajweed-idhar {
  background-color: rgba(76, 175, 80, 0.2);
  border-bottom: 2px solid #4CAF50;
}

.tajweed-qalqalah {
  background-color: rgba(33, 150, 243, 0.2);
  border-bottom: 2px solid #2196F3;
}

.tajweed-madd {
  background-color: rgba(156, 39, 176, 0.2);
  border-bottom: 2px solid #9C27B0;
}

.tajweed-raum {
  background-color: rgba(233, 30, 99, 0.2);
  border-bottom: 2px solid #E91E63;
}

.tajweed-imalah {
  background-color: rgba(0, 188, 212, 0.2);
  border-bottom: 2px solid #00BCD4;
}

.tajweed-hamza-wasl {
  background-color: rgba(255, 152, 0, 0.2);
  border-bottom: 2px solid #FF9800;
}

.tajweed-sukun {
  background-color: rgba(96, 125, 139, 0.2);
  border-bottom: 2px solid #607D8B;
}

.tajweed-shadda {
  background-color: rgba(139, 195, 74, 0.2);
  border-bottom: 2px solid #8BC34A;
}

/* Tajweed info tooltip */
.tajweed-tooltip {
  position: relative;
  cursor: help;
  border-bottom: 1px dashed currentColor;
}

.tajweed-tooltip:hover::after {
  content: attr(data-tajweed);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #0a7d38;
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  font-weight: normal;
}

.tajweed-tooltip:hover::before {
  content: '';
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #0a7d38;
  z-index: 1000;
}

/* Hide tajweed by default */
.tajweed-text {
  display: none;
}

.tajweed-text.enabled {
  display: inline;
}

/* Ayat Numbers Dropdown Container */
.quran-ayat-dropdown-wrapper {
  display: inline-block;
  position: relative;
  margin: 0;
}

/* Dropdown Toggle Button */
.quran-ayat-dropdown-toggle {
  padding: 8px 12px;
  border: 1px solid #0a7d38;
  background: #fff;
  color: #0a7d38;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.quran-ayat-dropdown-toggle:hover {
  background: #0a7d38;
  color: #fff;
  box-shadow: 0 2px 6px rgba(10, 125, 56, 0.2);
}

.quran-ayat-dropdown-toggle:focus-visible {
  outline: 2px solid #0a7d38;
  outline-offset: 2px;
}

.quran-ayat-dropdown-toggle[aria-expanded="true"] .dropdown-toggle-icon {
  transform: rotate(180deg);
}

.dropdown-toggle-icon {
  font-size: 12px;
  transition: transform 0.2s ease;
  display: inline-block;
}

/* Dropdown Menu */
.quran-ayat-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #e6e7ea;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
  min-width: 120px;
}

/* Ayat List in Dropdown */
.quran-ayat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 4px;
  padding: 8px;
}

/* Individual Ayat Item in Dropdown */
.quran-ayat-item {
  padding: 6px 8px;
  border: 1px solid #e6e7ea;
  background: #fff;
  color: #0a7d38;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  min-height: 32px;
}

.quran-ayat-item:hover {
  background: #0a7d38;
  color: #fff;
  border-color: #0a7d38;
  box-shadow: 0 2px 4px rgba(10, 125, 56, 0.15);
}

.quran-ayat-item:focus-visible {
  outline: 2px solid #0a7d38;
  outline-offset: -2px;
}

/* Scrollbar styling for dropdown */
.quran-ayat-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.quran-ayat-dropdown-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.quran-ayat-dropdown-menu::-webkit-scrollbar-thumb {
  background: #0a7d38;
  border-radius: 4px;
}

.quran-ayat-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #086d2f;
}

/* Highlight effect for jumped-to Ayat */
.quran-ayat-highlighted {
  animation: ayat-highlight 2s ease-out;
}

.qita-last-read-card {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border: 1px solid #d9ece0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f6fff9 0%, #eef8ff 100%);
  box-shadow: 0 8px 18px rgba(10, 125, 56, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.qita-last-read-card__title {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: #0a7d38;
  margin-right: 4px;
}

.qita-last-read-card__meta {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.35;
  flex: 1;
  min-width: 180px;
}

.qita-last-read-card__btn {
  border: 1px solid #0a7d38;
  background: linear-gradient(135deg, #0a7d38 0%, #0f8e42 100%);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.qita-last-read-card__btn:hover {
  background: linear-gradient(135deg, #086d2f 0%, #0b7b37 100%);
  border-color: #086d2f;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(10, 125, 56, 0.2);
}

.qita-last-read-card__btn:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .qita-last-read-card {
    padding: 10px 12px;
    gap: 8px;
  }

  .qita-last-read-card__title {
    font-size: 16px;
  }

  .qita-last-read-card__meta {
    font-size: 13px;
    min-width: 100%;
  }

  .qita-last-read-card__btn {
    font-size: 13px;
    padding: 6px 10px;
  }
}

@keyframes ayat-highlight {
  0% {
    background-color: rgba(10, 125, 56, 0.15);
  }
  100% {
    background-color: transparent;
  }
}
.quran-surah-ayah--text.quran-text-arabic,
.quran-surah-ayah--text.quran-text-arabic .quran-single-ayah {
  font-family: '__omar_8a198f', __omar_Fallback_8a198f, 'noorehira', 'KFGQPC Uthman Taha Naskh', serif;
}

/* Requested size parity: translation + feature headings in ayah box */
.quran-surah-ayah--translation,
.quran-surah-ayah--translation .quran-single-ayah,
.quran-ayah-context__title,
.quran-word-meaning__title,
.quran-pronunciation__title {
  font-size: 1.125rem !important;
}
