/* ============================================================
   QURAN.CSS - Dark Mode & Responsive Styles
   ============================================================ */

/* CSS Variables */
:root {
  --primary: #719D6E;
  --primary-dark: #5a7d58;
  --primary-light: #e8f3e7;
  --primary-soft: #d4ebd2;
  --bg-light: #ffffff;
  --bg-dark: #1a1a2e;
  --card-light: #ffffff;
  --card-dark: #2a2a35;
  --text-light: #1a1a1a;
  --text-dark: #e0e0e0;
  --text-muted-light: #6c757d;
  --text-muted-dark: #8a8aa0;
  --border-light: #e2e8f0;
  --border-dark: #3a3a45;
  --accent-soft: #e8f0fe;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, 
              color 0.3s ease, 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-light);
  color: var(--text-light);
  min-height: 100vh;
  transition: all 0.3s ease;
  overflow-x: hidden;
}

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

/* App Container */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: var(--card-light);
  border-right: 1px solid var(--border-light);
  z-index: 1000;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

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

.sidebar.open {
  left: 0;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.dark .sidebar-header {
  border-color: var(--border-dark);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.sidebar-logo i {
  font-size: 24px;
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted-light);
  transition: all 0.2s;
}

body.dark .sidebar-close {
  color: var(--text-muted-dark);
}

.sidebar-menu {
  flex: 1;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}

body.dark .menu-item {
  color: var(--text-dark);
}

.menu-item:hover {
  background: var(--primary-light);
}

body.dark .menu-item:hover {
  background: rgba(113, 157, 110, 0.2);
}

.menu-item.active {
  background: var(--primary-light);
  color: var(--primary);
  border-right: 3px solid var(--primary);
}

body.dark .menu-item.active {
  background: rgba(113, 157, 110, 0.3);
}

.menu-item i {
  width: 20px;
  font-size: 18px;
}

.menu-badge {
  margin-left: auto;
  background: var(--primary);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border-light);
}

body.dark .sidebar-footer {
  border-color: var(--border-dark);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.theme-toggle i {
  color: var(--text-muted-light);
  font-size: 14px;
}

body.dark .theme-toggle i {
  color: var(--text-muted-dark);
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
.main-content {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  padding: 0 16px 80px 16px;
}

/* Header */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: var(--bg-light);
  z-index: 100;
}

body.dark .main-header {
  background: var(--bg-dark);
}

.menu-toggle, .header-action {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  color: var(--primary);
  font-size: 18px;
  transition: all 0.2s;
}

body.dark .menu-toggle, body.dark .header-action {
  background: rgba(113, 157, 110, 0.2);
  color: var(--primary);
}

.menu-toggle:active, .header-action:active {
  transform: scale(0.95);
}

.main-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
}

body.dark .main-header h1 {
  color: var(--text-dark);
}

.header-actions {
  display: flex;
  gap: 8px;
}

/* Search Bar */
.search-bar {
  margin-bottom: 16px;
  display: none;
}

.search-bar.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-container i.fa-search {
  position: absolute;
  left: 14px;
  color: var(--text-muted-light);
  font-size: 14px;
  z-index: 1;
}

body.dark .search-container i.fa-search {
  color: var(--text-muted-dark);
}

#searchSurahInput {
  width: 100%;
  padding: 12px 40px 12px 40px;
  border: 1px solid var(--border-light);
  border-radius: 30px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: var(--card-light);
  color: var(--text-light);
  transition: all 0.3s ease;
}

body.dark #searchSurahInput {
  border-color: var(--border-dark);
  background: var(--card-dark);
  color: var(--text-dark);
}

#searchSurahInput:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(113, 157, 110, 0.1);
}

.clear-search {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted-light);
  font-size: 14px;
  display: none;
  z-index: 1;
}

body.dark .clear-search {
  color: var(--text-muted-dark);
}

