﻿/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Cairo", "Amiri", serif;
  background: linear-gradient(135deg, #1a8a5c 0%, #0d6b4e 100%);
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: static;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  flex-wrap: nowrap;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  color: #1a8a5c;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  background: #f7fafc;
  color: #4a5568;
  font-family: "Cairo", serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.nav-btn:hover {
  background: #1a8a5c;
  color: white;
  transform: translateY(-2px);
}

.nav-btn.active {
  background: #1a8a5c;
  color: white;
  box-shadow: 0 4px 15px rgba(26, 138, 92, 0.4);
}

/* Install Button Specific Styles */
.nav-btn.install-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.nav-btn.install-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Main Content */
.main {
  padding: 2rem 0;
}

/* Welcome Section */
.welcome-section {
  text-align: center;
  margin-bottom: 3rem;
  color: white;
}

.welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.welcome-description {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Categories Container */
.categories-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Category Card */
.category-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a8a5c, #d4a847);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.category-icon {
  font-size: 3rem;
  color: #1a8a5c;
  margin-bottom: 1rem;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.category-description {
  font-size: 1rem;
  color: #718096;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.category-count {
  background: #fdf8e8;
  color: #b8860b;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
}

.back-btn {
  background: #4a7c6f !important;
  color: white !important;
}

/* Search Container */
.search-container {
  margin-bottom: 2rem;
}

.search-box {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
}

#searchInput {
  width: 100%;
  padding: 12px 20px 12px 50px;
  border: none;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.9);
  font-family: "Cairo", serif;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#searchInput:focus {
  outline: none;
  box-shadow: 0 4px 25px rgba(26, 138, 92, 0.3);
  background: white;
}

/* Category Header */
.category-header {
  text-align: center;
  margin-bottom: 2rem;
  color: white;
}

#categoryTitle {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#categoryDescription {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.reset-all-btn {
  background: #e53e3e;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 24px;
  font-family: "Cairo", serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.reset-all-btn:hover {
  background: #c53030;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

.reset-all-btn:active {
  transform: translateY(0);
}

/* Adhkar Container */
.adhkar-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* Adhkar Card */
.adhkar-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.adhkar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a8a5c, #d4a847);
}

.adhkar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.adhkar-card:active {
  transform: translateY(-2px) scale(0.98);
}

.adhkar-text {
  font-family: "Amiri", serif;
  font-size: 1.3rem;
  line-height: 2;
  color: #2d3748;
  margin-bottom: 1rem;
  text-align: justify;
}

.adhkar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.adhkar-source {
  font-size: 0.9rem;
  color: #718096;
  font-style: italic;
}

.adhkar-count {
  background: #fdf8e8;
  color: #b8860b;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.adhkar-progress {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.adhkar-progress .progress-bar {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.adhkar-progress .progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.8rem;
  color: #718096;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
}

.adhkar-click-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: #a0aec0;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.adhkar-card:hover .adhkar-click-hint {
  opacity: 1;
}

.adhkar-click-hint i {
  font-size: 0.7rem;
}

/* Adhkar Card Fadl Styles */
.adhkar-fadl {
  background: linear-gradient(135deg, #f5faf2 0%, #e8f5e1 100%);
  border: 1px solid #c5e1b5;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  text-align: right;
  direction: rtl;
}

.adhkar-fadl .fadl-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0d5f3a;
}

.adhkar-fadl .fadl-header i {
  color: #d4a847;
  font-size: 0.9rem;
}

.adhkar-fadl .fadl-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #2d6b3f;
  font-family: "Amiri", serif;
  text-align: justify;
  margin: 0;
}

.adhkar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-family: "Cairo", serif;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.count-action-btn {
  background: #1a8a5c;
  color: white;
}

.copy-btn {
  background: #2d9d6e;
  color: white;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  margin: 3% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.5rem;
  color: #2d3748;
}

.close {
  font-size: 1.5rem;
  cursor: pointer;
  color: #a0aec0;
  transition: color 0.3s ease;
}

.close:hover {
  color: #4a5568;
}

.modal-body {
  padding: 2rem;
  text-align: center;
}

/* Install Modal Styles */
.install-modal-content {
  max-width: 600px;
  text-align: center;
  padding: 0;
}

.install-content {
  padding: 2rem 1.75rem;
  box-sizing: border-box;
}

.install-header {
  margin-bottom: 0.5rem;
  text-align: center;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.install-header h3 {
  font-size: 1.6rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1a8a5c 0%, #0d6b4e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.install-subtitle {
  font-size: 0.95rem;
  color: #718096;
  line-height: 1.5;
}

.device-badge {
  display: inline-block;
  background: linear-gradient(135deg, #1a8a5c 0%, #0d6b4e 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(26, 138, 92, 0.3);
}

.install-steps {
  text-align: right;
  direction: rtl;
  margin: 1rem 0 1.25rem;
}

.install-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 1.25rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.install-step:hover {
  border-color: #1a8a5c;
  transform: translateX(-5px);
  box-shadow: 0 4px 15px rgba(26, 138, 92, 0.1);
}

.install-step .step-icon {
  font-size: 2rem;
  min-width: 50px;
  text-align: center;
  background: linear-gradient(135deg, #1a8a5c 0%, #0d6b4e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.install-step .step-content {
  flex: 1;
  min-width: 0;
}

.install-step h5 {
  font-size: 1.05rem;
  color: #2d3748;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.install-step p {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.8;
  margin: 0;
  text-align: right;
  word-wrap: break-word;
}

.install-step strong {
  color: #1a8a5c;
  font-weight: 600;
}

.install-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #fef5e7 0%, #fef9e7 100%);
  border: 2px solid #f9e79f;
  border-radius: 10px;
  margin: 1.5rem 0;
  color: #7d6608;
  font-size: 0.9rem;
  text-align: center;
  direction: rtl;
}

.install-note i {
  font-size: 1.2rem;
  color: #f39c12;
}

.install-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.install-btn {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Cairo", sans-serif;
}

.install-btn.primary {
  background: linear-gradient(135deg, #1a8a5c 0%, #0d6b4e 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(26, 138, 92, 0.3);
}

.install-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(26, 138, 92, 0.5);
}

.install-btn.primary:active {
  transform: translateY(0);
}

.install-btn.secondary {
  background: #f7fafc;
  color: #4a5568;
  border: 2px solid #e2e8f0;
}

.install-btn.secondary:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
  transform: translateY(-2px);
}

.install-btn.secondary:active {
  transform: translateY(0);
}

/* Responsive design for install modal */
@media (max-width: 768px) {
  .install-content {
    padding: 1.5rem 1rem;
  }

  .install-header h3 {
    font-size: 1.4rem;
  }

  .install-step {
    padding: 0.875rem;
  }

  .install-step .step-icon {
    font-size: 1.75rem;
    min-width: 45px;
  }

  .install-step h5 {
    font-size: 0.95rem;
  }

  .install-step p {
    font-size: 0.875rem;
  }

  .install-buttons {
    flex-direction: column;
  }

  .install-btn {
    width: 100%;
  }
}

.counter-display {
  margin-bottom: 2rem;
}

.count-number {
  font-size: 4rem;
  font-weight: 700;
  color: #1a8a5c;
  margin-bottom: 0.5rem;
}

.count-total {
  font-size: 1.2rem;
  color: #718096;
}

/* Fadl (Virtue/Benefit) Section Styles */
.fadl-section {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: right;
  direction: rtl;
}

.fadl-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
}

