/* =============================================================
   ak-yasin — Style.css
   Farbpalette: .local/design-reference/ak-yasin_asset_pack/color_palette.txt
   ============================================================= */

/* --- CSS Custom Properties (Farbpalette) --- */
:root {
  --green-dark: #0F3D32;
  --green-main: #1F5B49;
  --green-light: #DDE8D8;

  --gold-primary: #D9B76F;
  --gold-light: #F4E7C5;

  --bg-cream: #FBF6EA;
  --bg-light: #F7F3EA;
  --card-white: #FFFFFF;

  --text-primary: #1F1F1F;
  --text-secondary: #666666;
  --text-light: #FFFFFF;

  --success: #3D8B5A;
  --warning: #C9A227;
  --error: #A94442;

  --dark-bg: #121212;
  --dark-card: #1E1E1E;
  --dark-text: #F5F5F5;
  --dark-border: #2E2E2E;

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'Amiri', 'Noto Naskh Arabic', serif;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  --transition: all 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-cream);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Screen Management --- */
.screen {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 80px;
  background-color: var(--bg-cream);
}

.screen.active {
  display: flex;
  flex-direction: column;
}

.screen-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
}

.screen-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.screen-hint {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  padding: 14px 32px;
  min-width: 140px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--green-main);
  color: var(--text-light);
  box-shadow: 0 2px 8px rgba(15, 61, 50, 0.25);
}

.btn-primary:hover {
  background-color: var(--green-dark);
}

.btn-secondary {
  background-color: var(--card-white);
  border: 1px solid var(--gold-primary);
  color: var(--green-main);
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.btn-icon:hover {
  background-color: var(--green-light);
}

.btn-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* =============================================================
   SPLASH SCREEN
   ============================================================= */
#screen-splash {
  background-color: var(--green-dark);
  justify-content: center;
  align-items: center;
}

.splash-container {
  text-align: center;
  padding: 32px;
}

.splash-ornament {
  margin-bottom: 24px;
}

.splash-ornament-img {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.splash-title {
  font-family: var(--font-arabic);
  font-size: 2.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 700;
}

.splash-subtitle {
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 48px;
  opacity: 0.85;
}

.btn-splash {
  background-color: var(--gold-primary);
  color: var(--green-dark);
  font-size: 1.1rem;
  padding: 16px 48px;
}

.btn-splash:hover {
  background-color: var(--gold-light);
}

/* =============================================================
   LANGUAGE SELECTION
   ============================================================= */
.language-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 32px;
}

.lang-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-white);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-ui);
  box-shadow: var(--shadow);
}

.lang-card:hover {
  border-color: var(--gold-primary);
}

.lang-card.selected {
  border-color: var(--green-main);
  background-color: var(--green-light);
}

.lang-flag {
  width: 44px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}

.lang-flag img {
  width: 44px;
  height: 32px;
  object-fit: cover;
  border-radius: 6px;
}

/* =============================================================
   QURAN DISPLAY SELECTION
   ============================================================= */
.quran-display-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 640px;
  margin-bottom: 32px;
}

#screen-quran-display .screen-inner {
  justify-content: flex-start;
  padding-top: 72px;
}

#screen-quran-display .screen-title {
  max-width: 24ch;
  line-height: 1.2;
  margin-bottom: 20px;
}

.display-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-white);
  border: 2px solid transparent;
  border-radius: var(--radius);
  min-height: 108px;
  padding: 22px 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-ui);
  box-shadow: var(--shadow);
}

.display-card:hover {
  border-color: var(--gold-primary);
}

.display-card.selected {
  border-color: var(--green-main);
  background-color: var(--green-light);
}

.display-card-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.display-card-icon {
  font-size: 2.2rem;
  line-height: 1;
  width: 96px;
  white-space: nowrap;
  text-align: center;
  flex-shrink: 0;
}

.display-card:first-child .display-card-icon {
  font-family: var(--font-arabic);
}

.display-card[data-display="latin"] .display-card-icon {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.display-card-label {
  font-weight: 700;
  font-size: 2rem;
  flex: 1;
}

.display-card-badge {
  font-size: 0.9rem;
  color: #8f8d86;
  background: #f2eee4;
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 500;
}

/* =============================================================
   READER SCREEN
   ============================================================= */
.reader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: var(--green-dark);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 10;
}

.reader-header .btn-icon {
  color: var(--text-light);
  width: 64px;
  height: 64px;
}

.reader-header .btn-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.reader-header .btn-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.reader-header-center {
  text-align: center;
  flex: 1;
}

.reader-surah-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.reader-verses-count {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* --- Ayah List --- */
.ayah-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

/* Reader-Screen: kein Bottom-Nav-Offset */
#screen-reader {
  padding-bottom: 0;
}

