/* Index tab list item styles */
.index-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #333;
  cursor: pointer;
  font-size: 1.08rem;
  transition: background 0.15s;
  gap: 12px;
}
.index-title {
  flex: 1;
  color: #f3f6fa;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.index-page {
  color: #1db954;
  font-size: 1.05em;
  font-weight: 700;
  min-width: 32px;
  text-align: right;
  opacity: 0.85;
}
.index-list-item:hover {
  background: #1db95422;
  color: #1db954;
}
/* Translation toggle button */
.translation-toggle {
  display: flex;
  justify-content: center;
  margin: 10px 0 0 0;
}
#toggleTranslationBtn {
  padding: 8px 18px;
  font-size: 1rem;
  border-radius: 14px;
  background: linear-gradient(90deg, #23272b 60%, #1db954 100%);
  color: #f3f6fa;
  border: 1.5px solid #1db954;
  box-shadow: 0 2px 8px #00000022;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.18s, color 0.18s, transform 0.12s;
  outline: none;
}
#toggleTranslationBtn:active {
  background: #1db954;
  color: #181c1f;
  transform: scale(0.97);
}
@media (hover: hover) {
  #toggleTranslationBtn:hover {
    background: #1db954;
    color: #181c1f;
    transform: translateY(-2px) scale(1.08);
  }
}
/* Quranic verse number styling */
.verse-num {
  font-family: inherit;
  color: #1db954;
  margin-left: 0.4em;
  font-size: 1.1em;
  vertical-align: middle;
}
/* Header flex layout for index, title, reset */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: relative;
  padding: 0;
  min-height: 60px;
}
.header-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1db954;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px #10101044;
}
.header-btn {
  position: static;
  margin: 0;
}
/* Header button styles (Index & Reset) */
/* Header icon buttons (Index & Reset) */
.header-btn {
  position: absolute;
  top: 18px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  background: linear-gradient(90deg, #1db954 60%, #1ed760 100%);
  color: #181c1f;
  border: 1px solid #1db954;
  box-shadow: 0 2px 8px #00000022;
  opacity: 0.92;
  transition: background 0.18s, color 0.18s, opacity 0.18s, transform 0.12s;
  outline: none;
  cursor: pointer;
  font-weight: 600;
  z-index: 12;
}
#indexBtn {
  left: 18px;
}
#resetBtn {
  right: 18px;
  background: #ff3b30cc;
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px #00000022;
  opacity: 0.85;
}
@media (hover: hover) {
  .header-btn:hover {
    background: #1ed760;
    color: #181c1f;
    opacity: 1;
    transform: translateY(-2px) scale(1.08);
  }
  #resetBtn:hover {
    background: #ff3b30;
    opacity: 1;
    transform: translateY(-2px) scale(1.08);
  }
}

/* Navigation buttons at bottom */
.nav-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(90deg, #23272b 60%, #1db954 100%);
  color: #f3f6fa;
  border: 1.5px solid #1db954;
  box-shadow: 0 2px 8px #00000022;
  font-size: 1.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.12s;
  outline: none;
}
.nav-btn:active {
  background: #1db954;
  color: #181c1f;
  transform: scale(0.97);
}
@media (hover: hover) {
  .nav-btn:hover {
    background: #1db954;
    color: #181c1f;
    transform: translateY(-2px) scale(1.08);
  }
}
/* Modal styles for Zikr Index */
.modal {
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(24,28,32,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #23272b;
  margin: auto;
  padding: 24px 18px 18px 18px;
  border-radius: 18px;
  max-width: 400px;
  width: 90vw;
  box-shadow: 0 4px 32px #00000044;
  color: #f3f6fa;
  position: relative;
}
.modal-content h2 {
  margin-top: 0;
  margin-bottom: 18px;
  color: #1db954;
  font-size: 1.3rem;
}
.modal-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.modal-content li {
  padding: 10px 0;
  border-bottom: 1px solid #333;
  cursor: pointer;
  font-size: 1.08rem;
  transition: background 0.15s;
}
.modal-content li:hover {
  background: #1db95422;
  color: #1db954;
}
.close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.5rem;
  color: #aaa;
  cursor: pointer;
  transition: color 0.15s;
}
.close:hover {
  color: #ff3b30;
}
/* --------------------------- */
/* Base styles */
/* --------------------------- */
body {
  margin: 0;
  background: linear-gradient(135deg, #181c1f 0%, #23272b 100%);
  color: #f3f6fa;
  font-family: 'Segoe UI', 'Roboto', system-ui, sans-serif;
  min-height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  letter-spacing: 0.01em;
}

.top-header, header {
  text-align: center;
  padding: 18px 0 10px 0;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
  background: transparent;
  letter-spacing: 0.03em;
  color: #1db954;
  text-shadow: 0 2px 8px #10101044;
}

/* --------------------------- */
/* Main container fills space */
/* --------------------------- */
#app {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
  min-height: 0;
}

