/* Centered “card” wrapper */
.prayer-container {
  max-width: 400px;
  margin: 2rem auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}

/* ─── Center the <h2> inside any container ───────────────── */
h2 {
  text-align: center;
  margin-top: 0;       /* pull it up to the top of the card */
}

/* ─── Force selects to be the same size as inputs ────────── */
.prayer-container .prayer-form input,
.prayer-container .prayer-form select {
  width: 100%;
  box-sizing: border-box;
}

/* monthly view needs horizontal scrolling if wide */
.prayer-container.monthly {
  max-width: 95%;      /* keep the scrollable box for wide tables */
  margin: 2rem auto;   /* center it in your content area */
  overflow-x: auto;
  box-sizing: border-box;
}

/* ensure table is centered inside scrollable container */
.prayer-table {
  width: auto;      /* allow natural width */
  margin: 0 auto;   /* center if it’s smaller than container */
  border-collapse: collapse;
}
.prayer-table th,
.prayer-table td {
  border: 1px solid #ddd;
  padding: 0.5rem;
}

/* Form */
.prayer-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.prayer-form input,
.prayer-form select {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-size: 1rem;
  width: 100%;
}
.prayer-form button {
  padding: 0.6rem;
  background: #445f2c;
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}
.prayer-form button:hover {
  background: #333c4e;
}

/* List */
.prayer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.prayer-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}
.prayer-list .label {
  text-transform: capitalize;
}
.prayer-list .value {
  font-weight: bold;
}

/* Table */
.prayer-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.prayer-table th,
.prayer-table td {
  border: 1px solid #ddd;
  padding: 0.5rem;
}
.prayer-table th {
  background: #f7f7f7;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #445f2c;
  color: #fff;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: background 0.2s ease;
}
.btn:hover {
  background: #333c4e;
}

/* Error text */
.error {
  color: #b00;
  margin: 1rem 0;
}