/* Last Read Card */
.last-read-card {
  background: var(--primary-light);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

body.dark .last-read-card {
  background: rgba(113, 157, 110, 0.2);
}

.last-read-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.last-read-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.last-read-icon i {
  font-size: 20px;
  color: white;
}

.last-read-info {
  flex: 1;
}

.last-read-label {
  font-size: 10px;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.last-read-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  display: block;
  margin-top: 2px;
}

body.dark .last-read-value {
  color: var(--text-dark);
}

.last-read-btn {
  background: var(--primary);
  border: none;
  padding: 8px 16px;
  border-radius: 30px;
  color: white;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.last-read-btn:active {
  transform: scale(0.96);
}

/* Welcome Card */
.welcome-card {
  text-align: center;
  padding: 8px 0 20px 0;
  margin-bottom: 8px;
}

.welcome-card h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 6px;
}

body.dark .welcome-card h1 {
  color: var(--text-dark);
}

.welcome-card h1 span {
  color: var(--primary);
}

.welcome-card p {
  font-size: 12px;
  color: var(--text-muted-light);
}

body.dark .welcome-card p {
  color: var(--text-muted-dark);
}

/* Page Content */
.page-content {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

body.dark .page-header {
  border-color: var(--border-dark);
}

.page-header h2 {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 4px;
}

body.dark .page-header h2 {
  color: var(--text-dark);
}

.page-header p {
  font-size: 12px;
  color: var(--text-muted-light);
}

body.dark .page-header p {
  color: var(--text-muted-dark);
}

/* Surah List */
.surah-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.surah-item {
  background: var(--card-light);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border-light);
  position: relative;
}

body.dark .surah-item {
  background: var(--card-dark);
  border-color: var(--border-dark);
}

.surah-item:hover {
  transform: translateX(4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.surah-item:active {
  transform: scale(0.98);
}

.surah-num {
  width: 38px;
  height: 38px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

body.dark .surah-num {
  background: rgba(113, 157, 110, 0.2);
}

.surah-info {
  flex: 1;
}

.surah-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

body.dark .surah-title {
  color: var(--text-dark);
}

.surah-meta-badge {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted-light);
  background: var(--border-light);
  padding: 2px 8px;
  border-radius: 20px;
}

body.dark .surah-meta-badge {
  background: var(--border-dark);
  color: var(--text-muted-dark);
}

.surah-arabic {
  font-family: 'Amiri', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

.surah-translation {
  font-size: 11px;
  color: var(--text-muted-light);
}

body.dark .surah-translation {
  color: var(--text-muted-dark);
}

.surah-item i.fa-chevron-right {
  color: var(--text-muted-light);
  font-size: 14px;
}

body.dark .surah-item i.fa-chevron-right {
  color: var(--text-muted-dark);
}

.last-read-badge {
  position: absolute;
  right: 45px;
  background: var(--primary);
  color: white;
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted-light);
}

body.dark .empty-state {
  color: var(--text-muted-dark);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* Bookmarks & Last Read Lists */
.bookmarks-list, .lastread-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bookmark-item, .lastread-item {
  background: var(--card-light);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

body.dark .bookmark-item, body.dark .lastread-item {
  background: var(--card-dark);
  border-color: var(--border-dark);
}

.bookmark-item:hover, .lastread-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.bookmark-info, .lastread-info {
  flex: 1;
}

.bookmark-title, .lastread-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 4px;
}

body.dark .bookmark-title, body.dark .lastread-title {
  color: var(--text-dark);
}

.bookmark-meta, .lastread-meta {
  font-size: 11px;
  color: var(--text-muted-light);
}

body.dark .bookmark-meta, body.dark .lastread-meta {
  color: var(--text-muted-dark);
}

.bookmark-actions, .lastread-actions {
  display: flex;
  gap: 8px;
}

.bookmark-read-btn, .bookmark-delete-btn,
.lastread-read-btn, .lastread-delete-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.bookmark-read-btn, .lastread-read-btn {
  background: var(--primary-light);
  color: var(--primary);
}

body.dark .bookmark-read-btn, body.dark .lastread-read-btn {
  background: rgba(113, 157, 110, 0.2);
}

.bookmark-delete-btn, .lastread-delete-btn {
  background: #fee2e2;
  color: var(--danger);
}

body.dark .bookmark-delete-btn, body.dark .lastread-delete-btn {
  background: #3a1a1a;
}

.bookmark-read-btn:active, .bookmark-delete-btn:active,
.lastread-read-btn:active, .lastread-delete-btn:active {
  transform: scale(0.95);
}

/* Settings */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setting-item {
  background: var(--card-light);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.setting-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.setting-info i {
  font-size: 18px;
  color: var(--primary);
}

.setting-info span {
  font-size: 14px;
  color: var(--text-light);
}

body.dark .setting-info span {
  color: var(--text-dark);
}

.font-size-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.font-size-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-light);
  background: var(--primary-light);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.2s;
}

body.dark .font-size-btn {
  background: rgba(113, 157, 110, 0.2);
  border-color: var(--border-dark);
}

.font-size-btn:active {
  transform: scale(0.95);
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

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

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

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

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Detail Modal */
.detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-light);
  z-index: 1100;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

body.dark .detail-modal {
  background: var(--bg-dark);
}

.detail-modal.open {
  opacity: 1;
  visibility: visible;
}

.detail-container {
  max-width: 800px;
  margin: 0 auto;
  min-height: 100vh;
}

.detail-header {
  position: sticky;
  top: 0;
  background: var(--card-light);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  z-index: 10;
}

body.dark .detail-header {
  background: var(--card-dark);
  border-color: var(--border-dark);
}

.detail-back, .detail-bookmark {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  color: var(--primary);
  font-size: 16px;
  transition: all 0.2s;
}

body.dark .detail-back, body.dark .detail-bookmark {
  background: rgba(113, 157, 110, 0.2);
}

.detail-back:active, .detail-bookmark:active {
  transform: scale(0.95);
}

.detail-bookmark.active {
  background: var(--primary);
  color: white;
}

.detail-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
}

body.dark .detail-title {
  color: var(--text-dark);
}

.detail-content {
  padding: 20px 16px 100px;
}

.surah-info-header {
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

body.dark .surah-info-header {
  border-color: var(--border-dark);
}

.surah-name-arabic {
  font-family: 'Amiri', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.surah-info-header h2 {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 4px;
}

body.dark .surah-info-header h2 {
  color: var(--text-dark);
}

.surah-info-header p {
  font-size: 12px;
  color: var(--text-muted-light);
}

body.dark .surah-info-header p {
  color: var(--text-muted-dark);
}

/* Ayat Container */
.ayat-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ayat-card {
  background: var(--card-light);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

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

.ayat-card.last-read {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

body.dark .ayat-card.last-read {
  box-shadow: 0 0 0 2px rgba(113, 157, 110, 0.3);
}

.ayat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--primary-light);
  border-bottom: 1px solid var(--border-light);
}

body.dark .ayat-header {
  background: rgba(113, 157, 110, 0.15);
  border-color: var(--border-dark);
}

.ayat-number {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.ayat-actions {
  display: flex;
  gap: 8px;
}

.ayat-action-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted-light);
}

body.dark .ayat-action-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted-dark);
}

.ayat-action-btn:hover {
  transform: scale(1.05);
}

.ayat-action-btn.play-btn {
  color: var(--success);
}

.ayat-action-btn.bookmark-btn.active {
  color: var(--warning);
}

.ayat-action-btn.tafsir-btn {
  color: var(--primary);
}

.ayat-action-btn.copy-btn:active {
  transform: scale(0.95);
}

.ayat-content {
  padding: 16px;
}

.arabic-text {
  font-family: 'Amiri', serif;
  font-size: 22px;
  line-height: 1.8;
  color: var(--text-light);
  text-align: right;
  direction: rtl;
  margin-bottom: 12px;
}

body.dark .arabic-text {
  color: var(--text-dark);
}

.translation-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted-light);
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
}