/* --------------------------- */
/* Scrollable Arabic + Translation */
/* --------------------------- */
.scrollable {
  flex: 1 1 auto;
  overflow-y: auto;
  text-align: center;
  padding: 24px 0 24px 0;
  margin-bottom: 80px;
  min-height: 0;
  background: rgba(28,32,36,0.92);
  border-radius: 22px;
  box-shadow: 0 4px 24px 0 #00000033;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 12px;
  border: 1px solid #23272b;
}

/* Titles and references */
.zikr-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 5px;
  color: #1db954;
  text-shadow: 0 1px 6px #1db95422;
}

.zikr-reference {
  font-size: 1.05rem;
  color: #b2b8be;
  margin-bottom: 12px;
  font-style: italic;
  opacity: 0.85;
}

/* Arabic text */
.zikr-text {
  font-size: 2.2rem;
  line-height: 1.7;
  margin: 24px 0 12px 0;
  color: #f3f6fa;
  font-family: 'Amiri', 'Scheherazade New', 'Lateef', serif;
  font-weight: 400;
}

/* Translation */
.zikr-translation {
  font-size: 1.25rem;
  color: #b2e5c2;
  line-height: 1.5;
  margin-bottom: 32px;
}

/* --------------------------- */
/* Counter (above buttons) */
/* --------------------------- */
.counter {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 2.1rem;
  color: #1db954;
}

#counterDisplay {
  min-width: 80px;
  text-align: center;
  font-family: 'Segoe UI', 'Roboto', system-ui, sans-serif;
  font-size: 2.1rem;
  letter-spacing: 0.04em;
  background: rgba(28,32,36,0.92);
  border-radius: 12px;
  padding: 4px 16px;
  box-shadow: 0 2px 8px #00000022;
  color: #1db954;
  display: inline-block;
}

/* --------------------------- */
/* Buttons fixed at bottom */
/* --------------------------- */
.buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
  align-items: center;
  position: static;
  margin: 18px auto 0 auto;
  width: 100%;
  max-width: 400px;
  background: rgba(24,28,32,0.85);
  border-radius: 18px;
  box-shadow: 0 2px 16px #00000022;
  padding: 10px 0 max(16px, env(safe-area-inset-bottom));
}
# Responsive fixes for small screens
@media (max-width: 600px) {
  #app {
    padding: 0 5px;
  }
  .scrollable {
    padding: 10px 0;
    margin-bottom: 90px;
  }
  .buttons {
    bottom: 10px;
    width: calc(100vw - 10px);
    max-width: 100vw;
  }
  #resetBtn {
    /* Responsive fixes for small screens */
    @media (max-width: 600px) {
      #app {
        padding: 0 5px;
      }
      .scrollable {
        padding: 10px 0;
        margin-bottom: 90px;
        border-radius: 14px;
        box-shadow: 0 2px 10px #00000022;
      }
      .buttons {
        bottom: 10px;
        width: calc(100vw - 10px);
        max-width: 100vw;
        border-radius: 12px;
        padding: 6px 0 max(16px, env(safe-area-inset-bottom));
      }
      #resetBtn {
        top: 8px;
        right: 8px;
        padding: 7px 10px;
        font-size: 0.9rem;
        border-radius: 12px;
      }
      .zikr-title {
        font-size: 1.2rem;
      }
      .zikr-text {
        font-size: 1.3rem;
      }
      .zikr-translation {
        font-size: 1.05rem;
      }
    }
    top: 8px;
    right: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

#prevBtn, #tapBtn {
  padding: 14px 28px;
  font-size: 1.18rem;
  border-radius: 16px;
  border: none;
  box-shadow: 0 2px 8px #00000022;
  transition: background 0.18s, color 0.18s, transform 0.12s;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

#prevBtn {
  background: #23272b;
  color: #f3f6fa;
  border: 1px solid #444;
}
@media (hover: hover) {
  #prevBtn:hover {
    background: #1db95422;
    color: #1db954;
    border-color: #1db954;
    transform: translateY(-2px) scale(1.04);
  }
}

#tapBtn {
  background: linear-gradient(90deg, #1db954 60%, #1ed760 100%);
  color: #181c1f;
  border: 1px solid #1db954;
}
@media (hover: hover) {
  #tapBtn:hover {
    background: #1ed760;
    color: #181c1f;
    border-color: #1ed760;
    transform: translateY(-2px) scale(1.04);
  }
}

/* --------------------------- */
/* Reset button top-right */
/* --------------------------- */