.fadl-header i {
  color: #f6ad55;
  font-size: 1.2rem;
}

.fadl-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #4a5568;
  font-family: "Amiri", serif;
  text-align: justify;
  margin: 0;
}

.counter-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.count-btn {
  width: 80px;
  height: 80px;
  border: none;
  border-radius: 50%;
  background: #1a8a5c;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(26, 138, 92, 0.3);
}

.count-btn:hover {
  background: #15724e;
  transform: scale(1.1);
}

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

.reset-btn {
  padding: 10px 20px;
  border: 2px solid #e53e3e;
  border-radius: 25px;
  background: transparent;
  color: #e53e3e;
  font-family: "Cairo", serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.reset-btn:hover {
  background: #e53e3e;
  color: white;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a8a5c, #d4a847);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

/* Footer */
.footer {
  background: rgba(45, 55, 72, 0.9);
  color: white;
  text-align: center;
  padding: 2rem 0;
  padding-bottom: 100px; /* Extra padding to avoid floating buttons */
  margin-top: 4rem;
  backdrop-filter: blur(10px);
}

.footer p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    gap: 0.5rem;
  }

  .nav {
    justify-content: flex-end;
  }

  .nav-btn {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .theme-toggle-btn {
    width: 38px;
    height: 38px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .welcome-title {
    font-size: 2rem;
  }

  .categories-container {
    grid-template-columns: 1fr;
  }

  #categoryTitle {
    font-size: 2rem;
  }

  .adhkar-container {
    grid-template-columns: 1fr;
  }

  .adhkar-text {
    font-size: 1.2rem;
  }

  .count-number {
    font-size: 3rem;
  }

  .count-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease;
}

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

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

/* Copy Animation */
.copied {
  background: #b8860b !important;
}

.copied::after {
  content: "✓ تم النسخ";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #b8860b;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  animation: copyFeedback 2s ease;
}

@keyframes copyFeedback {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* Dark Mode Theme Toggle Button */
.theme-toggle-btn {
  background: #4a5568 !important;
  color: white !important;
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  background: #2d3748 !important;
  transform: translateY(-2px);
}

.theme-toggle-btn i {
  transition: transform 0.3s ease;
}

/* Dark Mode Styles */
body.dark-mode {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: #e2e8f0;
}

/* Dark Mode Header */
body.dark-mode .header {
  background: rgba(26, 32, 44, 0.95);
  border-bottom: 1px solid #4a5568;
}

body.dark-mode .logo {
  color: #e2e8f0;
}

body.dark-mode .logo i {
  color: #e8c55a;
}

body.dark-mode .nav-btn {
  background: #4a5568;
  color: #e2e8f0;
  border: 1px solid #718096;
}

body.dark-mode .nav-btn:hover {
  background: #1a8a5c;
  color: white;
  border-color: #1a8a5c;
}

/* Dark Mode Install Button */
body.dark-mode .nav-btn.install-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
}

body.dark-mode .nav-btn.install-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

body.dark-mode .nav-btn.active {
  background: #1a8a5c;
  color: white;
}

body.dark-mode .theme-toggle-btn {
  background: #1a8a5c !important;
  color: white !important;
}

body.dark-mode .theme-toggle-btn:hover {
  background: #15724e !important;
}

/* Dark Mode Welcome Section */
body.dark-mode .welcome-title,
body.dark-mode .welcome-description,
body.dark-mode .category-header,
body.dark-mode #categoryTitle,
body.dark-mode #categoryDescription {
  color: #e2e8f0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Dark Mode Cards */
body.dark-mode .category-card,
body.dark-mode .adhkar-card {
  background: rgba(45, 55, 72, 0.95);
  border: 1px solid #4a5568;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .category-card:hover,
body.dark-mode .adhkar-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-10px);
}

body.dark-mode .category-title,
body.dark-mode .adhkar-text {
  color: #e2e8f0;
}

body.dark-mode .category-description,
body.dark-mode .adhkar-source,
body.dark-mode .progress-text,
body.dark-mode .adhkar-click-hint {
  color: #a0aec0;
}

body.dark-mode .adhkar-info {
  border-top-color: #4a5568;
}

/* Dark Mode Fadl Section in Cards */
body.dark-mode .adhkar-fadl {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  border-color: #718096;
}

body.dark-mode .adhkar-fadl .fadl-header {
  color: #e2e8f0;
}

body.dark-mode .adhkar-fadl .fadl-header i {
  color: #e8c55a;
}

body.dark-mode .adhkar-fadl .fadl-text {
  color: #cbd5e0;
}

/* Dark Mode Search Box */
body.dark-mode #searchInput {
  background: rgba(45, 55, 72, 0.9);
  color: #e2e8f0;
  border: 1px solid #4a5568;
}

body.dark-mode #searchInput::placeholder {
  color: #a0aec0;
}

body.dark-mode #searchInput:focus {
  background: #2d3748;
  box-shadow: 0 4px 25px rgba(232, 197, 90, 0.3);
  border-color: #e8c55a;
}

body.dark-mode .search-box i {
  color: #718096;
}

/* Dark Mode Buttons */
body.dark-mode .reset-all-btn {
  background: #e53e3e;
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
}

body.dark-mode .count-action-btn {
  background: #1a8a5c;
}

body.dark-mode .copy-btn {
  background: #b8860b;
}

body.dark-mode .action-btn:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Dark Mode Modal */
body.dark-mode .modal {
  background-color: rgba(0, 0, 0, 0.7);
}

body.dark-mode .modal-content {
  background: #2d3748;
  border: 1px solid #4a5568;
}

body.dark-mode .modal-header {
  border-bottom-color: #4a5568;
}

body.dark-mode .modal-header h3 {
  color: #e2e8f0;
}

body.dark-mode .close {
  color: #a0aec0;
}

body.dark-mode .close:hover {
  color: #e2e8f0;
}

body.dark-mode .count-number {
  color: #e8c55a;
}

body.dark-mode .count-total {
  color: #a0aec0;
}

/* Dark Mode Fadl Section in Modal */
body.dark-mode .fadl-section {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  border-color: #4a5568;
}

body.dark-mode .fadl-header {
  color: #e2e8f0;
}