.ayah-item {
  padding: 16px 20px;
  margin-bottom: 8px;
  border-radius: var(--radius);
  background-color: var(--card-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  position: relative;
  border-left: 4px solid transparent;
}

.ayah-item.active {
  background-color: var(--green-light);
  border-left-color: var(--green-main);
  transform: scale(1.01);
}

.ayah-item .ayah-number {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 500;
}

.ayah-item .ayah-arabic {
  font-family: var(--font-arabic);
  font-size: 1.6rem;
  text-align: right;
  direction: rtl;
  line-height: 2.2;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.ayah-item .ayah-latin {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

/* --- Audio Player (sticky im Lesemodus) --- */
.audio-player {
  background-color: var(--card-white);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 10px 16px 10px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  bottom: 0;
  z-index: 20;
  flex-shrink: 0;
}

.audio-progress-container {
  height: 4px;
  background-color: var(--bg-light);
  border-radius: 2px;
  margin-bottom: 8px;
  cursor: pointer;
  position: relative;
}

.audio-progress-bar {
  height: 100%;
  background-color: var(--green-main);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.audio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2px;
}

.btn-audio img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: none;
}

.btn-audio {
  font-size: 1.2rem;
  width: 48px;
  height: 48px;
}

.skip-label {
  display: none;
}

.btn-play {
  width: 82px;
  height: 82px;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  line-height: normal;
  font-weight: 400;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: none;
}

.btn-play:hover {
  background: transparent;
  transform: scale(1.03);
}

.btn-play:active {
  transform: scale(0.93);
}

.btn-play img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: none;
}

.audio-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  margin-top: 0;
}

