/* Islamic Prayer Times - Custom Styles */

/* Prayer Cards */
.prayer-card {
  transition: all 0.3s ease;
  position: relative;
}

.prayer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.2);
}

/* Current Prayer Highlight */
.prayer-card.current-prayer {
  border-width: 3px;
  transform: scale(1.05);
  box-shadow: 0 8px 20px -4px rgba(20, 184, 166, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 8px 20px -4px rgba(20, 184, 166, 0.4);
  }
  50% {
    box-shadow: 0 8px 24px -4px rgba(20, 184, 166, 0.6);
  }
}

/* Error Message */
#errorMsg {
  animation: slideIn 0.3s ease;
  padding: 0.75rem 1rem;
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  margin-left: 1rem;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Input Focus States */
input[type="date"]:focus,
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: #437874;
  box-shadow: 0 0 0 3px rgba(67, 120, 116, 0.15);
}

/* Button Hover Effects */
#calculateBtn {
  transition: all 0.3s ease;
}

#calculateBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -2px rgba(67, 120, 116, 0.35);
}

/* Results Container Animation */
#prayerTimesContainer {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Prayer Time Display */
.prayer-time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

/* Responsive Improvements */
@media (max-width: 768px) {
  .prayer-card {
    padding: 1rem;
  }

  .prayer-time {
    font-size: 1.5rem;
  }
}

/* Custom Location Input */
#customLocation {
  transition: all 0.3s ease;
}

#customLocation input {
  transition: border-color 0.2s ease;
}

/* Province list bullets */
.province-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.province-bullet {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: #437874;
  flex-shrink: 0;
}

.province-bullet-star {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: #437874;
  font-size: 0.75rem;
  line-height: 1;
  display: inline-flex;
}

.province-bullet-star::before {
  content: "✺";
}

.province-link {
  text-align: left;
  color: #4a5fa8;
  font-weight: 600;
  transition: color 0.15s ease;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}

.province-link:hover,
.province-link.active {
  text-decoration: underline;
  color: #3a4f98;
}

/* Province schedule table */
.province-table {
  width: 100%;
  table-layout: auto;
}

.province-table th {
  font-weight: 700;
}

.province-table td,
.province-table th {
  padding: 0.75rem 1rem;
  width: auto;
}

.province-table th:first-child,
.province-table td:first-child {
  padding-left: 0;
}

.province-table th:last-child,
.province-table td:last-child {
  padding-right: 0;
}

/* Countdown + time */
.countdown-box {
  background: #437874;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  color: #f8fafc;
  box-shadow: 0 10px 20px -8px rgba(67, 120, 116, 0.45);
}

.countdown-time {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.countdown-label {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.9;
}

.countdown-sub {
  font-size: 0.8rem;
  opacity: 0.8;
}

.local-time {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
}

.local-time-label {
  font-size: 0.95rem;
  color: #4b5563;
}

/* Mini prayer cards */
.mini-prayer-card {
  border: 2px solid #437874;
  border-radius: 0.5rem;
  padding: 0.6rem 0.55rem;
  background: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-align: center;
}

.mini-prayer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -10px rgba(0, 0, 0, 0.25);
}

.mini-prayer-card .mini-time {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
}

.mini-prayer-card .mini-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  width: 60px;
}

.mini-icon-img,
.mini-prayer-card .mini-icon img {
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  display: block;
  object-fit: contain;
}

.mini-prayer-card .mini-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
}

.mini-prayer-card.highlight {
  background: #437874;
  color: #ffffff;
  border-color: #437874;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.mini-prayer-card.highlight .mini-time,
.mini-prayer-card.highlight .mini-name,
.mini-prayer-card.highlight .mini-icon {
  color: #ffffff;
}

/* Horizontal prayer row */
.mini-prayer-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  flex-wrap: nowrap;
  width: 100%;
}

.mini-prayer-row .mini-prayer-card {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}

.mini-prayer-row::-webkit-scrollbar {
  height: 6px;
}

.mini-prayer-row::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.mini-prayer-row::-webkit-scrollbar-track {
  background: transparent;
}

/* Calc meta */
.calc-label {
  font-weight: 700;
  color: #111827;
}

.calc-value {
  color: #4a5fa8;
}

/* Settings button */
.settings-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #111827;
  padding: 0.5rem 0.75rem;
  border-radius: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.settings-btn:hover {
  background: #f8fafc;
}

/* Pagination */
.page-btn {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #1f2937;
  width: 2rem;
  height: 2rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.15s ease;
}

.page-btn:hover {
  background: #f3f4f6;
}

.page-btn.active {
  background: #d1d5db;
}