body.dark .translation-text {
  color: var(--text-muted-dark);
  border-color: var(--border-dark);
}

/* Detail Navigation */
.detail-navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-light);
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border-light);
  z-index: 10;
}

body.dark .detail-navigation {
  background: var(--card-dark);
  border-color: var(--border-dark);
}

.nav-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  background: var(--primary-light);
  color: var(--primary);
  transition: all 0.2s;
}

body.dark .nav-btn {
  background: rgba(113, 157, 110, 0.2);
}

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

.nav-btn:active {
  transform: scale(0.96);
}

/* Tafsir Modal */
.tafsir-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tafsir-modal.open {
  opacity: 1;
  visibility: visible;
}

.tafsir-container {
  background: var(--card-light);
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
}

body.dark .tafsir-container {
  background: var(--card-dark);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.tafsir-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
}

body.dark .tafsir-header {
  border-color: var(--border-dark);
}

.tafsir-header h3 {
  font-size: 16px;
  color: var(--text-light);
}

body.dark .tafsir-header h3 {
  color: var(--text-dark);
}

.tafsir-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted-light);
}

body.dark .tafsir-close {
  color: var(--text-muted-dark);
}

.tafsir-content {
  padding: 16px;
  max-height: 60vh;
  overflow-y: auto;
}

.tafsir-surah {
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

body.dark .tafsir-surah {
  border-color: var(--border-dark);
}

.tafsir-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-light);
}

body.dark .tafsir-text {
  color: var(--text-dark);
}

/* Copy Toast */
.copy-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  z-index: 1300;
  transition: all 0.3s ease;
  opacity: 0;
}

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

/* Loading Spinner */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}

.loading-spinner i {
  font-size: 32px;
  color: var(--primary);
}

/* Responsive */
@media (max-width: 480px) {
  .main-content {
    padding: 0 12px 80px 12px;
  }
  
  .surah-name-arabic {
    font-size: 28px;
  }
  
  .arabic-text {
    font-size: 20px;
  }
  
  .ayat-actions {
    gap: 4px;
  }
  
  .ayat-action-btn {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
  
  .detail-navigation {
    padding: 10px 12px;
  }
  
  .nav-btn {
    font-size: 11px;
    padding: 8px;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

/* Disable transition during page load to prevent flicker */
body.no-transition * {
  transition: none !important;
}