/* Tarteel Nastaleeq Font */
@font-face {
  font-family: 'Nastaleeq';
  src: url('font/font.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables for theming */
:root {
  --primary-color: #0f4c3a;
  --primary-light: #1a6b50;
  --primary-dark: #0a3529;
  --secondary-color: #d4af37;
  --secondary-light: #e6c659;
  --secondary-dark: #b8941f;
  --accent-color: #8b4513;
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-light: #718096;
  --background-primary: #ffffff;
  --background-secondary: #f7fafc;
  --background-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Fixed responsive font sizes */
  --base-font-size: 1rem; /* 16px */
  --english-font-size: 1rem; /* Interface text */
  --arabic-font-size: 2rem; /* Duas and general Arabic */
}

/* Responsive font scaling for smaller screens */
@media (max-width: 768px) {
  :root {
    --base-font-size: 0.9375rem; /* 15px on mobile */
    --english-font-size: 0.9375rem;
    --arabic-font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  :root {
    --base-font-size: 0.875rem; /* 14px on small mobile */
    --english-font-size: 0.875rem;
    --arabic-font-size: 1.5rem;
  }
}

/* Dark theme variables */
[data-theme="dark"] {
  --text-primary: #f7fafc;
  --text-secondary: #e2e8f0;
  --text-light: #cbd5e0;
  --background-primary: #1a202c;
  --background-secondary: #2d3748;
  --background-card: #2d3748;
  --border-color: #4a5568;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: var(--base-font-size);
}

/* Arabic text styling - Indo-Pak style */
.arabic-text, [lang="ar"] {
  font-family: 'Nastaleeq', serif;
  line-height: 1.4;
  direction: rtl;
  text-align: right;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Only apply font size variable to Quran verse content */
.verse-arabic,
.dua-arabic.arabic-text {
  font-size: var(--arabic-font-size) !important;
  line-height: 1.5;
}

/* Nastaleeq font option */
body[data-arabic-font="nastaleeq"] .arabic-text,
body[data-arabic-font="nastaleeq"] [lang="ar"] {
  font-family: 'Nastaleeq', serif;
  line-height: 1.5;
}

/* iOS Safari button fix */
button, .btn, [role="button"] {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  cursor: pointer;
}

button:active, .btn:active, [role="button"]:active {
  opacity: 0.8;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  color: white;
}

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

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 1rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--background-primary);
}

/* Header */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.app-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.1rem;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.settings-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.1rem;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.settings-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Settings Page */
.settings-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-primary);
  z-index: 2000;
  display: none;
  overflow-y: auto;
}

.settings-page.active {
  display: block;
}

.settings-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  min-height: 100vh;
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem;
}

.settings-header h2 {
  font-size: 1.75rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.settings-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
}

.settings-close:hover {
  background-color: var(--background-secondary);
  color: var(--primary-color);
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-section {
  background-color: var(--background-card);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.settings-section h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Options */
.language-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.language-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.language-option:hover {
  border-color: var(--primary-color);
  background-color: var(--background-secondary);
}

.language-option input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 1rem;
  cursor: pointer;
  accent-color: var(--primary-color);
}

/* RTL support for language options */
[dir="rtl"] .language-option input[type="radio"] {
  margin-right: 0;
  margin-left: 1rem;
}

.language-option input[type="radio"]:checked + .language-label {
  color: var(--primary-color);
  font-weight: 600;
}

.language-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}

.language-name {
  font-size: 1rem;
  font-weight: 500;
}

.language-native {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Font Setting Group */
.font-setting-group {
  margin-bottom: 1.5rem;
}

.font-setting-group:last-child {
  margin-bottom: 0;
}

.font-setting-group label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

/* Font Slider Container */
.font-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.slider-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  min-width: 50px;
}

.font-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 23%, #e0e0e0 23%, #e0e0e0 100%);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.font-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.font-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.font-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.font-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.font-size-preview {
  padding: 1.5rem;
  background-color: var(--background-secondary);
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.font-size-preview .arabic-text {
  margin: 0;
  transition: font-size 0.2s ease;
  font-size: var(--arabic-font-size) !important;
}

