* {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-attachment: fixed;
}


/* Make admin link in sidebar look like other items */

.sidebar-item {
  text-decoration: none;
  display: flex;
}

/* Make the bottom panel closable by clicking backdrop */
.bottom-search-panel::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.3);
  /* backdrop-filter: blur(10px); */
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.bottom-search-panel.active::before {
  opacity: 1;
  pointer-events: all;
}

/* Make handle more visible for swipe gesture */
.search-panel-handle {
  width: 40px;
  height: 4px;
  background: #cbd5e0;
  border-radius: 2px;
  margin: 12px auto 8px;
  cursor: grab;
  touch-action: pan-y;
}

.search-panel-handle:active {
  cursor: grabbing;
}

body.dark-mode .search-panel-handle {
  background: #4a5568;
}

/* Dark mode fixes for mobile */
body.dark-mode .mobile-header {
  background: #2d3748;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .hamburger-line {
  background: #a78bfa;
}

body.dark-mode .mobile-logo {
  background: linear-gradient(135deg, #a78bfa 0%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .dark-mode-toggle-mobile {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

body.dark-mode .mobile-sidebar {
  background: #2d3748;
}

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

body.dark-mode .sidebar-item:hover {
  background: rgba(167, 139, 250, 0.1);
  border-left-color: #a78bfa;
}

body.dark-mode .fab {
  background: #2d3748;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .bottom-search-panel {
  background: #5573a0;
}

body.dark-mode .search-panel-title {
  color: #e2e8f0;
}

body.dark-mode .mobile-search-input {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

body {
  background: #f5f7fa;
  overflow: hidden;
}

body.dark-mode {
  background: #1a202c;
}

.desktop-view {
  display: none !important;
}

.mobile-view {
  display: block !important;
}

/* Mobile App Container */
.mobile-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: #f5f7fa;
}

body.dark-mode .mobile-container {
  background: #1a202c;
}

/* Mobile Header */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  z-index: 1000;
}

body.dark-mode .mobile-header {
  background: #2d3748;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hamburger-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #667eea;
  border-radius: 2px;
  transition: all 0.3s;
}

body.dark-mode .hamburger-line {
  background: #a78bfa;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

.mobile-logo {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
}



.mobile-logo img {
  width: 30px;
  height: 30px;
  margin-right: 5px;
}

.title-subtitle{
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.title{
  font-size: 20px;
  font-weight: 800;
  margin-bottom: -4px;
}
.subtitle{
  font-size: 8.8px;
  font-weight:600;
}


body.dark-mode .mobile-logo {
  background: linear-gradient(135deg, #a78bfa 0%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark-mode-toggle-mobile {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(251, 191, 36, 0.3);
}

body.dark-mode .dark-mode-toggle-mobile {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* Sidebar Menu */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 240px;
  height: 100%;
  background: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  transition: left 0.3s ease;
  overflow-y: auto;
  /* position: relative;
  padding-bottom: 70px; */
}

body.dark-mode .mobile-sidebar {
  background: #2d3748;
}

.mobile-sidebar.active {
  left: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  display: none;
}

.sidebar-overlay.active {
  display: block;
}

.sidebar-header {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.sidebar-img {
  width: 50px;
  height: 50px;

}

.sidebar-title {
  font-size: 24px;
  font-weight: 800;

}

.sidebar-menu {
  padding: 10px 0;
}

.sidebar-item {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s;
  border-left: 3px solid transparent;
  color: #2d3748;
}

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

.sidebar-item:hover {
  background: rgba(102, 126, 234, 0.1);
  border-left-color: #667eea;
}

body.dark-mode .sidebar-item:hover {
  background: rgba(167, 139, 250, 0.1);
  border-left-color: #a78bfa;
}

.sidebar-item-icon {
  font-size: 20px;
}

.sidebar-item-text {
  font-size: 14px;
  font-weight: 600;
}

/* Sidebar Footer with Name */
.sidebar-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 15px;
  text-align: center;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.05), transparent);
}

.sidebar-made-with {
  font-size: 10px;
  color: #718096;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

body.dark-mode .sidebar-made-with {
  color: #cbd5e0;
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.3);
}

.sidebar-made-with .heart {
  color: #ef4444;
  /* animation: heartbeat 1.5s ease infinite; */
}

/* @keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.2); }
  20%, 40% { transform: scale(1); }
} */

/* Map Container */
.mobile-map-container {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;

}

#mapMobile {
  width: 100%;
  height: 100%;
  /* border-radius: 10px; */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Floating Action Buttons */
.fab-container {
  position: fixed;
  right: 20px;
  bottom: 45px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s;
}

body.dark-mode .fab {
  background: #2d3748;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fab:active {
  transform: scale(0.95);
}

.fab-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 60px;
  height: 60px;
  font-size: 26px;
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Bottom Search Panel */
.bottom-search-panel {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 950;
  transition: bottom 0.3s ease;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}

body.dark-mode .bottom-search-panel {
  background: #121212;
}

.bottom-search-panel.active {
  bottom: 0;
}

.search-panel-handle {
  width: 40px;
  height: 4px;
  background: #cbd5e0;
  border-radius: 2px;
  margin: 12px auto 8px;
}

body.dark-mode .search-panel-handle {
  background: #4a5568;
}

.search-panel-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.search-panel-title {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 15px;
}

body.dark-mode .search-panel-title {
  color: #e2e8f0;
}

.mobile-search-input {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  margin-bottom: 12px;
  background: #f7fafc;
}

body.dark-mode .mobile-search-input {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

.mobile-search-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
}

.mobile-view-all-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #34d399 0%, #3b82f6 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Distance Slider in Bottom Panel */
.distance-slider-mobile {
  margin: 20px 0;
  padding: 15px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
}

body.dark-mode .distance-slider-mobile {
  background: rgba(35, 21, 76, 0.2);
}

.distance-label-mobile {
  font-size: 13px;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 10px;
  display: block;
}

body.dark-mode .distance-label-mobile {
  color: #fafafa;
}

.distance-slider {
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: linear-gradient(to right, #667eea, #764ba2);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.distance-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 3px solid #667eea;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.distance-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 3px solid #667eea;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.distance-value-mobile {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #667eea;
  margin-top: 8px;
}

body.dark-mode .distance-value-mobile {
  color: #a78bfa;
}

/* Suggestions in Mobile */
.suggestions-list-mobile {
  background: #f7fafc;
  border-radius: 12px;
  margin-top: 10px;
  max-height: 200px;
  overflow-y: auto;
}

body.dark-mode .suggestions-list-mobile {
  background: #1a202c;
}

.suggestion-item-mobile {
  padding: 12px 15px;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
}

body.dark-mode .suggestion-item-mobile {
  border-bottom-color: #4a5568;
  color: #e2e8f0;
}

.suggestion-item-mobile:hover {
  background: rgba(102, 126, 234, 0.1);
}

.mosque-modal-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;

}

.district-filter-label {
  font-size: 15px;
  font-weight: 600;
}

body.dark-mode .district-filter-label {
  color: white;
}

.mosque-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}

.mosque-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: white;
  transition: all 0.3s;
}