body.dark-mode .fadl-header i {
  color: #e8c55a;
}

body.dark-mode .fadl-text {
  color: #cbd5e0;
}

body.dark-mode .count-btn {
  background: #1a8a5c;
  box-shadow: 0 4px 20px rgba(26, 138, 92, 0.4);
}

body.dark-mode .count-btn:hover {
  background: #15724e;
}

body.dark-mode .reset-btn {
  border-color: #e53e3e;
  color: #e53e3e;
}

body.dark-mode .reset-btn:hover {
  background: #e53e3e;
  color: white;
}

body.dark-mode .progress-bar {
  background: #4a5568;
}

/* Dark Mode Footer */
body.dark-mode .footer {
  background: rgba(26, 32, 44, 0.95);
  border-top: 1px solid #4a5568;
}

body.dark-mode .footer p {
  color: #cbd5e0;
}

/* Dark Mode Progress Bars */
body.dark-mode .adhkar-progress .progress-bar {
  background: #4a5568;
}

body.dark-mode .progress-fill {
  background: linear-gradient(90deg, #e8c55a, #1a8a5c);
}

/* Dark Mode Category Count */
body.dark-mode .category-count {
  background: #1a3d2e;
  color: #e8c55a;
}

body.dark-mode .adhkar-count {
  background: #1a3d2e;
  color: #e8c55a;
}

/* Dark Mode Install Modal */
body.dark-mode .install-header h3 {
  color: #e2e8f0;
  background: linear-gradient(135deg, #e8c55a 0%, #d4a847 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .install-subtitle {
  color: #cbd5e0;
}

body.dark-mode .device-badge {
  background: linear-gradient(135deg, #e8c55a 0%, #d4a847 100%);
  box-shadow: 0 4px 15px rgba(232, 197, 90, 0.3);
}

body.dark-mode .install-step {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  border-color: #4a5568;
}

body.dark-mode .install-step:hover {
  border-color: #e8c55a;
  box-shadow: 0 4px 15px rgba(232, 197, 90, 0.2);
}

body.dark-mode .install-step h5 {
  color: #e2e8f0;
}

body.dark-mode .install-step p {
  color: #cbd5e0;
}

body.dark-mode .install-step strong {
  color: #e8c55a;
}

body.dark-mode .install-step .step-icon {
  background: linear-gradient(135deg, #e8c55a 0%, #d4a847 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .install-note {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  border-color: #4a5568;
  color: #d4a847;
}

body.dark-mode .install-note i {
  color: #d4a847;
}

body.dark-mode .install-btn.primary {
  background: linear-gradient(135deg, #e8c55a 0%, #d4a847 100%);
  box-shadow: 0 4px 15px rgba(232, 197, 90, 0.3);
}

body.dark-mode .install-btn.primary:hover {
  box-shadow: 0 6px 25px rgba(232, 197, 90, 0.5);
}

body.dark-mode .install-btn.secondary {
  background: #4a5568;
  color: #e2e8f0;
  border-color: #718096;
}

body.dark-mode .install-btn.secondary:hover {
  background: #2d3748;
  border-color: #4a5568;
}

body.dark-mode .install-icon {
  color: #e8c55a;
}

/* Theme Toggle Animation */
.theme-transition {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

body.theme-transition,
body.theme-transition *,
body.theme-transition *:before,
body.theme-transition *:after {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease !important;
}

/* CSS Variables for Dynamic Font Sizing */
:root {
  --adhkar-font-size: 1.3rem;
}

.adhkar-text {
  font-size: var(--adhkar-font-size) !important;
}

/* Progress Statistics Section */
.progress-stats {
  background: linear-gradient(135deg, #1a8a5c, #d4a847);
  color: white;
  padding: 1.5rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.progress-stats h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffd700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Breadcrumb Navigation */
.breadcrumb {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 25px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: #1a8a5c;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.breadcrumb a:hover {
  color: #d4a847;
}

.breadcrumb span {
  color: #718096;
}

/* Font Size Controls */
.font-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.font-btn {
  padding: 10px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Cairo", serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 80px;
  justify-content: center;
}

.font-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.font-btn.active {
  background: #1a8a5c;
  color: white;
  border-color: #1a8a5c;
  box-shadow: 0 4px 15px rgba(26, 138, 92, 0.3);
}

.font-btn i.font-small {
  font-size: 0.8rem;
}
.font-btn i.font-large {
  font-size: 1.2rem;
}

/* Quick Access Toolbar */
.quick-access {
  position: fixed;
  bottom: 30px;
  left: 20px; /* Changed to left for Arabic RTL */
  display: none; /* Hidden by default, shown on scroll */
  flex-direction: column;
  gap: 15px;
  z-index: 1500;
  animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quick Home Button (opposite side) */
.quick-home {
  position: fixed;
  bottom: 30px;
  right: 20px;
  display: none; /* Hidden by default, shown on scroll */
  flex-direction: column;
  gap: 15px;
  z-index: 1500;
  animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.quick-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #1a8a5c 0%, #0d6b4e 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(26, 138, 92, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.quick-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.quick-btn:hover::before {
  width: 100%;
  height: 100%;
}

.quick-btn:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 30px rgba(26, 138, 92, 0.7);
}

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

.quick-btn i {
  position: relative;
  z-index: 1;
}

/* Button labels that appear on hover */
.quick-btn-label {
  position: absolute;
  right: calc(100% + 15px);
  background: rgba(45, 55, 72, 0.95);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.quick-btn-label::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: rgba(45, 55, 72, 0.95);
}

.quick-btn:hover .quick-btn-label {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Pulse animation for favorites button when there are items */
.quick-btn.has-favorites {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(26, 138, 92, 0.4);
  }
  50% {
    box-shadow:
      0 4px 30px rgba(26, 138, 92, 0.8),
      0 0 20px rgba(26, 138, 92, 0.5);
  }
}

/* Mobile responsiveness for quick access buttons */
@media (max-width: 768px) {
  .quick-access {
    bottom: 20px;
    left: 15px;
    gap: 12px;
  }

  .quick-btn {
    width: 55px;
    height: 55px;
    font-size: 1.2rem;
  }

  .quick-btn-label {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(26, 138, 92, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(26, 138, 92, 0.8);
  }
}

/* Floating Notification */
.notification {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: #b8860b;
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  box-shadow: 0 4px 20px rgba(56, 161, 105, 0.4);
  transform: translateX(400px);
  transition: all 0.3s ease;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.notification.show {
  transform: translateX(0);
}

.notification i {
  font-size: 1.1rem;
}

/* Completion Celebration Modal */
.celebration {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: linear-gradient(135deg, #b8860b, #2d9d6e);
  color: white;
  padding: 2.5rem;
  border-radius: 25px;
  text-align: center;
  z-index: 3000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: 400px;
  margin: 0 20px;
}

.celebration.show {
  transform: translate(-50%, -50%) scale(1);
}

.celebration .celebration-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

.celebration h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.celebration p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
  line-height: 1.6;
}

.celebration-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Cairo", serif;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.celebration-btn:hover {
  background: white;
  color: #b8860b;
}

/* Favorite Heart Button Enhancement */
.favorite-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.favorite-btn.active {
  color: #e53e3e;
  background: rgba(229, 62, 62, 0.1);
  border: 2px solid #e53e3e;
}

.favorite-btn.active:hover {
  background: #e53e3e;
  color: white;
}

/* Audio Controls Enhancement */
.audio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.audio-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 20px;
  background: rgba(26, 138, 92, 0.1);
  color: #1a8a5c;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.audio-btn:hover {
  background: #1a8a5c;
  color: white;
  transform: translateY(-1px);
}

.audio-btn:active {
  transform: translateY(0) scale(0.95);
}

/* Search Enhancement */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-top: none;
}

.search-suggestion {
  padding: 12px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(247, 250, 252, 0.8);
  font-size: 0.9rem;
}

.search-suggestion:hover {
  background: rgba(26, 138, 92, 0.1);
  color: #1a8a5c;
}

.search-suggestion:last-child {
  border-bottom: none;
  border-radius: 0 0 15px 15px;
}

/* Enhanced Modal Styling */
.modal-content {
  position: relative;
  overflow: visible;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  height: 200px;
  border-radius: 20px;
  margin-bottom: 2rem;
}

.skeleton-text {
  height: 20px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.medium {
  width: 80%;
}

.skeleton-text.long {
  width: 100%;
}

/* Enhanced Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Progress Indicators */
.progress-ring {
  position: relative;
  width: 60px;
  height: 60px;
}

.progress-ring-circle {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.progress-ring-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 3;
}

.progress-ring-circle-fill {
  fill: none;
  stroke: #1a8a5c;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 188.4;
  stroke-dashoffset: 188.4;
  transition: stroke-dashoffset 0.3s ease;
}

/* Enhanced Button States */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Enhanced Focus States */
*:focus {
  outline: 2px solid #1a8a5c;
  outline-offset: 2px;
}

.nav-btn:focus,
.action-btn:focus,
.count-btn:focus {
  outline: 2px solid #1a8a5c;
  outline-offset: 2px;
}

/* Touch Feedback */
@media (hover: none) and (pointer: coarse) {
  .category-card:active,
  .adhkar-card:active,
  .nav-btn:active,
  .action-btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* Offline Indicator */
.offline-indicator {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #e53e3e;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
  z-index: 10000;
  animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
  from {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* Success Animations */
.success-animation {
  animation: bounceIn 0.6s ease;
}

.completion-celebration {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #b8860b, #2d9d6e);
  color: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  z-index: 10000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: bounceIn 0.8s ease;
}

.completion-celebration .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

/* Enhanced Tooltips */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.8rem;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* Keyboard Shortcuts Indicator */
.keyboard-shortcuts {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px;
  border-radius: 10px;
  font-size: 0.8rem;
  z-index: 1000;
  backdrop-filter: blur(10px);
  max-width: 250px;
}

.keyboard-shortcuts h4 {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
}

.keyboard-shortcuts .shortcut {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.keyboard-shortcuts .key {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
}

/* Enhanced Search */
.search-results-count {
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 1rem;
  text-align: center;
}

.search-highlight {
  background: #fef3c7;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

/* Dark Mode Enhancements */
body.dark-mode .progress-stats {
  background: linear-gradient(135deg, #2d3748, #4a5568);
  border: 1px solid #718096;
}

body.dark-mode .breadcrumb {
  background: rgba(45, 55, 72, 0.9);
  border: 1px solid #4a5568;
}

body.dark-mode .breadcrumb a {
  color: #e8c55a;
}

body.dark-mode .font-btn {
  background: rgba(45, 55, 72, 0.9);
  border-color: #4a5568;
  color: #e2e8f0;
}

body.dark-mode .font-btn.active {
  background: #1a8a5c;
  border-color: #1a8a5c;
}

body.dark-mode .quick-btn {
  background: #4a5568;
  box-shadow: 0 4px 20px rgba(74, 85, 104, 0.4);
}

body.dark-mode .quick-btn:hover {
  background: #1a8a5c;
}

/* Dark Mode Enhancements - Simplified */
body.dark-mode .progress-stats {
  background: linear-gradient(135deg, #2d3748, #4a5568);
  border: 1px solid #718096;
}

body.dark-mode .breadcrumb {
  background: rgba(45, 55, 72, 0.9);
  border: 1px solid #4a5568;
}

body.dark-mode .breadcrumb a {
  color: #e8c55a;
}

body.dark-mode .font-btn {
  background: rgba(45, 55, 72, 0.9);
  border-color: #4a5568;
  color: #e2e8f0;
}

body.dark-mode .font-btn.active {
  background: #1a8a5c;
  border-color: #1a8a5c;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .quick-access {
    bottom: 15px;
    left: 15px;
    gap: 10px;
  }

  .quick-home {
    bottom: 15px;
    right: 15px;
    gap: 10px;
  }

  .quick-btn {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .stat-item {
    padding: 0.8rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .font-controls {
    gap: 8px;
  }

  .font-btn {
    padding: 8px 12px;
    min-width: 70px;
    font-size: 0.8rem;
  }

  .celebration {
    padding: 2rem 1.5rem;
    margin: 0 15px;
  }

  .breadcrumb {
    padding: 10px 15px;
    font-size: 0.8rem;
  }

  .notification {
    bottom: 80px;
    right: 15px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .progress-stats {
    padding: 1.2rem;
  }

  .progress-stats h3 {
    font-size: 1.2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quick-access {
    bottom: 10px;
    left: 10px;
  }

  .quick-home {
    bottom: 10px;
    right: 10px;
  }

  .quick-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

/* Install Prompt Modal */
.install-prompt {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 5000;
  padding: 20px;
  animation: modalFadeIn 0.3s ease;
}

.install-prompt.show {
  display: flex;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.install-prompt .install-content {
  background: linear-gradient(135deg, #1a8a5c 0%, #0d6b4e 100%);
  color: white;
  padding: 0;
  border-radius: 25px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  position: relative;
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Close Button */
.install-prompt .install-close-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.install-prompt .install-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Header Section */
.install-prompt .install-header {
  padding: 2.5rem 2rem 1rem;
  text-align: center;
}

.install-prompt .install-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounceGlow 2s infinite;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

@keyframes bounceGlow {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
  }
  40% {
    transform: translateY(-10px) scale(1.05);
    filter: drop-shadow(0 5px 25px rgba(255, 255, 255, 0.5));
  }
  60% {
    transform: translateY(-5px) scale(1.02);
    filter: drop-shadow(0 3px 22px rgba(255, 255, 255, 0.4));
  }
}
.install-prompt .install-header h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.install-prompt .install-subtitle {
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 0;
  font-size: 1rem;
}

/* Benefits Section */
.install-prompt .install-benefits {
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  margin: 0;
}

.install-prompt .benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: right;
  direction: rtl;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.6s ease forwards;
}
.install-prompt .benefit-item:nth-child(1) {
  animation-delay: 0.1s;
}

.install-prompt .benefit-item:nth-child(2) {
  animation-delay: 0.2s;
}

.install-prompt .benefit-item:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.install-prompt .benefit-item:last-child {
  margin-bottom: 0;
}

.install-prompt .benefit-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}
.install-prompt .benefit-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.3rem 0;
  color: #fff;
}

.install-prompt .benefit-item p {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
}

/* Steps Container */
.install-prompt .install-steps-container {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.install-prompt .steps-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
  text-align: center;
}

/* Device Tabs */
.install-prompt .device-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.install-prompt .device-tab {
  padding: 0.7rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Cairo", serif;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 100px;
  justify-content: center;
}
.install-prompt .device-tab:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.install-prompt .device-tab.active {
  background: rgba(255, 255, 255, 0.9);
  color: #1a8a5c;
  border-color: white;
  font-weight: 600;
}

.install-prompt .device-tab i {
  font-size: 1rem;
}

/* Install Steps */
.install-prompt .install-steps {
  display: none;
  gap: 1rem;
  text-align: right;
  direction: rtl;
}

.install-prompt .install-steps.active {
  display: flex;
  flex-direction: column;
}

.install-prompt .install-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.install-prompt .install-step:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-5px);
}

.install-prompt .step-number {
  background: rgba(255, 255, 255, 0.9);
  color: #1a8a5c;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}
.install-prompt .install-step .step-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  flex: 1;
}

.install-prompt .install-step .step-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.install-prompt .step-content p {
  margin: 0;
  font-size: 0.95rem;
  text-align: right;
  line-height: 1.5;
}

.install-prompt .step-content i {
  color: #ffd700;
  margin: 0 5px;
}

/* Install Buttons */
.install-prompt .install-buttons {
  padding: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.install-prompt .install-btn {
  padding: 15px 30px;
  border: 2px solid white;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Cairo", serif;
  font-weight: 600;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 150px;
  justify-content: center;
}
.install-prompt .install-btn i {
  font-size: 1.1rem;
}

.install-prompt .install-btn.primary {
  background: white;
  color: #1a8a5c;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.install-prompt .install-btn.primary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.install-prompt .install-btn.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.install-prompt .install-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Dark Mode Support */
body.dark-mode .install-prompt .install-content {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  border: 1px solid #4a5568;
}

body.dark-mode .install-prompt .install-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

body.dark-mode .install-prompt .install-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .install-prompt .install-benefits {
  background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .install-prompt .benefit-icon {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .install-prompt .install-steps-container {
  background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .install-prompt .device-tab {
  border-color: #4a5568;
  background: rgba(255, 255, 255, 0.05);
  color: #a0aec0;
}

body.dark-mode .install-prompt .device-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #718096;
  color: #e2e8f0;
}

body.dark-mode .install-prompt .device-tab.active {
  background: #1a8a5c;
  color: white;
  border-color: #1a8a5c;
}

body.dark-mode .install-prompt .install-step {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .install-prompt .install-step:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .install-prompt .step-number {
  background: #1a8a5c;
  color: white;
}

body.dark-mode .install-prompt .install-btn.primary {
  background: #1a8a5c;
  color: white;
  border-color: #1a8a5c;
}

body.dark-mode .install-prompt .install-btn.primary:hover {
  background: #15724e;
}

body.dark-mode .install-prompt .install-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border-color: #4a5568;
}

body.dark-mode .install-prompt .install-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #718096;
}

/* Responsive Design */
@media (max-width: 768px) {
  .install-prompt .install-content {
    max-width: 95%;
    margin: 0 10px;
    max-height: 95vh;
  }

  .install-prompt .install-header {
    padding: 2rem 1.5rem 1rem;
  }

  .install-prompt .install-header h3 {
    font-size: 1.4rem;
  }

  .install-prompt .install-subtitle {
    font-size: 0.95rem;
  }

  .install-prompt .install-benefits,
  .install-prompt .install-steps-container,
  .install-prompt .install-buttons {
    padding: 1.5rem;
  }

  .install-prompt .benefit-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 0.8rem;
  }

  .install-prompt .benefit-icon {
    margin-bottom: 0.5rem;
  }

  .install-prompt .device-tabs {
    gap: 0.3rem;
  }

  .install-prompt .device-tab {
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
    min-width: 90px;
  }

  .install-prompt .install-step {
    padding: 0.8rem;
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  .install-prompt .step-content {
    flex-direction: column;
    text-align: center;
  }

  .install-prompt .install-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .install-prompt .install-btn {
    width: 100%;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .install-prompt .install-content {
    border-radius: 15px;
  }

  .install-prompt .install-header {
    padding: 1.5rem 1rem 0.5rem;
  }

  .install-prompt .install-header h3 {
    font-size: 1.2rem;
  }

  .install-prompt .install-subtitle {
    font-size: 0.9rem;
  }

  .install-prompt .install-benefits,
  .install-prompt .install-steps-container,
  .install-prompt .install-buttons {
    padding: 1rem;
  }

  .install-prompt .benefit-icon {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .install-prompt .device-tab {
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.5rem;
    min-width: 80px;
  }

  .install-prompt .device-tab i {
    font-size: 0.9rem;
  }

  .install-prompt .install-step {
    padding: 0.6rem;
  }

  .install-prompt .step-number {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .install-prompt .step-icon {
    font-size: 1.2rem;
  }

  .install-prompt .step-content p {
    font-size: 0.85rem;
  }
}

/* Category Favorite Button */
.category-favorite-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.category-favorite-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-favorite-btn.active {
  color: #e53e3e;
  background: rgba(229, 62, 62, 0.1);
  border: 2px solid #e53e3e;
}

.category-favorite-btn.active:hover {
  background: #e53e3e;
  color: white;
}

/* ==================== Prayer Times Section ==================== */

.prayer-times-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.prayer-times-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a8a5c, #d4a847);
}

.prayer-times-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.prayer-times-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.prayer-times-title i {
  font-size: 2rem;
  color: #1a8a5c;
}

.location-btn {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a8a5c;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.location-btn:hover {
  background: #1a8a5c;
  color: white;
  transform: scale(1.1);
  border-color: #1a8a5c;
}

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

.prayer-times-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #718096;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.prayer-times-location i {
  font-size: 1.1rem;
  color: #1a8a5c;
}

.next-prayer-countdown {
  background: #f7fafc;
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  border: 2px solid #e2e8f0;
  position: relative;
  z-index: 1;
}

.countdown-label {
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-prayer {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.countdown-time {
  font-size: 1.3rem;
  color: #1a8a5c;
  font-weight: 600;
}

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.prayer-card {
  background: #f7fafc;
  border-radius: 18px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  border: 2px solid #e2e8f0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.prayer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 138, 92, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.prayer-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 40px rgba(26, 138, 92, 0.2);
  border-color: #1a8a5c;
  background: white;
}

.prayer-card:hover::before {
  opacity: 1;
}

.prayer-card.next-prayer {
  background: linear-gradient(135deg, #1a8a5c 0%, #0d6b4e 100%);
  border: 3px solid #1a8a5c;
  box-shadow: 0 10px 30px rgba(26, 138, 92, 0.4);
  animation: nextPrayerPulse 2s ease-in-out infinite;
}

.prayer-card.next-prayer .prayer-name {
  color: white;
}

.prayer-card.next-prayer .prayer-time {
  color: white;
}

.prayer-card.next-prayer .prayer-icon {
  color: white;
}

@keyframes nextPrayerPulse {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(26, 138, 92, 0.4);
  }
  50% {
    box-shadow: 0 15px 40px rgba(26, 138, 92, 0.6);
  }
}

.prayer-icon {
  font-size: 2.5rem;
  color: #1a8a5c;
  transition: transform 0.3s ease;
}

.prayer-card:hover .prayer-icon {
  transform: scale(1.15) rotate(5deg);
}

.prayer-info {
  text-align: center;
  width: 100%;
}

.prayer-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.4rem;
}

.prayer-time {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a8a5c;
  font-family: "Cairo", sans-serif;
  direction: ltr;
}

.prayer-times-loading {
  text-align: center;
  padding: 3rem 1rem;
  color: #4a5568;
  position: relative;
  z-index: 1;
}

.prayer-times-loading i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #1a8a5c;
}

.prayer-times-loading p {
  font-size: 1.1rem;
  color: #718096;
}

.prayer-times-error {
  text-align: center;
  padding: 2rem 1rem;
  color: #4a5568;
  position: relative;
  z-index: 1;
}

.prayer-times-error i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #e53e3e;
}

.prayer-times-error p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #718096;
}

.retry-btn {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  color: #1a8a5c;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.retry-btn:hover {
  background: #1a8a5c;
  color: white;
  border-color: #1a8a5c;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 138, 92, 0.3);
}

/* Dark Mode for Prayer Times */
body.dark-mode .prayer-times-section {
  background: rgba(45, 55, 72, 0.95);
  border: 1px solid #4a5568;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .prayer-times-title {
  color: #e2e8f0;
}

body.dark-mode .prayer-times-location {
  color: #a0aec0;
}

body.dark-mode .next-prayer-countdown {
  background: linear-gradient(135deg, #1a8a5c 0%, #0d6b4e 100%);
  border: none;
}

body.dark-mode .countdown-label {
  color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .countdown-prayer {
  color: white;
}

body.dark-mode .countdown-time {
  color: white;
}

body.dark-mode .prayer-card {
  background: rgba(74, 85, 104, 0.5);
  border-color: #4a5568;
}

body.dark-mode .prayer-card:hover {
  background: rgba(74, 85, 104, 0.7);
  border-color: #1a8a5c;
}

body.dark-mode .prayer-card.next-prayer {
  background: linear-gradient(135deg, #1a8a5c 0%, #0d6b4e 100%);
  border-color: #1a8a5c;
}

body.dark-mode .prayer-name {
  color: #e2e8f0;
}

body.dark-mode .prayer-time {
  color: #1a8a5c;
}

body.dark-mode .prayer-card.next-prayer .prayer-name {
  color: white;
}

body.dark-mode .prayer-card.next-prayer .prayer-time {
  color: white;
}

body.dark-mode .location-btn {
  background: rgba(74, 85, 104, 0.5);
  border-color: #4a5568;
  color: #1a8a5c;
}

body.dark-mode .location-btn:hover {
  background: #1a8a5c;
  color: white;
  border-color: #1a8a5c;
}

body.dark-mode .prayer-icon {
  color: #a0aec0;
}

body.dark-mode .prayer-card.next-prayer .prayer-icon {
  color: white;
}

body.dark-mode .retry-btn {
  background: rgba(74, 85, 104, 0.5);
  border-color: #4a5568;
  color: #1a8a5c;
}

body.dark-mode .retry-btn:hover {
  background: #1a8a5c;
  color: white;
  border-color: #1a8a5c;
}

/* Responsive Design for Prayer Times */
@media (max-width: 768px) {
  .prayer-times-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .prayer-times-title {
    font-size: 1.5rem;
  }

  .prayer-times-title i {
    font-size: 1.6rem;
  }

  .location-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .next-prayer-countdown {
    padding: 1.2rem;
  }

  .countdown-prayer {
    font-size: 1.5rem;
  }

  .countdown-time {
    font-size: 1.1rem;
  }

  .prayer-times-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
  }

  .prayer-card {
    padding: 1rem;
  }

  .prayer-icon {
    font-size: 2rem;
  }

  .prayer-name {
    font-size: 1rem;
  }

  .prayer-time {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .prayer-times-section {
    padding: 1.2rem;
    border-radius: 20px;
  }

  .prayer-times-title {
    font-size: 1.3rem;
  }

  .prayer-times-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }

  .prayer-card {
    padding: 0.9rem;
  }

  .prayer-icon {
    font-size: 1.8rem;
  }

  .prayer-name {
    font-size: 0.95rem;
  }

  .prayer-time {
    font-size: 1.1rem;
  }

  .countdown-prayer {
    font-size: 1.3rem;
  }

  .countdown-time {
    font-size: 1rem;
  }
}

/* ========================================
   NEW FEATURES - STATISTICS DASHBOARD
   ======================================== */
.stats-dashboard {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.stats-header h3 {
  color: #2d3748;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-header h3 i {
  color: #1a8a5c;
}

.stats-toggle-btn {
  background: #f7fafc;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #718096;
}

.stats-toggle-btn:hover {
  background: #1a8a5c;
  color: white;
}

.stats-toggle-btn.collapsed i {
  transform: rotate(180deg);
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: linear-gradient(135deg, #1a8a5c 0%, #0d6b4e 100%);
  border-radius: 15px;
  padding: 1.2rem;
  text-align: center;
  color: white;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(26, 138, 92, 0.3);
}

.stat-card.streak {
  background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
}

.stat-card.today {
  background: linear-gradient(135deg, #2d9d6e 0%, #b8860b 100%);
}

.stat-card.week {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.stat-card.total {
  background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Weekly Chart */
.weekly-chart {
  background: #f7fafc;
  border-radius: 15px;
  padding: 1.2rem;
}

.weekly-chart h4 {
  color: #2d3748;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.weekly-chart h4 i {
  color: #1a8a5c;
}

.chart-bars {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 100px;
  gap: 8px;
}

.chart-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.chart-day .bar {
  width: 100%;
  min-height: 10px;
  background: linear-gradient(to top, #1a8a5c, #d4a847);
  border-radius: 5px 5px 0 0;
  transition: height 0.5s ease;
}

.chart-day span {
  font-size: 0.7rem;
  color: #718096;
}

/* ========================================
   QIBLA COMPASS
   ======================================== */
.qibla-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.qibla-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.qibla-header h3 {
  color: #2d3748;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.qibla-header h3 i {
  color: #b8860b;
}

.qibla-calibrate-btn {
  background: #f7fafc;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #718096;
}

.qibla-calibrate-btn:hover {
  background: #b8860b;
  color: white;
}

.qibla-compass-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.compass {
  width: 200px;
  height: 200px;
  position: relative;
}

.compass-dial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0f0f0, #ffffff);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.15),
    inset 0 2px 10px rgba(255, 255, 255, 0.8);
  position: relative;
  border: 4px solid #e2e8f0;
}

.compass-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 80px;
  transform: translate(-50%, -100%);
  background: linear-gradient(to top, #e53e3e, #c53030);
  border-radius: 3px;
  transform-origin: bottom center;
  transition: transform 0.3s ease;
  z-index: 2;
}

.compass-needle::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #4a5568;
  border-radius: 50%;
}

.compass-kaaba {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: #2d3748;
  z-index: 1;
}

.compass-direction {
  position: absolute;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4a5568;
}

.compass-direction.north {
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: #e53e3e;
}
.compass-direction.south {
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
}
.compass-direction.east {
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
}
.compass-direction.west {
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
}

.qibla-info {
  text-align: center;
}

.qibla-degrees {
  font-size: 2rem;
  font-weight: 700;
  color: #b8860b;
  margin-bottom: 0.3rem;
}

.qibla-status {
  color: #718096;
  font-size: 0.9rem;
}

/* ========================================
   READING MODE CONTROLS
   ======================================== */
.reading-mode-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.reading-btn {
  padding: 10px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Cairo", serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4a5568;
}

.reading-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: #1a8a5c;
  color: #1a8a5c;
}

.reading-btn.active {
  background: #1a8a5c;
  color: white;
  border-color: #1a8a5c;
}

/* ========================================
   FOCUS MODE
   ======================================== */
.focus-mode-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.focus-mode-overlay.hidden {
  display: none;
}

.focus-mode-content {
  max-width: 700px;
  width: 100%;
  text-align: center;
  color: white;
  position: relative;
}

.focus-close-btn {
  position: absolute;
  top: -60px;
  left: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.focus-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.focus-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 2rem;
}

.focus-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.focus-nav-btn:hover {
  background: rgba(26, 138, 92, 0.5);
  transform: scale(1.1);
}

.focus-counter {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
}

.focus-zikr {
  margin-bottom: 2rem;
}

.focus-text {
  font-family: "Amiri", serif;
  font-size: 2rem;
  line-height: 2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.focus-source {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.focus-fadl {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.8;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 15px;
}

.focus-progress {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.focus-progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.focus-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2d9d6e, #b8860b);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.focus-count-text {
  color: rgba(255, 255, 255, 0.7);
  min-width: 50px;
}

.focus-count-btn {
  background: linear-gradient(135deg, #1a8a5c 0%, #0d6b4e 100%);
  border: none;
  border-radius: 30px;
  padding: 15px 40px;
  color: white;
  font-size: 1.2rem;
  font-family: "Cairo", serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(26, 138, 92, 0.4);
}

.focus-count-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(26, 138, 92, 0.6);
}

/* ========================================
   AUTO-SCROLL CONTROL
   ======================================== */
.auto-scroll-control {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 30px;
  padding: 12px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  z-index: 1500;
}

.auto-scroll-control.hidden {
  display: none;
}

.scroll-speed-btn {
  background: #f7fafc;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #4a5568;
}

.scroll-speed-btn:hover {
  background: #1a8a5c;
  color: white;
}

#scrollSpeedLabel {
  font-size: 0.9rem;
  color: #4a5568;
  min-width: 90px;
  text-align: center;
}

.stop-scroll-btn {
  background: #e53e3e;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "Cairo", serif;
  transition: all 0.3s ease;
}

.stop-scroll-btn:hover {
  background: #c53030;
}

/* ========================================
   NIGHT READING MODE
   ======================================== */
body.night-reading {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.night-reading .header {
  background: rgba(26, 26, 46, 0.95);
  border-bottom: 1px solid #2d3748;
}

body.night-reading .category-card,
body.night-reading .adhkar-card,
body.night-reading .stats-dashboard,
body.night-reading .qibla-section {
  background: rgba(45, 55, 72, 0.9);
  border: 1px solid #4a5568;
}

body.night-reading .adhkar-text,
body.night-reading .focus-text {
  color: #e8c55a; /* Warm amber for easier reading */
  text-shadow: none;
}

body.night-reading .category-title,
body.night-reading .stats-header h3,
body.night-reading .qibla-header h3 {
  color: #e8c55a;
}

body.night-reading .welcome-title,
body.night-reading .welcome-description {
  color: #f7fafc;
}

/* ========================================
   OFFLINE BANNER
   ======================================== */
.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #e53e3e, #c53030);
  color: white;
  padding: 12px 20px;
  text-align: center;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  animation: slideInDown 0.3s ease;
}

.offline-banner.hidden {
  display: none;
}

/* ========================================
   DARK MODE OVERRIDES FOR NEW FEATURES
   ======================================== */
body.dark-mode .stats-dashboard,
body.dark-mode .qibla-section {
  background: rgba(45, 55, 72, 0.95);
  border: 1px solid #4a5568;
}

body.dark-mode .stats-header h3,
body.dark-mode .qibla-header h3 {
  color: #e2e8f0;
}

body.dark-mode .weekly-chart {
  background: rgba(26, 32, 44, 0.8);
}

body.dark-mode .weekly-chart h4 {
  color: #e2e8f0;
}

body.dark-mode .chart-day span {
  color: #a0aec0;
}

body.dark-mode .compass-dial {
  background: linear-gradient(145deg, #2d3748, #4a5568);
  border-color: #718096;
}

body.dark-mode .compass-direction {
  color: #e2e8f0;
}

body.dark-mode .compass-direction.north {
  color: #fc8181;
}

body.dark-mode .qibla-degrees {
  color: #68d391;
}

body.dark-mode .qibla-status {
  color: #a0aec0;
}

body.dark-mode .reading-btn {
  background: rgba(45, 55, 72, 0.9);
  border-color: #4a5568;
  color: #e2e8f0;
}

body.dark-mode .reading-btn:hover {
  border-color: #1a8a5c;
  color: #1a8a5c;
}

body.dark-mode .auto-scroll-control {
  background: rgba(45, 55, 72, 0.95);
}

body.dark-mode #scrollSpeedLabel {
  color: #e2e8f0;
}

/* ========================================
   RESPONSIVE DESIGN FOR NEW FEATURES
   ======================================== */
@media (max-width: 768px) {
  .stats-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .compass {
    width: 160px;
    height: 160px;
  }

  .compass-needle {
    height: 60px;
  }

  .reading-mode-controls {
    gap: 8px;
  }

  .reading-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .focus-text {
    font-size: 1.5rem;
  }

  .focus-nav-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .stats-cards {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .chart-bars {
    height: 80px;
  }

  .compass {
    width: 140px;
    height: 140px;
  }

  .reading-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .reading-btn span {
    display: none;
  }

  .focus-text {
    font-size: 1.3rem;
  }

  .auto-scroll-control {
    padding: 10px 15px;
    gap: 10px;
  }
}

/* Date and Daily Duaa Section */
.daily-info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.date-card,
.duaa-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.date-card:hover,
.duaa-card:hover {
  transform: translateY(-5px);
}

.date-header,
.duaa-header {
  font-size: 1.1rem;
  color: #718096;
  margin-bottom: 1rem;
  font-weight: 600;
}

.day-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.hijri-date {
  font-size: 1.4rem;
  color: #1a8a5c;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.gregorian-date {
  font-size: 1rem;
  color: #a0aec0;
  font-family: "Cairo", sans-serif;
}

.duaa-content {
  position: relative;
  padding: 1rem;
}

.duaa-text {
  font-family: "Amiri", serif;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 1rem;
}

.quote-icon {
  font-size: 1.5rem;
  color: rgba(26, 138, 92, 0.1);
  position: absolute;
  top: -10px;
  right: 0;
}

@media (max-width: 768px) {
  .daily-info-section {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode Support for Date and Duaa Section */
body.dark-mode .date-card,
body.dark-mode .duaa-card {
  background: rgba(45, 55, 72, 0.95);
  border: 1px solid #4a5568;
}

body.dark-mode .date-header,
body.dark-mode .duaa-header,
body.dark-mode .gregorian-date {
  color: #a0aec0;
}

body.dark-mode .day-name {
  color: #e2e8f0;
}

body.dark-mode .hijri-date {
  color: #90cdf4;
}

body.dark-mode .duaa-text {
  color: #e2e8f0;
}

body.dark-mode .quote-icon {
  color: rgba(144, 205, 244, 0.1);
}

/* ================================================================
   BOTTOM NAVIGATION & TAB SYSTEM
   ================================================================ */

/* Tab Content Sections */
.tab-content {
  display: none;
}

.tab-content.active-tab {
  display: block;
  animation: tabFadeIn 0.3s ease;
}

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

/* Give main enough bottom padding so content is never hidden behind bottom nav */
.main {
  padding-bottom: 80px !important;
}

/* Hide the old footer (content moved to profile tab) */
.footer {
  display: none !important;
}

/* ── Bottom Navigation Bar ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.06);
  z-index: 9999;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #a0aec0;
  font-family: "Cairo", sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.bottom-nav-item svg {
  width: 24px;
  height: 24px;
  transition: transform 0.25s ease;
}

.bottom-nav-item span {
  line-height: 1;
}

.bottom-nav-item.active {
  color: #1a8a5c;
}

.bottom-nav-item.active svg {
  transform: scale(1.12);
}

.bottom-nav-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #1a8a5c;
}

/* ── Raise floating buttons above bottom nav ── */
.quick-access {
  bottom: 80px !important;
}

.quick-home {
  bottom: 80px !important;
}

/* ── Dark Mode: Bottom Nav ── */
body.dark-mode .bottom-nav {
  background: rgba(26, 32, 44, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.3);
}

body.dark-mode .bottom-nav-item {
  color: #718096;
}

body.dark-mode .bottom-nav-item.active {
  color: #68d391;
}

body.dark-mode .bottom-nav-item.active::before {
  background: #68d391;
}

/* ================================================================
   PROFILE TAB STYLES
   ================================================================ */

.profile-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 0;
}

.profile-avatar-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a8a5c, #0d6b4e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 16px rgba(26, 138, 92, 0.35);
}

.profile-section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
}

body.dark-mode .profile-section-header h2 {
  color: #e2e8f0;
}

/* Profile Cards */
.profile-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

body.dark-mode .profile-card {
  background: rgba(45, 55, 72, 0.95);
  border: 1px solid #4a5568;
}

.profile-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #1a8a5c;
}

.profile-card-title h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2d3748;
}

body.dark-mode .profile-card-title h3 {
  color: #e2e8f0;
}

.profile-card-title i {
  font-size: 1.15rem;
}

.profile-empty-state {
  text-align: center;
  color: #a0aec0;
  padding: 1rem 0;
  font-size: 0.95rem;
}

body.dark-mode .profile-empty-state {
  color: #718096;
}

/* Profile Reading Stats Grid */
.profile-reading-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.profile-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a8a5c;
}

body.dark-mode .profile-stat-value {
  color: #68d391;
}

.profile-stat-label {
  font-size: 0.78rem;
  color: #718096;
  font-weight: 500;
}

body.dark-mode .profile-stat-label {
  color: #a0aec0;
}

/* Sadaqa Card */
.profile-sadaqa {
  text-align: center;
  font-family: "Amiri", serif;
  line-height: 2;
  font-size: 1.05rem;
  color: #4a5568;
  background: linear-gradient(
    135deg,
    rgba(26, 138, 92, 0.07),
    rgba(212, 168, 71, 0.07)
  );
}

body.dark-mode .profile-sadaqa {
  color: #cbd5e0;
  background: linear-gradient(
    135deg,
    rgba(26, 138, 92, 0.12),
    rgba(212, 168, 71, 0.12)
  );
}

/* Khatmah progress in profile */
.profile-khatmah-progress {
  margin-top: 0.5rem;
}

.profile-khatmah-bar {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

body.dark-mode .profile-khatmah-bar {
  background: rgba(255, 255, 255, 0.1);
}

.profile-khatmah-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a8a5c, #d4a847);
  border-radius: 5px;
  transition: width 0.5s ease;
}

.profile-khatmah-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #718096;
}

body.dark-mode .profile-khatmah-info {
  color: #a0aec0;
}

/* Responsive tweaks for bottom nav & profile */
@media (max-width: 480px) {
  .bottom-nav-item {
    font-size: 0.6rem;
  }
  .bottom-nav-item svg {
    width: 22px;
    height: 22px;
  }
  .profile-reading-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .profile-stat-value {
    font-size: 1.3rem;
  }
}
