.prayer-times-container {
  margin-top: 1rem;
  padding: 1rem 1rem;
  border: 1px solid #e6e9ee;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfffb 100%);
  box-shadow: 0 8px 20px rgba(11, 23, 39, 0.04);
  text-align: center;
}

.prayer-times-container h3 {
  margin: 0;
  font-size: 1.125rem;
  color: #0b1727;
  padding-bottom: 0.35rem;
}

.prayer-date-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #475569;
  flex-wrap: wrap;
}

.prayer-date-row .date-left,
.prayer-date-row .date-right {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 40%;
}

.prayer-date-row .date-left { text-align: left; }
.prayer-date-row .date-right { text-align: right; }

.prayer-date-row .method,
.prayer-date-row .madhhab {
  color: #6b7280;
  font-size: 0.9rem;
}

.prayer-list-body {
  display: flex;
  flex-direction: column;
}

.prayer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
  gap: 1rem;
}

.prayer-row:nth-child(odd) {
  background-color: rgba(13, 114, 78, 0.02); /* subtle green tint for rows */
}

.prayer-name {
  font-weight: 600;
  color: #0b1727;
}

.prayer-time {
  color: #0d724e; /* site green */
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.prayer-times-container .muted,
.prayer-times-container p.muted,
.prayer-times-container .small {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
}

/* Buttons inside the form use .btn-secondary globally, but give these a more compact, aligned look */
button#checkPrayerTimes.btn-secondary,
button#generateCode.btn-secondary {
padding:0.45rem 0.6rem;
font-size: 0.9375rem;
margin-top: 0.2875rem;
}



button#checkPrayerTimes:disabled,
button#generateCode:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Make the prayer times preview more compact on small screens */
@media (max-width: 520px) {
  .prayer-times-container {
    padding: 0.8rem;
  }
  .prayer-list-head,
  .prayer-row {
    padding: 0.45rem 0.5rem;
    font-size: 0.95rem;
  }
  /* Stack name above time for very narrow screens */
  .prayer-row {
    grid-template-columns: 1fr 1fr;
  }
  .prayer-date-row .date-left,
  .prayer-date-row .date-right { min-width: 48%; }
}

/* Minor utilities */
.prayer-times-note {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #6b7280;
}
.prayer-list-head {
  margin-bottom: 0.5rem;
}