.mosque-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

/* Mobile Search Suggestions */
/* Mobile Search Input Wrapper with Clear Button */
.mobile-search-input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
}

.mobile-search-input {
  width: 100%;
  padding: 14px 45px 14px 20px !important;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 0 !important;
  background: #f7fafc;
}

body.dark-mode .mobile-search-input {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

/* Clear Button for Mobile */
.clear-btn-mobile {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  transition: all 0.3s;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.clear-btn-mobile:active {
  transform: translateY(-50%) scale(0.9);
}

/* Mobile Search Suggestions - Positioned relative to wrapper */
.suggestions-list-mobile {
  position: absolute;
  top: calc(100% + 4px);
  /* Just below the input wrapper */
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  max-height: 150px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 2px solid #667eea;
  z-index: 1000;
}

body.dark-mode .suggestions-list-mobile {
  background: #1a202c;
  border-color: #a78bfa;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.suggestion-item-mobile {
  padding: 16px 16px;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  color: #2d3748;
  display: flex;
  align-items: flex-start;
  min-height: 60px;
  /* Fixed height for 2 items to fit */
  line-height: 1.4;
}

body.dark-mode .suggestion-item-mobile {
  border-bottom-color: #4a5568;
  color: #e2e8f0;
}

.suggestion-item-mobile:last-child {
  border-bottom: none;
}

.suggestion-item-mobile:active {
  background: rgba(102, 126, 234, 0.2);
}

body.dark-mode .suggestion-item-mobile:active {
  background: rgba(167, 139, 250, 0.2);
}

/* Smooth scrolling for suggestions */
.suggestions-list-mobile {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 transparent;
}

.suggestions-list-mobile::-webkit-scrollbar {
  width: 4px;
}

.suggestions-list-mobile::-webkit-scrollbar-track {
  background: transparent;
}

.suggestions-list-mobile::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 2px;
}

body.dark-mode .suggestions-list-mobile::-webkit-scrollbar-thumb {
  background: #4a5568;
}

/* Ensure the parent container allows absolute positioning */
.search-panel-content {
  position: relative;
}

/* Mosque Modal (Both Views) */
.mosque-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.mosque-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mosque-modal-content {
  background: white;
  width: 100%;
  max-width: 900px;
  height: 85vh;
  max-height: 800px;
  border-radius: 30px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.dark-mode .mosque-modal-content {
  background: rgba(45, 55, 72, 0.98);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.mosque-modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px 25px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}



.district-filter-container {
  padding: 15px 20px;
  background: rgba(102, 126, 234, 0.05);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.district-filter-select {
  width: 100%;
  padding: 8px 16px;
  border: 2px solid #667eea;
  border-radius: 12px;
  font-size: 13px;
  background: white;
  cursor: pointer;
  margin-top: 5px;
}

.mosque-list-item {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border: 2px solid rgba(102, 126, 234, 0.2);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
}

.mosque-list-number {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}

.mosque-list-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Dua Popup */
.suggestion-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 3000;
  animation: fadeIn 0.3s ease;
}

.suggestion-popup.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.suggestion-popup-content {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 25px;
  padding: 32px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  position: relative;
  text-align: center;
}

body.dark-mode .suggestion-popup-content {
  background: rgba(45, 55, 72, 0.98);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.suggestion-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 17px;
  color: #666;
  transition: all 0.2s;
}

body.dark-mode .suggestion-popup-close {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e0;
}

.suggestion-popup-close:active {
  transform: scale(0.9);
}

.suggestion-popup-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #34d399 0%, #3b82f6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: 0 10px 30px rgba(52, 211, 153, 0.4);
}

.dua-text {
  font-size: 16px;
  color: #2d3748;
  line-height: 1.4;
  margin-bottom: 15px;
  font-weight: 500;
  padding: 0 10px;
}

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

.dua-reference {
  font-size: 13px;
  color: #667eea;
  font-weight: 700;
  margin-bottom: 25px;
  display: inline-block;
  padding: 6px 16px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 20px;
}

body.dark-mode .dua-reference {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.15);
}