/* Theme Options */
.theme-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.theme-option {
  padding: 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--background-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.theme-option:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.theme-option.active {
  border-color: var(--primary-color);
  background-color: rgba(15, 76, 58, 0.1);
  color: var(--primary-color);
}

.theme-option i {
  font-size: 2rem;
}

/* Font Options (similar to theme options) */
.font-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.font-option {
  padding: 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--background-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.font-option:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.font-option.active {
  border-color: var(--primary-color);
  background-color: rgba(15, 76, 58, 0.1);
  color: var(--primary-color);
}

.font-option .arabic-text {
  font-size: 2rem !important;
  line-height: 1.5;
}

.font-option-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background-color: var(--background-card);
  border-right: 1px solid var(--border-color);
  z-index: 1100;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.sidebar.open {
  left: 0;
}

/* RTL support for sidebar */
[dir="rtl"] .sidebar {
  left: auto;
  right: -300px;
  border-right: none;
  border-left: 1px solid var(--border-color);
}

[dir="rtl"] .sidebar.open {
  left: auto;
  right: 0;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
}

.sidebar-header h2 {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
}

.sidebar-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu {
  list-style: none;
  padding: 1rem 0;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  margin: 0 1rem 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
}

.nav-link:hover, .nav-link.active {
  background-color: var(--primary-color);
  color: white;
  transform: translateX(4px);
}

.nav-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* RTL support for nav links */
[dir="rtl"] .nav-link {
  transform: translateX(0);
}

[dir="rtl"] .nav-link.active,
[dir="rtl"] .nav-link:hover {
  transform: translateX(-4px);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-top: 60px;
  margin-bottom: 70px;
  padding: 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .main-content {
    margin-bottom: 0;
  }
}

/* Page Styles */
.page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

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

.page-header {
  margin-bottom: 2rem;
}

.page-header h2 {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.page-header h2 i {
  margin-right: 0.5rem;
}

/* RTL support for page headers */
[dir="rtl"] .page-header h2 i {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.hero-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: pulse 3s infinite;
}

.arabic-text {
  font-size: 1.5rem;
  margin-top: 1rem;
  opacity: 0.95;
}

/* Quick Actions */
.quick-actions {
  margin-bottom: 2rem;
}

.quick-actions h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.action-card {
  background-color: var(--background-card);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.action-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
}

.action-card span {
  font-weight: 600;
  color: var(--text-primary);
}

/* Features Section */
.features-section {
  margin-bottom: 2rem;
}

.features-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--background-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.feature-card i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Home Page - Introduction Section */
.intro-section {
  margin-bottom: 2rem;
}

.intro-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.intro-card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.intro-card p {
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

/* Installation Section */
.install-section {
  margin-bottom: 2rem;
}

.install-section > h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.install-card {
  background-color: var(--background-card);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.install-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.ios-install {
  border-top: 4px solid #007AFF;
}

.android-install {
  border-top: 4px solid #3DDC84;
}

.install-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.install-header i {
  font-size: 2rem;
}

.ios-install .install-header i {
  color: #007AFF;
}

.android-install .install-header i {
  color: #3DDC84;
}

.install-header h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 0;
}

.install-steps {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin-bottom: 1rem;
}

.install-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.install-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.install-note {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  border-left: 3px solid #ffc107;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #856404;
}

.install-note i {
  color: #ffc107;
}

/* Home Menu Section */
.home-menu-section {
  margin-bottom: 2rem;
}

.home-menu-section > h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-category {
  margin-bottom: 2rem;
}

.category-title {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.menu-card {
  background-color: var(--background-card);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--background-card) 0%, #f8f9fa 100%);
}

.menu-card.featured {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
}

.menu-card.featured:hover {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
}

.menu-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.menu-card span {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.menu-card small {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: normal;
}

/* Home Footer */
.home-footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
  border-top: 2px solid var(--border-color);
}

/* Content Sections */
.content-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-card {
  background-color: var(--background-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.section-card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-card h4 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.checklist-items, .spiritual-prep {
  list-style: none;
}

.checklist-items li, .spiritual-prep li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.checklist-items li:last-child, .spiritual-prep li:last-child {
  border-bottom: none;
}

.checklist-items li::before, .spiritual-prep li::before {
  content: '✓';
  position: absolute;
  left: 0.5rem;
  color: var(--secondary-color);
  font-weight: bold;
}

/* Checkable step items */
.step-item {
  display: flex;
  align-items: flex-start;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  background-color: var(--background-secondary);
  margin-bottom: 0.25rem;
  border-radius: 4px;
}

.step-item:hover {
  background-color: var(--background-card);
  box-shadow: var(--shadow-sm);
}

.step-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-right: 0.75rem;
  margin-top: 0.1rem;
  cursor: pointer;
  accent-color: var(--primary-color);
}

/* RTL support for checkboxes */
[dir="rtl"] .step-item input[type="checkbox"] {
  margin-right: 0;
  margin-left: 0.75rem;
}

.step-item.completed {
  opacity: 0.7;
  background-color: rgba(15, 76, 58, 0.05);
}

.step-item.completed label {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.step-item label {
  flex: 1;
  cursor: pointer;
  user-select: none;
}

.packing-categories {
  display: grid;
  gap: 1.5rem;
}

.category ul {
  list-style: none;
  margin-top: 0.5rem;
}

.category li {
  padding: 0.25rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.category li::before {
  content: '•';
  position: absolute;
  left: 0.5rem;
  color: var(--primary-color);
}

/* RTL support for list items */
[dir="rtl"] .category li {
  padding-left: 0;
  padding-right: 1.5rem;
}

[dir="rtl"] .category li::before {
  left: auto;
  right: 0.5rem;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-color: var(--background-card);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
  font-size: 0.75rem;
  min-width: 60px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  touch-action: manipulation;
}

.bottom-nav-item.active {
  color: var(--primary-color);
}

.bottom-nav-item:hover {
  background-color: var(--background-secondary);
}

.bottom-nav-item:active {
  background-color: var(--background-secondary);
  opacity: 0.7;
}

.bottom-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

/* Banners */
.offline-banner, .install-banner {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background-color: var(--accent-color);
  color: white;
  padding: 0.75rem 1rem;
  text-align: center;
  transform: translateY(-100%);
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.offline-banner.show, .install-banner.show {
  transform: translateY(0);
}

.install-banner {
  background-color: var(--secondary-color);
}

.install-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.install-btn {
  background-color: white;
  color: var(--secondary-dark);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.install-btn:hover {
  background-color: var(--background-secondary);
}

.dismiss-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: var(--transition);
}

.dismiss-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .action-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .packing-categories {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 0.5rem;
  }
  
  .hero-section {
    margin: 0.5rem;
  }
  
  .section-card {
    padding: 1rem;
  }
  
  .action-grid {
    grid-template-columns: 1fr;
  }
}

/* Print styles */
@media print {
  .app-header, .sidebar, .bottom-nav, .offline-banner, .install-banner {
    display: none !important;
  }
  
  .main-content {
    margin: 0;
    padding: 0;
  }
  
  .page {
    display: block !important;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
button:focus, .nav-link:focus, .action-card:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
  }
}

/* Font Size Controls */
.font-controls {
  position: sticky;
  top: 60px;
  z-index: 100;
  background-color: var(--background-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.font-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.font-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.font-control-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.font-control-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.font-size-btn {
  background-color: var(--background-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  min-width: 40px;
}

.font-size-btn:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.font-size-display {
  padding: 0.5rem 1rem;
  background-color: var(--background-secondary);
  border-radius: 6px;
  font-weight: 600;
  min-width: 60px;
  text-align: center;
  border: 1px solid var(--border-color);
}

/* Toggle Control */
.toggle-control {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

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

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

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

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

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

.toggle-label {
  font-weight: 600;
  color: var(--text-primary);
}

.toggle-font-controls {
  position: fixed;
  bottom: 80px;
  right: 1rem;
  z-index: 1001;
  background-color: var(--primary-color);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.toggle-font-controls:hover {
  transform: scale(1.1);
  background-color: var(--primary-light);
}

@media (min-width: 768px) {
  .toggle-font-controls {
    bottom: 1rem;
  }
}

/* Step Checkboxes */
.step-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--background-secondary);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  border: 2px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}

.step-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
}

.step-header .step-number {
  margin-right: 1rem;
}

/* RTL support for step numbers */
[dir="rtl"] .step-header .step-number {
  margin-right: 0;
  margin-left: 1rem;
}

.step-header .step-title {
  margin: 0;
  font-size: 1.3rem;
}

.step-checkbox-container:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.step-checkbox-container.completed {
  background-color: rgba(15, 76, 58, 0.1);
  border-color: var(--primary-color);
}

.step-checkbox {
  width: 24px;
  height: 24px;
  min-width: 24px;
  cursor: pointer;
  accent-color: var(--primary-color);
  margin-top: 0.25rem;
}

.step-content {
  flex: 1;
}

.step-number {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

/* RTL support for inline step numbers */
[dir="rtl"] .step-number {
  margin-right: 0;
  margin-left: 0.5rem;
}

.step-checkbox-container.completed .step-number {
  background-color: var(--secondary-color);
}

.step-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.step-checkbox-container.completed .step-title {
  color: var(--text-secondary);
  text-decoration: line-through;
}

.step-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-description > p > strong {
  display: block;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.step-description > p:first-child > strong {
  margin-top: 0;
}

/* Add spacing after translation paragraphs */
.step-description > p:not(:has(strong)):not(:has(em)) {
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.progress-bar-container {
  background-color: var(--background-card);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.progress-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.progress-bar {
  width: 100%;
  height: 20px;
  background-color: var(--background-secondary);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Audio Player Controls */
.dua-card {
  background-color: var(--background-card);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.dua-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.dua-arabic {
  margin: 0;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  border-left: none;
}

.dua-transliteration {
  display: none; /* Hide transliteration */
}

/* Hide speaker icons and audio controls */
.fa-volume-up,
.dua-audio-container,
.audio-volume-control {
  display: none !important;
}

.dua-divider {
  margin: 1.25rem 0;
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
  opacity: 0.4;
}

.dua-translation {
  color: var(--text-primary);
  margin-top: 0;
  line-height: 1.7;
  font-size: 1.05rem;
}

.dua-translation strong {
  color: var(--primary-dark);
}

/* Clickable Dua in Steps */
/* Section Divider Styles */
.section-divider {
  margin: 3rem 0 2rem 0;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: var(--border-radius);
  text-align: center;
  color: white;
  box-shadow: var(--shadow-lg);
}

.section-divider h2 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.section-divider p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin: 0;
}

/* Dua Category Styles */
.dua-category {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background-color: var(--background-secondary);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.category-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.category-title i {
  color: var(--secondary-color);
}

.dua-card h4 {
  color: var(--primary-dark);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* Dark theme adjustments */
[data-theme="dark"] .section-divider {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

[data-theme="dark"] .dua-category {
  background-color: rgba(45, 55, 72, 0.3);
  border-left-color: var(--secondary-color);
}

[data-theme="dark"] .category-title {
  color: var(--secondary-color);
}

[data-theme="dark"] .dua-card h4 {
  color: var(--secondary-light);
}

/* RTL Support for Categories */
[dir="rtl"] .category-title,
[dir="rtl"] .section-divider h2 {
  flex-direction: row-reverse;
}

[dir="rtl"] .dua-category {
  border-left: none;
  border-right: 4px solid var(--primary-color);
}

[dir="rtl"][data-theme="dark"] .dua-category {
  border-right-color: var(--secondary-color);
}

/* Accordion Styles */
.accordion-container {
  margin: 2rem 0;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--background-card);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.accordion-item:hover {
  box-shadow: var(--shadow-md);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
  text-align: left;
}

.accordion-header:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.accordion-title i {
  font-size: 1.3rem;
  color: var(--secondary-color);
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.accordion-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  margin-left: 1rem;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
  background-color: var(--background-card);
}

.accordion-item.active .accordion-content {
  max-height: 10000px;
  padding: 1.5rem;
}

.accordion-content .dua-card {
  margin-bottom: 1.5rem;
}

.accordion-content .dua-card:last-child {
  margin-bottom: 0;
}

/* Dark Theme Accordion */
[data-theme="dark"] .accordion-item {
  background-color: var(--background-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .accordion-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

[data-theme="dark"] .accordion-header:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

[data-theme="dark"] .badge {
  background: var(--secondary-dark);
  color: white;
}

/* RTL Support for Accordion */
[dir="rtl"] .accordion-header {
  text-align: right;
}

[dir="rtl"] .accordion-title {
  flex-direction: row-reverse;
}

[dir="rtl"] .accordion-icon {
  margin-left: 0;
  margin-right: 1rem;
}

/* Speech Synthesis Speaking State */
.speaking {
  background-color: var(--secondary-light) !important;
  animation: pulse 1.5s ease-in-out infinite;
  position: relative;
}

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

.dua-arabic.speaking,
.dua-transliteration.speaking,
.dua-translation.speaking {
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

[data-theme="dark"] .speaking {
  background-color: rgba(76, 175, 80, 0.2) !important;
}

/* ========================================
   FLASHCARD VIEW STYLES
   ======================================== */

/* View Toggle Buttons */
.view-toggle {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.view-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-color);
  background: white;
  color: var(--primary-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.view-btn i {
  font-size: 1rem;
}

/* Flashcard Container */
#flashcard-container {
  display: none;
  position: fixed;
  top: 0 !important;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

/* Standalone Flashcards Page (Perform Umrah) */
#flashcard-container-standalone {
  display: block;
  position: fixed;
  top: 0 !important;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

/* Hide header and bottom nav when on standalone flashcards page */
#page-flashcards.active ~ .app-header,
#page-flashcards.active ~ .bottom-nav {
  display: none !important;
}

.page#page-flashcards {
  padding: 0;
  margin: 0;
  overflow: hidden;
}

/* Flashcard Content Wrapper */
.flashcard-content-wrapper {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  background: white;
  position: relative;
}

[data-theme="dark"] .flashcard-content-wrapper {
  background: var(--background-dark);
}

/* Progress Bar */
.flashcard-progress {
  background: white;
  padding: 1.5rem;
  border-bottom: 1px solid var(--background-light);
  flex-shrink: 0;
}

[data-theme="dark"] .flashcard-progress {
  background: var(--background-card);
  border-bottom-color: var(--background-dark);
}

.progress-info {
  text-align: center;
  margin-bottom: 0.75rem;
}

.progress-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.current-step-num {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 700;
}

.total-steps {
  color: var(--text-secondary);
}

.progress-bar-flashcard {
  width: 100%;
  height: 8px;
  background: var(--background-light);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill-flashcard {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* Flashcard */
.flashcard {
  background: white;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 180px; /* Space for FAB buttons */
}

[data-theme="dark"] .flashcard {
  background: var(--background-dark);
}

.flashcard-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.flashcard-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

/* Close Button in Header */
.flashcard-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.flashcard-close-btn:hover {
  background: white;
  color: var(--primary-color);
  transform: scale(1.1);
}

.step-number-badge {
  background: white;
  color: var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.flashcard-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.flashcard-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

/* Flashcard Dua Card Styling */
.flashcard-dua-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.flashcard-dua-card .dua-arabic {
  font-size: 2.5rem;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-primary);
  width: 100%;
}

.flashcard-dua-card .dua-translation {
  font-size: 1.3rem;
  line-height: 2;
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
}

/* Circuit Cards - Multiple Duas */
.circuit-duas-container {
  width: 100%;
  padding: 2rem;
  overflow-y: auto;
}

.circuit-dua-section {
  margin-bottom: 2.5rem;
}

.circuit-dua-section:last-of-type {
  margin-bottom: 1.5rem;
}

.circuit-dua-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.optional-dua .circuit-dua-title {
  color: var(--secondary-color);
  font-weight: 600;
}

.optional-dua .circuit-dua-title::before {
  content: "⭐ ";
}

.circuit-dua-section .flashcard-dua-card {
  padding: 2rem;
  margin-bottom: 0;
}

.circuit-dua-section .dua-arabic {
  font-size: 2rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--border-color);
}

.circuit-dua-section .dua-translation {
  font-size: 1.1rem;
  line-height: 1.8;
  font-style: italic;
}

.circuit-instruction {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: white;
}

.circuit-instruction i {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.circuit-instruction p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
}

[data-theme="dark"] .circuit-instruction {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

/* Yemeni Corner Section */
.yemeni-corner-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 3px dashed var(--primary-light);
}

.yemeni-corner-instruction {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: white;
}

.yemeni-corner-instruction i {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.yemeni-corner-instruction p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 600;
}

[data-theme="dark"] .yemeni-corner-instruction {
  background: linear-gradient(135deg, var(--secondary-dark), #1a5c3a);
}

[data-theme="dark"] .yemeni-corner-section {
  border-top-color: var(--primary-dark);
}

/* Final Black Stone Section */
.final-black-stone-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 3px solid var(--primary-color);
}

.final-black-stone-instruction {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: white;
}

.final-black-stone-instruction i {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.final-black-stone-instruction p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 700;
}

[data-theme="dark"] .final-black-stone-instruction {
  background: linear-gradient(135deg, var(--primary-dark), #1a3a5c);
}

[data-theme="dark"] .final-black-stone-section {
  border-top-color: var(--primary-light);
}

/* Tawaf Completion Message */
.tawaf-completion {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #4caf50, #388e3c);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: white;
  text-align: center;
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}

.tawaf-completion i {
  font-size: 2.5rem;
}

.tawaf-completion p {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.6;
  font-weight: 700;
}

[data-theme="dark"] .tawaf-completion {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.4);
}

/* Dark mode for flashcard dua cards */
[data-theme="dark"] .flashcard-dua-card {
  background: var(--background-dark);
  border-color: var(--border-dark);
}

[data-theme="dark"] .flashcard-dua-card.dua-playing {
  border-color: var(--primary-light);
  border-bottom-color: var(--primary-light);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
  animation: pulse-border-dark 1.5s ease-in-out infinite;
}

@keyframes pulse-border-dark {
  0%, 100% {
    border-bottom-color: var(--primary-light);
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
  }
  50% {
    border-bottom-color: var(--secondary-light);
    box-shadow: 0 4px 25px rgba(168, 162, 255, 0.5);
  }
}

[data-theme="dark"] .flashcard-dua-card .dua-arabic {
  border-bottom-color: var(--border-dark);
}

[data-theme="dark"] .circuit-dua-section .dua-arabic {
  border-bottom-color: var(--border-dark);
}

/* Instruction Steps Container */
.instruction-steps-container {
  padding: 2rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.instruction-intro {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-radius: var(--border-radius);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.instruction-intro i {
  font-size: 1.8rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.instruction-intro p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 500;
}

.instruction-step {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px dashed var(--border-color);
}

.instruction-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.instruction-step-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 700;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.instruction-text {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--background-light);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-color);
}

.instruction-text i {
  color: var(--primary-color);
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.instruction-dua-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.instruction-dua-card .dua-arabic {
  font-size: 1.8rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.instruction-dua-card .dua-translation {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
}

.instruction-dua-section {
  margin-bottom: 1.5rem;
}

.instruction-dua-section:last-child {
  margin-bottom: 0;
}

.instruction-dua-subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  text-align: left;
}

.instruction-dua-section.optional-dua .instruction-dua-subtitle {
  color: var(--secondary-color);
  font-weight: 600;
}

.instruction-dua-section.optional-dua .instruction-dua-subtitle::before {
  content: "⭐ ";
}

.instruction-dua-section .instruction-dua-card {
  margin-top: 0.5rem;
}

.instruction-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.875rem 1.125rem;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border-left: 4px solid #ff9800;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e65100;
  font-weight: 500;
}

.instruction-note i {
  color: #ff9800;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Dark mode for instruction steps */
[data-theme="dark"] .instruction-intro {
  background: linear-gradient(135deg, var(--primary-dark), #1a3a5c);
}

[data-theme="dark"] .instruction-step {
  border-bottom-color: var(--border-dark);
}

[data-theme="dark"] .instruction-step-title {
  color: var(--primary-light);
}

[data-theme="dark"] .instruction-text {
  background: var(--background-card);
  border-left-color: var(--primary-light);
  color: var(--text-light);
}

[data-theme="dark"] .instruction-text i {
  color: var(--primary-light);
}

[data-theme="dark"] .instruction-dua-card {
  background: var(--background-dark);
  border-color: var(--border-dark);
}

[data-theme="dark"] .instruction-dua-card.clickable-dua:hover {
  border-color: var(--primary-light);
}

[data-theme="dark"] .instruction-dua-card.dua-playing {
  border-color: var(--primary-light);
  border-bottom-color: var(--primary-light);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
  animation: pulse-border-dark 1.5s ease-in-out infinite;
}

[data-theme="dark"] .instruction-dua-card .dua-arabic {
  border-bottom-color: var(--border-dark);
}

[data-theme="dark"] .instruction-dua-card .dua-translation {
  color: var(--text-secondary);
}

[data-theme="dark"] .instruction-note {
  background: linear-gradient(135deg, #3e2723, #1b0000);
  border-left-color: #ff6f00;
  color: #ffab40;
}

[data-theme="dark"] .instruction-note i {
  color: #ff9800;
}

.flashcard-summary {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.flashcard-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.flashcard-items li {
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--background-light);
  border-radius: var(--border-radius);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.flashcard-items li i {
  color: var(--primary-color);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Flashcard Navigation */
/* Floating Action Button - Joystick Style */
.fab-joystick {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1000;
}

.fab-horizontal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.fab-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--primary-color);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  font-size: 1.3rem;
  flex-shrink: 0;
  margin: 0;
}

.fab-btn:active:not(:disabled) {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.fab-btn:disabled {
  background: var(--background-light);
  color: var(--text-secondary);
  cursor: not-allowed;
  opacity: 0.4;
}

[data-theme="dark"] .fab-btn {
  background: var(--primary-light);
}

[data-theme="dark"] .fab-btn:disabled {
  background: var(--background-dark);
  color: var(--text-secondary);
}

/* Center FAB button (Play Verse) - uses same color as other buttons */
.fab-center.playing {
  background: #e74c3c;
}

[data-theme="dark"] .fab-center.playing {
  background: #e74c3c;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fab-joystick {
    bottom: 1rem;
    right: 1rem;
  }
  
  .fab-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* Old navigation styles - keep for backwards compatibility */
.flashcard-navigation {
  display: none;
}

/* Dark Mode Support */
[data-theme="dark"] .view-btn {
  background: var(--background-dark);
  border-color: var(--primary-light);
  color: var(--primary-light);
}

[data-theme="dark"] .view-btn.active {
  background: var(--primary-color);
  color: white;
}

[data-theme="dark"] .flashcard-items li {
  background: var(--background-dark);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .flashcard-close-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  
  .flashcard-header {
    padding: 1.25rem;
  }
  
  .flashcard-title {
    font-size: 1.25rem;
  }
  
  .flashcard-body {
    padding: 1rem;
  }
  
  .flashcard-dua-card {
    padding: 1.5rem;
  }
  
  .flashcard-dua-card .dua-arabic {
    font-size: 1.5rem;
    line-height: 2.2;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
  }
  
  .flashcard-dua-card .dua-translation {
    font-size: 1rem;
  }
  
  .circuit-duas-container {
    padding: 1rem;
  }
  
  .circuit-dua-section .dua-arabic {
    font-size: 1.5rem;
    line-height: 2.2;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }
  
  .circuit-dua-section .dua-translation {
    font-size: 1rem;
  }
  
  .circuit-dua-title {
    font-size: 1rem;
  }
  
  .circuit-instruction {
    padding: 1.25rem;
  }
  
  .circuit-instruction p {
    font-size: 1rem;
  }
  
  .yemeni-corner-instruction {
    padding: 1.25rem;
  }
  
  .yemeni-corner-instruction p {
    font-size: 1rem;
  }
  
  .final-black-stone-instruction {
    padding: 1.25rem;
  }
  
  .final-black-stone-instruction p {
    font-size: 1rem;
  }
  
  .tawaf-completion {
    padding: 1.5rem;
  }
  
  .tawaf-completion i {
    font-size: 2rem;
  }
  
  .tawaf-completion p {
    font-size: 1.1rem;
  }
  
  .flashcard-items li {
    font-size: 1rem;
    padding: 0.875rem;
  }
  
  .instruction-steps-container {
    padding: 1rem;
  }
  
  .instruction-intro {
    padding: 1.25rem;
  }
  
  .instruction-intro i {
    font-size: 1.5rem;
  }
  
  .instruction-intro p {
    font-size: 1rem;
  }
  
  .instruction-step-title {
    font-size: 1.2rem;
  }
  
  .step-number {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
  
  .instruction-text {
    font-size: 1rem;
    padding: 0.875rem 1rem;
  }
  
  .instruction-dua-card {
    padding: 1.25rem;
  }
  
  .instruction-dua-card .dua-arabic {
    font-size: 1.5rem;
    line-height: 2.2;
  }
  
  .instruction-dua-card .dua-translation {
    font-size: 1rem;
  }
  
  .instruction-note {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
  
  .instruction-dua-subtitle {
    font-size: 0.95rem;
    margin-top: 1.25rem;
  }
  
  .nav-btn {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
  
  .view-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .view-toggle {
    flex-direction: row;
    width: 100%;
  }
  
  .view-btn {
    flex: 1;
  }
  
  .flashcard-navigation {
    flex-direction: row;
  }
  
  .nav-btn {
    min-width: 0;
  }
}

/* Halq/Taqsir Options Styling */
.halq-taqsir-section {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--background-secondary);
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
}

.halq-taqsir-section.men {
  border-left: 4px solid #3b82f6;
}

.halq-taqsir-section.women {
  border-left: 4px solid #ec4899;
}

.halq-taqsir-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.halq-taqsir-title i {
  font-size: 1.5rem;
}

.halq-taqsir-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.halq-taqsir-option {
  background: var(--background-card);
  padding: 1.25rem;
  border-radius: 10px;
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.halq-taqsir-option.recommended {
  border-color: var(--secondary-color);
  background: linear-gradient(to right, rgba(212, 175, 55, 0.05), transparent);
}

.halq-taqsir-option.required {
  border-color: var(--primary-color);
  background: linear-gradient(to right, rgba(15, 76, 58, 0.05), transparent);
}

.option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.option-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recommended-badge {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: white;
}

.required-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
}

.option-description {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

.option-details {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.halq-taqsir-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: rgba(15, 76, 58, 0.1);
  border-left: 4px solid var(--primary-color);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.halq-taqsir-note.warning-note {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: #ef4444;
}

.halq-taqsir-note.warning-note i {
  color: #ef4444;
}

.halq-taqsir-note i {
  color: var(--primary-color);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* Dark mode adjustments */
[data-theme="dark"] .halq-taqsir-section {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .halq-taqsir-option {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .halq-taqsir-option.recommended {
  background: linear-gradient(to right, rgba(212, 175, 55, 0.1), transparent);
}

[data-theme="dark"] .halq-taqsir-option.required {
  background: linear-gradient(to right, rgba(15, 76, 58, 0.1), transparent);
}

[data-theme="dark"] .halq-taqsir-note {
  background: rgba(15, 76, 58, 0.2);
}

[data-theme="dark"] .halq-taqsir-note.warning-note {
  background: rgba(239, 68, 68, 0.2);
}

/* Umrah Completion Styling */
.completion-section {
  margin: 1.5rem 0;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background: var(--background-card);
  border: 2px solid var(--border-color);
}

.restrictions-section {
  border-left: 4px solid #10b981;
  background: linear-gradient(to right, rgba(16, 185, 129, 0.05), transparent);
}

.recommended-section {
  border-left: 4px solid var(--secondary-color);
  background: linear-gradient(to right, rgba(212, 175, 55, 0.05), transparent);
}

.completion-section-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
}

.restrictions-section .completion-section-title i {
  color: #10b981;
  font-size: 1.35rem;
}

.recommended-section .completion-section-title i {
  color: var(--secondary-color);
  font-size: 1.35rem;
}

.completion-items {
  display: grid;
  gap: 0.875rem;
}

.completion-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--background-secondary);
  border-radius: 8px;
  transition: var(--transition);
}

.completion-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.completion-item i {
  color: #10b981;
  font-size: 1.25rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.recommended-item i {
  color: var(--secondary-color);
}

.completion-item span {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.completion-closing {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--border-radius);
  color: white;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.completion-closing i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
  opacity: 0.9;
}

.completion-closing p {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
  font-style: italic;
}

/* Dark mode adjustments for completion */
[data-theme="dark"] .completion-section {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .restrictions-section {
  background: linear-gradient(to right, rgba(16, 185, 129, 0.1), transparent);
}

[data-theme="dark"] .recommended-section {
  background: linear-gradient(to right, rgba(212, 175, 55, 0.1), transparent);
}

[data-theme="dark"] .completion-item {
  background: rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments for completion */
@media (max-width: 768px) {
  .completion-section {
    padding: 1.25rem;
  }
  
  .completion-section-title {
    font-size: 1.05rem;
  }
  
  .completion-item {
    padding: 0.75rem 0.875rem;
  }
  
  .completion-item span {
    font-size: 0.9rem;
  }
  
  .completion-closing {
    padding: 1.25rem;
  }
  
  .completion-closing i {
    font-size: 1.75rem;
  }
  
  .completion-closing p {
    font-size: 0.95rem;
  }
}

/* Modern Umrah Steps Page Design */
.umrah-steps-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-header-modern {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  padding: 2.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  color: white;
  box-shadow: 0 8px 32px rgba(15, 76, 58, 0.15);
  position: relative;
  overflow: hidden;
}

.page-header-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.page-header-modern .header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.page-header-modern .header-icon {
  font-size: 3.5rem;
  opacity: 0.95;
  animation: float 3s ease-in-out infinite;
}

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

.page-header-modern .header-text h2 {
  font-size: 2.25rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header-modern .subtitle {
  font-size: 1.1rem;
  opacity: 0.92;
  margin: 0;
  font-weight: 400;
}

.view-toggle-modern {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.view-btn-modern {
  flex: 1;
  min-width: 160px;
  padding: 1rem 1.75rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: white;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.view-btn-modern:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.view-btn-modern.active {
  background: white;
  color: var(--primary-color);
  border-color: white;
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.view-btn-modern i {
  font-size: 1.2rem;
}

/* Journey Overview */
.journey-overview {
  background: var(--background-card);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.journey-overview h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.journey-overview h3 i {
  font-size: 1.75rem;
}

.overview-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Timeline */
.steps-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.timeline-step {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.timeline-dot {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-md);
}

.timeline-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 0 0.25rem 0;
}

.timeline-content p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

.timeline-connector {
  flex-grow: 0.5;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  min-width: 30px;
}

/* Step Cards - Modern Design */
.umrah-step-card {
  background: var(--background-card);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary-color);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.umrah-step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.step-header-modern {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.step-number-badge {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(15, 76, 58, 0.25);
  position: relative;
  overflow: hidden;
}

.step-number-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
}

.step-title-group h3 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.step-arabic-title {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: 1.35rem;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.6;
}

.step-description-modern {
  font-size: 1.075rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--background-secondary);
  border-radius: 12px;
  border-left: 3px solid var(--secondary-color);
}

/* Action Sections */
.action-section {
  margin: 2.5rem 0;
}

.action-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(15, 76, 58, 0.1);
}

.action-section-title i {
  color: var(--secondary-color);
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.action-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.action-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--background-secondary);
  border-radius: 12px;
  margin-bottom: 0;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.action-item::before {
  content: "✓";
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 3px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 76, 58, 0.1);
  border-radius: 8px;
}

/* Hide checkboxes - not needed for study guide */
.action-checkbox {
  display: none;
}

.action-text {
  flex: 1;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Dua Cards in Steps */
.step-dua-card {
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
  border: 2px solid var(--secondary-color);
  border-left: 5px solid var(--secondary-color);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.1);
  position: relative;
}

.step-dua-card::after {
  content: '☪';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  opacity: 0.08;
  color: var(--secondary-color);
}

.dua-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.35rem;
  background: linear-gradient(135deg, var(--secondary-color), #c9a944);
  color: white;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  letter-spacing: 0.3px;
}

/* Info Boxes */
.info-box {
  padding: 1.5rem 1.75rem;
  background: rgba(59, 130, 246, 0.08);
  border-left: 5px solid #3b82f6;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 3px 12px rgba(59, 130, 246, 0.12);
  position: relative;
}

.info-box::before {
  content: 'ℹ';
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 1.75rem;
  opacity: 0.15;
  color: #3b82f6;
  font-weight: bold;
}

.info-box.warning {
  background: rgba(239, 68, 68, 0.08);
  border-left-color: #ef4444;
  box-shadow: 0 3px 12px rgba(239, 68, 68, 0.12);
}

.info-box.warning::before {
  content: '⚠';
  color: #ef4444;
}

.info-box.tip {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: #10b981;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.12);
}

.info-box.tip::before {
  content: '💡';
  color: #10b981;
}

.info-box-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.info-box p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Responsive Design for Steps */
@media (max-width: 768px) {
  .page-header-modern {
    padding: 1.5rem;
  }
  
  .page-header-modern .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .page-header-modern .header-text h2 {
    font-size: 1.5rem;
  }
  
  .timeline-step {
    min-width: 120px;
  }
  
  .timeline-dot {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .timeline-connector {
    display: none;
  }
  
  .umrah-step-card {
    padding: 1.5rem;
  }
  
  .step-header-modern {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .step-title-group h3 {
    font-size: 1.35rem;
  }
  
  .view-btn-modern {
    min-width: 130px;
    font-size: 0.875rem;
  }
}

/* Dark Mode Adjustments for Umrah Steps */
[data-theme="dark"] .journey-overview {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .umrah-step-card {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .action-item {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .step-dua-card {
  background: linear-gradient(to right, rgba(212, 175, 55, 0.1), transparent);
}

/* Leaflet Map Styles */
#qibla-map {
  width: 100vw !important;
  height: 100vh !important;
  position: fixed !important;
  top: 60px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 70px !important;
  z-index: 1;
  background: #f0f0f0;
  margin: 0 !important;
  padding: 0 !important;
}

/* Qibla page specific */
#page-qibla {
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

#page-qibla .page-header {
  display: none;
}

#page-qibla .content-sections {
  padding: 0;
  margin: 0;
}

.leaflet-container {
  width: 100% !important;
  height: 100% !important;
  border-radius: 8px;
  background: #f0f0f0;
}

.leaflet-tile-pane {
  z-index: 1;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-popup-pane {
  z-index: 700;
}

/* Fix for marker icons */
.user-marker,
.kaaba-marker,
.qibla-arrow-large {
  z-index: 1000 !important;
}

/* Ensure map tiles load */
.leaflet-tile {
  max-width: none !important;
}

.leaflet-tile-container {
  pointer-events: auto;
}

/* Animated Qibla line */
@keyframes dash {
  to {
    stroke-dashoffset: -50;
  }
}

.qibla-line-animated {
  animation: dash 2s linear infinite;
}

/* Responsive map height */
@media (max-width: 768px) {
  #qibla-map {
    height: 450px !important;
    min-height: 450px !important;
  }
}

@media (max-width: 480px) {
  #qibla-map {
    height: 400px !important;
    min-height: 400px !important;
  }
}

/* Makkah Map Styles */
#makkah-map {
  width: 100vw !important;
  height: 100vh !important;
  position: fixed !important;
  top: 60px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 70px !important;
  z-index: 1 !important;
  background: #f0f0f0;
  margin: 0 !important;
  padding: 0 !important;
}

#makkah-map .leaflet-container {
  width: 100% !important;
  height: 100% !important;
  background: #f0f0f0;
}

.poi-marker {
  z-index: 1000 !important;
}

/* Makkah page specific */
#page-makkah-guide {
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Makkah Page Title */
.makkah-title {
  position: fixed;
  top: 80px;
  left: 70px;
  z-index: 900;
  background: var(--background-card);
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
}

.makkah-title i {
  color: var(--primary-color);
  font-size: 20px;
}

.makkah-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Map View Toggle Button */
.map-view-toggle {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1500;
  background: var(--background-card);
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

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

.map-view-toggle:active {
  transform: translateY(0);
}

.map-view-toggle i {
  font-size: 16px;
}

/* POI Legend Toggle Button */
.poi-legend-toggle {
  position: fixed;
  top: 130px;
  left: 20px;
  z-index: 1500;
  background: var(--background-card);
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

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

.poi-legend-toggle:active {
  transform: translateY(0);
}

.poi-legend-toggle i {
  font-size: 16px;
  color: var(--primary-color);
}

/* POI Legend Panel */
.poi-legend-panel {
  position: fixed;
  left: 20px;
  top: 180px;
  bottom: 90px;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: var(--background-card);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 900;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.poi-legend-panel.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-20px);
}

/* Legend Header */
.legend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--primary-color);
  color: white;
}

.legend-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-legend-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.close-legend-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Legend Search */
.legend-search {
  position: relative;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-search i {
  color: var(--text-light);
  font-size: 14px;
}

#legend-search-input,
#madinah-legend-search-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}

#legend-search-input::placeholder,
#madinah-legend-search-input::placeholder {
  color: var(--text-light);
}

/* Legend List */
.legend-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}

.legend-item:hover {
  background: var(--background-secondary);
}

.legend-item:active {
  background: #e8f5f1;
}

.legend-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.legend-icon i {
  font-size: 16px;
}

.legend-info {
  flex: 1;
  min-width: 0;
}

.legend-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legend-desc {
  font-size: 12px;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legend-arrow {
  color: var(--text-light);
  font-size: 12px;
  flex-shrink: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .poi-legend-panel {
    width: 280px;
  }
  
  .poi-legend-toggle {
    top: 120px;
    left: 16px;
    padding: 10px 14px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .poi-legend-panel {
    left: 12px;
    right: 12px;
    width: auto;
    top: 170px;
    bottom: 80px;
  }
  
  .poi-legend-toggle {
    left: 12px;
  }
}

/* Makkah Drawer Styles */
.makkah-drawer {
  position: fixed;
  bottom: 0px;
  left: 42px;
  right: 42px;
  background: var(--background-card);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  transform: translateY(calc(100% - 60px));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  max-height: calc(100vh - 130px);
  overflow: hidden;
}

.makkah-drawer.drawer-hidden {
  transform: translateY(calc(100% + 100px)) !important;
  pointer-events: none;
  visibility: hidden;
}

.makkah-drawer.drawer-open {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.drawer-handle {
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.handle-bar {
  width: 40px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  margin: 0 auto;
}

.drawer-content {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 0 1.5rem 1.5rem;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: sticky;
  top: 0;
  background: var(--background-card);
  padding: 1rem 0;
  z-index: 10;
  border-bottom: 2px solid var(--border-color);
}

.drawer-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary-color);
  flex: 1;
}

.close-drawer-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.close-drawer-btn:hover {
  color: var(--primary-color);
}

.drawer-body {
  font-size: 0.95rem;
  line-height: 1.6;
}

.drawer-body h4 {
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.drawer-body ul {
  margin: 0.5rem 0 0.5rem 1.5rem;
  padding: 0;
}

.drawer-body li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Madinah Map Styles */
#madinah-map {
  width: 100vw !important;
  height: 100vh !important;
  position: fixed !important;
  top: 60px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 70px !important;
  z-index: 1 !important;
  background: #f0f0f0;
  margin: 0 !important;
  padding: 0 !important;
}

#madinah-map .leaflet-container {
  width: 100% !important;
  height: 100% !important;
  background: #f0f0f0;
}

/* Madinah page specific */
#page-madinah-guide {
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Madinah Page Title */
.madinah-title {
  position: fixed;
  top: 80px;
  left: 70px;
  z-index: 900;
  background: var(--background-card);
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
}

.madinah-title i {
  color: var(--primary-color);
  font-size: 20px;
}

.madinah-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Makkah page specific */
#page-makkah-guide {
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* Quran Reader Styles */
.quran-reader-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.surah-selector {
  background: var(--background-card);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

/* Full Page Quran Reader Styles */
.quran-fullpage {
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 10000 !important;
  background: var(--background-primary);
}

/* Hide app header and bottom nav when Quran page is active */
.quran-fullpage.active ~ .app-header,
#page-quran.active ~ .bottom-nav {
  display: none !important;
}

body:has(#page-quran.active) .app-header,
body:has(#page-quran.active) .bottom-nav {
  display: none !important;
}

/* Enhanced Header Bar */
.quran-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--background-card);
  border-bottom: 2px solid var(--primary-color);
  padding: 0;
  display: flex;
  flex-direction: column;
  z-index: 10001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quran-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  min-height: 44px;
}

.quran-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
}

.quran-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quran-page-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.surah-number-badge {
  background: var(--primary-color);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 1.8rem;
  height: 1.8rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 76, 58, 0.3);
  flex-shrink: 0;
}

/* Progress Bar with Overlay */
.quran-progress-container {
  width: 100%;
  height: 6px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  position: relative;
  overflow: hidden;
}

.quran-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), #17a162);
  transition: width 0.5s ease;
  width: 0%;
  box-shadow: 0 0 12px rgba(15, 76, 58, 0.4);
  position: relative;
}

.quran-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.quran-meta-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--background-card);
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.quran-meta-item {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.quran-meta-item.progress-percent {
  font-weight: 700;
  color: var(--primary-color);
}

.quran-meta-separator {
  color: var(--text-secondary);
  opacity: 0.5;
  font-size: 0.7rem;
}

/* Font Controls */
.quran-font-controls {
  display: none;
  gap: 2rem;
  padding: 0.5rem 1rem;
  background: var(--background-card);
  border-bottom: 1px solid var(--border-color);
  justify-content: center;
  align-items: center;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.quran-font-controls.active {
  display: flex;
  max-height: 100px;
  opacity: 1;
}

.font-control-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.font-control-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 50px;
}

.font-slider {
  width: 120px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 30%, #e0e0e0 30%, #e0e0e0 100%);
  border-radius: 5px;
  outline: none;
  transition: background 0.3s ease;
}

.font-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.font-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.font-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(15, 76, 58, 0.4);
}

.font-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(15, 76, 58, 0.4);
}

.quran-ledger-toggle {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(15, 76, 58, 0.3);
  height: 32px;
}

.quran-ledger-toggle:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 76, 58, 0.4);
}

.quran-ledger-toggle i {
  font-size: 0.95rem;
}

.quran-close-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
  border-radius: 6px;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  min-width: 32px;
  height: 32px;
}

.quran-close-btn:hover {
  background: #ff4444;
  color: white;
  border-color: #ff4444;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}

/* Surah Ledger Overlay */
.surah-ledger-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.surah-ledger-overlay.active {
  display: flex;
  visibility: visible;
  opacity: 1;
}

.surah-ledger {
  background: var(--background-card);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
  overflow: hidden;
}

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

.surah-ledger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
}

.surah-ledger-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
}

.surah-ledger-header h3 i {
  font-size: 1.2rem;
}

.surah-ledger-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
  transition: var(--transition);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.surah-ledger-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.surah-ledger-list {
  overflow-y: auto;
  padding: 0.5rem;
  max-height: calc(85vh - 60px);
}

.surah-ledger-loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}

.surah-ledger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: white;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.surah-ledger-item:hover {
  background: var(--background-card);
  border-color: var(--primary-color);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(15, 76, 58, 0.15);
}

.surah-ledger-item.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border-color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(15, 76, 58, 0.3);
}

.surah-ledger-item.active .surah-number {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.surah-ledger-item.active .surah-summary,
.surah-ledger-item.active .surah-verses,
.surah-ledger-item.active .surah-type {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

.surah-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
}

.surah-number {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border-radius: 10px;
  flex-shrink: 0;
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 6px rgba(15, 76, 58, 0.2);
}

.surah-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.surah-name-en {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--text-primary);
}

.surah-ledger-item.active .surah-name-en {
  color: white;
}

.surah-summary {
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--text-secondary);
  font-style: italic;
}

.surah-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  font-size: 0.7rem;
}

.surah-verses {
  font-weight: 500;
  color: var(--primary-color);
  background: var(--background-light);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}

.surah-ledger-item.active .surah-verses {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.surah-type {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Go to Verse Dialog */
.goto-verse-dialog {
  background: var(--background-card);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
  overflow: hidden;
}

.goto-verse-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.goto-verse-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.goto-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.goto-input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.goto-input-group input {
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  background: white;
  color: var(--text-primary);
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

.goto-input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(15, 76, 58, 0.1);
}

.goto-verse-info {
  background: linear-gradient(135deg, rgba(15, 76, 58, 0.08), rgba(15, 76, 58, 0.05));
  padding: 0.75rem 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid rgba(15, 76, 58, 0.1);
}

.goto-verse-info i {
  color: var(--primary-color);
  font-size: 1rem;
}

.goto-verse-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(15, 76, 58, 0.3);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.goto-verse-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 76, 58, 0.4);
}

.goto-verse-btn:active {
  transform: translateY(0);
}

.quran-verse-fullpage {
  width: 100vw !important;
  height: 100vh !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 160px 2rem 120px;
  background: var(--background-primary);
  overflow-y: auto;
  overflow-x: hidden;
}

.bismillah {
  text-align: center;
  font-size: calc(var(--arabic-font-size) * 0.8);
  padding: 1.5rem 1rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  flex-shrink: 0;
}

.verse-arabic {
  font-size: var(--arabic-font-size);
  font-family: 'Nastaleeq', 'Scheherazade New', 'Amiri', 'Noto Naskh Arabic', serif;
  text-align: center;
  padding: 1rem 1rem 0.5rem 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  max-width: 900px;
  width: 100%;
  flex-shrink: 0;
}

.verse-translation {
  font-size: var(--english-font-size, 1.2rem);
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: center;
  padding: 0.5rem 1rem 2rem 1rem;
  max-width: 900px;
  width: 100%;
  font-style: italic;
  flex-shrink: 0;
  margin-bottom: 80px;
}

/* Word by Word Display */
.word-by-word-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  direction: rtl;
}

/* Bismillah */
.bismillah {
  width: 100%;
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
}

.bismillah-text {
  font-family: 'Nastaleeq', 'Scheherazade New', 'Amiri', 'Noto Naskh Arabic', serif;
  font-size: 2rem;
  color: var(--primary-color);
  direction: rtl;
  line-height: 2;
}

.verse-arabic-full {
  width: 100%;
  font-size: var(--arabic-font-size);
  font-family: 'Nastaleeq', 'Scheherazade New', 'Amiri', 'Noto Naskh Arabic', serif;
  color: var(--text-primary);
  text-align: center;
  direction: rtl;
  line-height: 2;
  padding: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.verse-number-mark {
  display: inline-block;
  margin: 0 0.5rem;
  font-size: 0.9em;
  color: var(--accent-color);
}

.word-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: background-color 0.2s ease;
}

.word-item:hover {
  background-color: rgba(15, 76, 58, 0.05);
}

.word-item.playing {
  background-color: rgba(15, 76, 58, 0.15);
}

.word-arabic {
  font-size: calc(var(--arabic-font-size) * 0.9);
  font-family: 'Nastaleeq', 'Scheherazade New', 'Amiri', 'Noto Naskh Arabic', serif;
  color: var(--text-primary);
  text-align: center;
  direction: rtl;
}

.word-transliteration {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  opacity: 0.8;
}

.word-translation {
  font-size: var(--english-font-size, 1.2rem);
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
}

/* Hide word translations when toggle is off */
.hide-word-translation .word-translation {
  display: none;
}

.verse-ending-mark {
  cursor: default;
}

.verse-ending-mark .word-arabic {
  font-size: 1.2rem;
  color: var(--accent-color);
}

.word-audio-icon {
  font-size: 0.75rem;
  color: var(--accent-color);
  opacity: 0.3;
  transition: opacity 0.2s ease;
}

.word-item:hover .word-audio-icon {
  opacity: 0.6;
}

.word-item.playing .word-audio-icon {
  opacity: 1;
}

/* Verse Translation Section */
.verse-translation-section {
  max-width: 900px;
  width: 100%;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

.verse-translation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.verse-translation-header h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 0;
}

.play-verse-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(15, 76, 58, 0.3);
}

.play-verse-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 76, 58, 0.4);
}

.play-verse-btn:active {
  transform: translateY(0);
}

.play-verse-btn.playing {
  background: #e74c3c;
}

.play-verse-btn.playing i {
  animation: audio-pulse 1s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .word-by-word-container {
    padding: 1.5rem 0.5rem;
  }
  
  .word-item {
    min-width: 80px;
    padding: 0.25rem 0.5rem;
  }
  
  .word-arabic {
    font-size: calc(var(--arabic-font-size) * 0.8);
  }
  
  .word-transliteration {
    font-size: 0.75rem;
  }
  
  .word-translation {
    font-size: 0.8rem;
  }
  
  .verse-translation-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .play-verse-btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .quran-header-main {
    padding: 0.5rem 0.75rem;
  }
  
  .quran-header-left {
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
  }
  
  .quran-header-actions {
    gap: 0.4rem;
    flex-shrink: 0;
  }
  
  .quran-page-title {
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .surah-number-badge {
    font-size: 0.75rem;
    min-width: 1.6rem;
    height: 1.6rem;
    border-radius: 6px;
  }
  
  .quran-meta-info {
    padding: 0.4rem 0.75rem;
    gap: 0.35rem;
    font-size: 0.65rem;
  }
  
  .quran-meta-item {
    font-size: 0.65rem;
  }
  
  .quran-meta-separator {
    font-size: 0.65rem;
  }
  
  /* Hide some meta info on very small screens */
  .quran-meta-item:nth-child(5), /* Pg x of 604 */
  .quran-meta-separator:nth-child(8) {
    display: none;
  }
  
  .quran-ledger-toggle {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    height: 28px;
  }
  
  .quran-ledger-toggle span {
    display: none;
  }
  
  .quran-ledger-toggle i {
    font-size: 0.85rem;
  }
  
  .quran-close-btn {
    padding: 0.3rem;
    min-width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
  
  .quran-font-controls {
    padding: 0.4rem 0.5rem;
    gap: 1.5rem;
  }
  
  .font-control-group {
    gap: 0.5rem;
  }
  
  .font-control-group label {
    font-size: 0.65rem;
    min-width: 42px;
  }
  
  .font-slider {
    width: 90px;
  }
  
  .surah-ledger {
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
  }
  
  .surah-ledger-header {
    padding: 1.25rem;
  }
  
  .surah-ledger-header h3 {
    font-size: 1.15rem;
  }
  
  .surah-ledger-item {
    padding: 0.9rem 1rem;
  }
  
  .surah-name-en {
    font-size: 0.95rem;
  }
  
  .quran-verse-fullpage {
    padding: 140px 1rem 100px;
  }
  
  .bismillah {
    font-size: 1.5rem;
    padding: 1rem 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .verse-arabic {
    padding: 1.5rem 0.5rem;
    line-height: 2.2;
  }
  
  .verse-translation {
    font-size: 1.05rem;
    line-height: 1.8;
    padding: 1.5rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .quran-verse-fullpage {
    padding: 110px 0.75rem 70px;
  }
  
  .bismillah {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
  }
  
  .verse-arabic {
    padding: 1.25rem 0.5rem;
  }
  
  .verse-translation {
    font-size: 1rem;
    padding: 1.25rem 0.5rem;
  }
  
  .surah-ledger-item {
    padding: 0.8rem 0.9rem;
  }
  
  .surah-number {
    font-size: 1rem;
    min-width: 30px;
  }
}

/* Dark theme adjustments for Quran */
[data-theme="dark"] .quran-verse-fullpage {
  background: var(--background-primary);
}

[data-theme="dark"] .surah-ledger {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .surah-ledger-item:hover {
  background: var(--primary-color);
}

/* Sajdah (Prostration) Alert - Inline Display */
.sajdah-alert {
  background: linear-gradient(135deg, #0f4c3a 0%, #1a7a5e 100%);
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 16px rgba(15, 76, 58, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(15, 76, 58, 0.2);
  }
  50% {
    box-shadow: 0 4px 24px rgba(15, 76, 58, 0.4), 0 0 20px rgba(26, 122, 94, 0.3);
  }
}

.sajdah-alert .sajdah-icon {
  font-size: 2.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sajdah-alert .sajdah-content {
  flex: 1;
}

.sajdah-alert .sajdah-content strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sajdah-alert .sajdah-content p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .sajdah-alert {
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
  }
  
  .sajdah-alert .sajdah-icon {
    font-size: 2rem;
  }
  
  .sajdah-alert .sajdah-content strong {
    font-size: 1.1rem;
  }
  
  .sajdah-alert .sajdah-content p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .sajdah-alert {
    padding: 0.875rem 1rem;
    margin: 1rem 0;
    gap: 0.875rem;
  }
  
  .sajdah-alert .sajdah-icon {
    font-size: 1.75rem;
  }
  
  .sajdah-alert .sajdah-content strong {
    font-size: 1rem;
    margin-bottom: 0.375rem;
  }
  
  .sajdah-alert .sajdah-content p {
    font-size: 0.875rem;
  }
}

[data-theme="dark"] .sajdah-alert {
  background: linear-gradient(135deg, #1a7a5e 0%, #0f4c3a 100%);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .sajdah-alert {
  animation: pulseGlowDark 2s ease-in-out infinite;
}

@keyframes pulseGlowDark {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(26, 122, 94, 0.4);
  }
}

/* Old floating notification styles removed */

/* Notification animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}