.audio-time-values {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-speed-player {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

/* =============================================================
   SUB-HEADER (Settings, Downloads, About, Language Change)
   ============================================================= */
.sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: var(--card-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.sub-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.header-spacer {
  width: 44px;
}

/* =============================================================
   SETTINGS
   ============================================================= */
.settings-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: var(--card-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: var(--transition);
  min-height: 60px;
}

.setting-item:hover {
  background-color: var(--bg-light);
}

.setting-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.setting-label {
  font-size: 0.95rem;
  font-weight: 500;
}

.setting-value {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.setting-arrow {
  width: 16px;
  height: 16px;
  opacity: 0.3;
}

.setting-arrow-fallback {
  font-size: 1.4rem;
  color: var(--text-secondary);
}

/* --- Toggle --- */
.toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 28px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: var(--transition);
}

.toggle input:checked + .toggle-slider {
  background-color: var(--green-main);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* --- Font Size Controls --- */
.font-size-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-font-size {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--green-main);
  background: var(--card-white);
  color: var(--green-main);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-font-size:hover {
  background-color: var(--green-light);
}

.font-size-value {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

/* --- Speed Controls --- */
.speed-controls {
  display: flex;
  gap: 6px;
}

.btn-speed {
  padding: 6px 14px;
  border: 1px solid var(--green-main);
  border-radius: var(--radius);
  background: var(--card-white);
  color: var(--green-main);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-speed.active {
  background-color: var(--green-main);
  color: var(--text-light);
}

/* =============================================================
   DOWNLOADS
   ============================================================= */
.downloads-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
}

.download-card {
  background-color: var(--card-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.download-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.download-icon {
  width: 40px;
  height: 40px;
  margin-top: 4px;
}

.download-details h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.download-details p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.download-progress-container {
  height: 6px;
  background-color: var(--bg-light);
  border-radius: 3px;
  margin-bottom: 16px;
}

.download-progress-bar {
  height: 100%;
  background-color: var(--success);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

.btn-download {
  width: 100%;
}

.saved-files-section {
  margin-top: 8px;
}

.saved-files-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.saved-file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--card-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.saved-file-icon {
  width: 20px;
  height: 20px;
}

.saved-file-check {
  color: var(--success);
  font-size: 1.1rem;
  font-weight: 700;
}

.saved-file-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

.saved-file-demo {
  font-size: 0.7rem;
  color: var(--warning);
  background: var(--gold-light);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* =============================================================
   ABOUT
   ============================================================= */
.about-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px;
  text-align: center;
}

.about-logo {
  margin-bottom: 16px;
}

.about-logo-img {
  width: 80px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.about-app-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-version {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.about-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
}

.about-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background-color: var(--card-white);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.about-link:hover {
  background-color: var(--bg-light);
}

.about-link img {
  width: 20px;
  height: 20px;
}

/* =============================================================
   LEGAL
   ============================================================= */
.legal-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 28px;
}

.legal-card {
  background-color: var(--card-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.legal-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.legal-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card h4,
.legal-card h5 {
  margin: 14px 0 8px;
  line-height: 1.4;
}

.legal-card h4 {
  font-size: 0.98rem;
  font-weight: 700;
}

.legal-card h5 {
  font-size: 0.92rem;
  font-weight: 700;
}

.legal-card ul {
  margin: 0 0 12px 20px;
  color: var(--text-secondary);
}

.legal-card li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.legal-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 14px;
  font-size: 0.86rem;
}

.legal-card th,
.legal-card td {
  border: 1px solid rgba(0, 0, 0, 0.12);
  text-align: left;
  padding: 8px 10px;
  vertical-align: top;
}

.legal-card th {
  background-color: rgba(0, 0, 0, 0.04);
  font-weight: 700;
}

/* =============================================================
   NAVIGATION DRAWER
   ============================================================= */
.drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  max-width: 85vw;
  background-color: var(--card-white);
  z-index: 101;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 32px 20px 24px;
  background-color: var(--green-dark);
  color: var(--text-light);
  text-align: center;
}

.drawer-logo {
  margin-bottom: 12px;
}

.drawer-logo-img {
  width: 64px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.drawer-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.drawer-subtitle {
  font-size: 0.8rem;
  opacity: 0.8;
}

.drawer-menu {
  list-style: none;
  padding: 8px 0;
  flex: 1;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  font-weight: 500;
}

.drawer-item:hover {
  background-color: var(--bg-light);
}

.drawer-item-icon {
  width: 22px;
  height: 22px;
  opacity: 0.6;
}

/* =============================================================
   BOTTOM NAVIGATION
   ============================================================= */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background-color: var(--card-white);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 50;
  padding: 6px 0;
  padding-bottom: env(safe-area-inset-bottom, 6px);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: #888888;
  transition: var(--transition);
  font-family: var(--font-ui);
}

.nav-item.active {
  color: var(--green-main);
}

.nav-icon {
  width: 24px;
  height: 24px;
  opacity: 0.6;
}

.nav-item.active .nav-icon {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(26%) sepia(19%) saturate(1055%) hue-rotate(116deg) brightness(32%) contrast(90%);
}

.nav-label {
  font-size: 0.65rem;
  font-weight: 500;
}

/* =============================================================
   DARK MODE
   ============================================================= */
body.dark {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

body.dark .screen {
  background-color: var(--dark-bg);
}

body.dark .screen-title,
body.dark .setting-label,
body.dark .about-app-name,
body.dark .reader-surah-name {
  color: var(--dark-text);
}

body.dark .screen-hint,
body.dark .setting-value,
body.dark .about-description,
body.dark .about-version,
body.dark .audio-time,
body.dark .ayah-item .ayah-latin {
  color: #a0a0a0;
}

body.dark .ayah-item .ayah-number {
  color: #d6d6d6;
}

body.dark .ayah-item .ayah-arabic,
body.dark .ayah-item .ayah-latin {
  color: #ffffff;
}

body.dark .ayah-item.active .ayah-arabic,
body.dark .ayah-item.active .ayah-latin,
body.dark .ayah-item.active .ayah-number {
  color: #ffffff;
}

body.dark .lang-card,
body.dark .display-card,
body.dark .download-card,
body.dark .saved-file-item,
body.dark .about-link,
body.dark .legal-card,
body.dark .setting-item,
body.dark .ayah-item {
  background-color: var(--dark-card);
  color: var(--dark-text);
  border-color: var(--dark-border);
}

body.dark .legal-card p {
  color: #b8b8b8;
}

body.dark .legal-card ul,
body.dark .legal-card li {
  color: #b8b8b8;
}

body.dark .legal-card th,
body.dark .legal-card td {
  border-color: rgba(255, 255, 255, 0.14);
}

body.dark .legal-card th {
  background-color: rgba(255, 255, 255, 0.06);
}

body.dark .drawer {
  background-color: var(--dark-card);
}

body.dark .drawer-item:hover {
  background-color: var(--dark-border);
}

body.dark .sub-header,
body.dark .audio-player,
body.dark .bottom-nav {
  background-color: var(--dark-card);
  border-color: var(--dark-border);
}

body.dark .ayah-item.active {
  background-color: #1a2e1a;
  border-left-color: var(--green-main);
}

body.dark .toggle-slider {
  background-color: #555;
}

body.dark .btn-secondary {
  background-color: var(--dark-card);
  color: var(--green-main);
}

body.dark .btn-font-size,
body.dark .btn-speed {
  background-color: var(--dark-card);
  color: var(--green-main);
}

body.dark .setting-item:hover {
  background-color: var(--dark-border);
}

body.dark .nav-item {
  color: #888;
}

body.dark .nav-item.active {
  color: var(--green-light);
}

/* =============================================================
   UTILITIES
   ============================================================= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.rtl { direction: rtl; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }

/* =============================================================
   FONT SIZE VARIANTS
   ============================================================= */
body.font-sm .ayah-arabic { font-size: 1.3rem; }
body.font-sm .ayah-latin { font-size: 0.8rem; }

body.font-md .ayah-arabic { font-size: 1.6rem; }
body.font-md .ayah-latin { font-size: 0.95rem; }

body.font-lg .ayah-arabic { font-size: 2.0rem; }
body.font-lg .ayah-latin { font-size: 1.1rem; }

body.font-xl .ayah-arabic { font-size: 2.4rem; }
body.font-xl .ayah-latin { font-size: 1.25rem; }