.suggestion-popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.show-more-dua-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 30px;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
  font-size: 16px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.show-more-dua-btn:active {
  transform: scale(0.98);
}

.suggestion-popup-btn-secondary {
  background: transparent;
  color: #718096;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 30px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s;
  font-size: 16px;
  cursor: pointer;
}

body.dark-mode .suggestion-popup-btn-secondary {
  color: #cbd5e0;
  border-color: #4a5568;
}

.suggestion-popup-btn-secondary:active {
  transform: scale(0.98);
  background: rgba(0, 0, 0, 0.05);
}

body.dark-mode .suggestion-popup-btn-secondary:active {
  background: rgba(255, 255, 255, 0.05);
}

/* Animation for dua text change */
.dua-text.fade-out {
  animation: fadeOutDua 0.3s ease;
}

.dua-text.fade-in {
  animation: fadeInDua 0.3s ease;
}

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

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

/* Directions styles */
.directions-btn {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  padding: 8px 16px;
  margin-top: 10px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.leaflet-marker-icon {
  width: 28px !important;
  height: 28px !important;
}

/* Prayer Times Floating Button */
.prayer-fab-container {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 950;
  pointer-events: none;
}

.prayer-fab {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  transition: all 0.3s;
  pointer-events: all;
}

.prayer-fab:active {
  transform: scale(0.98);
}

.prayer-fab-loading {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 12px 16px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  pointer-events: all;
}

.prayer-fab-prayer {
  font-size: 10px;
  font-weight: 700;
  color: white;
}

.prayer-fab-time {
  font-size: 10px;
  color: #e0e7ff;
  font-weight: 600;
}

.prayer-fab-badge {
  background: #39b68d;
  padding: 5px 8px;
  border-radius: 12px;
  margin-left: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.prayer-fab-badge-text {
  font-size: 9px;
  color: white;
  font-weight: 700;
}

/* Prayer Times Modal */
.prayer-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 2500;
  animation: fadeIn 0.3s ease;
}

.prayer-modal.active {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.prayer-modal-content {
  background: white;
  width: 100%;
  max-height: 85vh;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

body.dark-mode .prayer-modal-content {
  background: #2d3748;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.prayer-modal-handle {
  width: 40px;
  height: 5px;
  background: #d1d5db;
  border-radius: 3px;
  margin: 12px auto 20px;
}

body.dark-mode .prayer-modal-handle {
  background: #4a5568;
}

.prayer-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px 20px;
}

.prayer-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #2d3748;
}

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

.prayer-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: #f3f4f6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #6b7280;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

body.dark-mode .prayer-modal-close {
  background: #1a202c;
  color: #cbd5e0;
}

.prayer-modal-close:active {
  transform: scale(0.9);
}

.prayer-modal-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 10px;
}

