.jsm-prayer-icon img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.jsm-prayer-item:hover .jsm-prayer-icon img {
  transform: scale(1.1);
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .jsm-prayer-icon img {
    filter: brightness(0) invert(1);
  }
}

.jsm-prayer-container {
  max-width: 800px;
  margin: 20px auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.jsm-search-section {
  margin-bottom: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

.jsm-search-box {
  position: relative;
  margin-bottom: 10px;
}

.jsm-search-box input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.jsm-search-box input:focus {
  border-color: #007cba;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.jsm-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
}

.jsm-city-item {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.jsm-city-item:hover {
  background-color: #f8f9fa;
}

.jsm-city-item:last-child {
  border-bottom: none;
}

.jsm-current-city {
  text-align: center;
  color: #666;
}

.jsm-current-city strong {
  color: #333;
  font-size: 18px;
}

.jsm-prayer-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #35b765 0%, #3aba88 100%);
  color: white;
  border-radius: 15px;
}

.jsm-city-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.jsm-date-display {
  font-size: 16px;
  opacity: 0.9;
}

.jsm-prayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.jsm-prayer-item {
  background: linear-gradient(135deg, #66eaa2 0%, #3fa29c 100%);
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: 15px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.jsm-prayer-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.jsm-prayer-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.jsm-prayer-name {
  font-weight: bold;
  margin-bottom: 8px;
  color: #00ff88;
  font-size: 16px;
}

.jsm-prayer-time {
  font-size: 20px;
  font-weight: bold;
}

.jsm-date-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
}

.jsm-nav-btn {
  background: hsl(162, 75%, 35%);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.jsm-nav-btn:hover {
  background: #30a779;
}

.jsm-popular-cities {
  margin-top: 15px;
}

.jsm-popular-cities h4 {
  margin-bottom: 10px;
  color: #333;
}

.jsm-city-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jsm-city-btn {
  background: #3f9462;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.jsm-city-btn:hover {
  background: #77b6ab;
  transform: translateY(-1px);
}

.jsm-loading {
  text-align: center;
  padding: 40px;
}

.jsm-loader {
  display: inline-block;
  padding: 15px 30px;
  background: #f0f0f0;
  border-radius: 25px;
  color: #666;
  font-size: 16px;
}

.jsm-error {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 15px;
  border-radius: 5px;
  text-align: center;
}

.jsm-searching,
.jsm-no-results {
  padding: 12px 15px;
  text-align: center;
  color: #666;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .jsm-prayer-container {
    margin: 10px;
  }

  .jsm-prayer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .jsm-prayer-item {
    padding: 15px 10px;
  }

  .jsm-prayer-name {
    font-size: 14px;
  }

  .jsm-prayer-time {
    font-size: 18px;
  }

  .jsm-date-navigation {
    flex-direction: column;
    gap: 10px;
  }

  .jsm-city-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .jsm-prayer-grid {
    grid-template-columns: 1fr;
  }

  .jsm-search-box input {
    font-size: 14px;
  }

  .jsm-city-name {
    font-size: 18px;
  }
}