/* Main Content Container */
.prayer-main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 0 24px 24px;
}

.prayer-timings-column {
  flex: 0.55;
  display: flex;
  flex-direction: column;
  justify-content: center;

}

.prayer-timing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  background: #f9fafb;
}

body.dark-mode .prayer-timing-row {
  background: #1a202c;
}

.prayer-timing-row.current {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
body.dark-mode .prayer-timing-row.current {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.prayer-timing-name {
  font-size: 11px;
  font-weight: 600;
  color: #1f2937;
}

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

.prayer-timing-row.current .prayer-timing-name {
  color: white;
  font-weight: 700;
}

.prayer-timing-time {
  font-size: 9px;
  color: #6b7280;
  font-weight: 600;
}

body.dark-mode .prayer-timing-time {
  color: #9ca3af;
}

.prayer-timing-row.current .prayer-timing-time {
  color: white;
  font-weight: 700;
}

/* Circular Timer Container */
.prayer-circular-timer {
  flex: 0.45;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prayer-circle-container {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: 5px;
}

.prayer-circle-svg {
  transform: rotate(-90deg);
}

.prayer-circle-bg {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 18;
}

body.dark-mode .prayer-circle-bg {
  stroke: #374151;
}

.prayer-circle-progress {
  fill: none;
  stroke: url(#prayerGradient);
  stroke-width: 18;
  stroke-linecap: butt;
  transition: stroke-dashoffset 0.3s ease;
}

.prayer-circle-inner {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 106px;
  height: 106px;
  border-radius: 53px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-mode .prayer-circle-inner {
  background: #1a202c;
}

.prayer-countdown-text {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

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

.prayer-current-info {
  text-align: center;
  margin-bottom: 2px;
}

.prayer-current-label {
  font-size: 12px;
  font-weight: 700;
  color: #2d3748;
}

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

.prayer-date-container {
  text-align: center;
}

.prayer-english-date {
  font-size: 8px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 3px;
  white-space: pre-line;
}

body.dark-mode .prayer-english-date {
  color: #cbd5e0;
}

.prayer-hijri-date {
  font-size: 8px;
  color: #6b7280;
}

body.dark-mode .prayer-hijri-date {
  color: #9ca3af;
}

/* Forbidden Times Section */
.prayer-forbidden-section {
  padding: 16px 24px;
  margin-bottom: 16px;
  border-top: 1px solid #e5e7eb;
}

body.dark-mode .prayer-forbidden-section {
  border-top-color: #374151;
}

.prayer-forbidden-title {
  font-size: 15px;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 12px;
}

.prayer-forbidden-list {
  background: #fef2f2;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #fecaca;
}

body.dark-mode .prayer-forbidden-list {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
}

.prayer-forbidden-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
}

.prayer-forbidden-label {
  font-size: 13px;
  color: #991b1b;
  font-weight: 600;
}

body.dark-mode .prayer-forbidden-label {
  color: #fca5a5;
}

.prayer-forbidden-time {
  font-size: 11px;
  color: #991b1b;
  font-weight: 700;
}

body.dark-mode .prayer-forbidden-time {
  color: #fca5a5;
}

/* Footer Section */
.prayer-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.dark-mode .prayer-footer {
  border-top-color: #374151;
}

.prayer-sun-times {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prayer-sun-text {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}

body.dark-mode .prayer-sun-text {
  color: #9ca3af;
}

.prayer-hanafi-badge {
  background: #f0fdf4;
  padding: 6px 12px;
  border-radius: 12px;
}

body.dark-mode .prayer-hanafi-badge {
  background: rgba(34, 197, 94, 0.1);
}

.prayer-hanafi-text {
  font-size: 11px;
  color: #15803d;
  font-weight: 700;
}

body.dark-mode .prayer-hanafi-text {
  color: #4ade80;
}

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

.spinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.8s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 380px) {
  .prayer-main-content {
    flex-direction: column;
    gap: 15px;
  }

  .prayer-timings-column,
  .prayer-circular-timer {
    flex: 1;
    width: 100%;
  }

  .prayer-circular-timer {
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .dark-mode-toggle-mobile {
    width: 50px;
    height: 50px;
    font-size: 25px;
  }

  .mobile-logo {
    font-size: 28px;
  }

  .mobile-logo img {
    width: 40px;
    height: 40px;
  }

  .mobile-sidebar {
    width: 300px;
  }

  .sidebar-item {
    padding: 18px 20px;
    gap: 12px;
  }

  .sidebar-item-text {
    font-size: 18px;
  }

  .sidebar-item-icon {
    font-size: 28px;
  }

  .fab-container {
    left: 40px;
    bottom: 40px;
    gap: 15px;
  }

}