:root {
  --page-bg: linear-gradient(180deg, #eef7ff 0%, #f7fbff 45%, #f9fcff 100%);
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-border: rgba(126, 166, 214, 0.16);
  --card-shadow: 0 14px 40px rgba(76, 120, 168, 0.10);
  --soft-shadow: 0 8px 24px rgba(76, 120, 168, 0.08);

  --text-main: #18324a;
  --text-muted: #6f859b;

  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-soft: #e8f2ff;

  --success: #1f9d61;
  --danger: #d45353;

  --line: rgba(126, 166, 214, 0.18);
  --line-strong: rgba(126, 166, 214, 0.26);
}

html,
body {
  min-height: 100vh;
}

body {
  background: var(--page-bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* NAVBAR */
.navbar {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(143, 176, 214, 0.22) !important;
}

.navbar-brand {
  margin-right: 0;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-wrap:hover {
  color: var(--text-main);
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
  padding: 5px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
}

.brand-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.1;
}

/* HERO */
.page-hero {
  padding: 28px 0 8px;
}

.hero-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  box-shadow: var(--card-shadow);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  color: var(--text-main);
}

.hero-period {
  color: var(--text-muted) !important;
  font-size: 0.95rem;
}

/* GENERAL */
.text-muted {
  color: var(--text-muted) !important;
}

.alert {
  border-radius: 18px;
  border: 1px solid var(--card-border);
  box-shadow: var(--soft-shadow);
}

/* PRAYER CARD */
.pray-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  overflow: hidden;
}

.prayer-description {
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 0.96rem;
}

.prayfor-btn {
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.prayfor-btn:hover {
  background: #f8fbff;
}

.prayfor-btn:focus {
  outline: none;
  box-shadow: none;
}

.chevron {
  display: inline-block;
  transition: transform 160ms ease;
  font-size: 18px;
  line-height: 1;
  transform: rotate(0deg);
  user-select: none;
  color: var(--primary-dark);
}

/* SLOT CONTAINER */
#slotContainer {
  margin-top: 4px;
}

#slotContainer .day-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(8px);
}

#slotContainer .day-header {
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(239, 247, 255, 0.95), rgba(247, 251, 255, 0.85));
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#slotContainer .day-header .date {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 1.02rem;
}

#slotContainer .slot-row {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px dashed var(--line-strong);
}

#slotContainer .slot-row:last-child {
  border-bottom: none;
}

#slotContainer .slot-row .left {
  min-width: 0;
  flex: 1;
}

#slotContainer .slot-row .right {
  flex-shrink: 0;
}

.slot-time {
  font-weight: 700;
  letter-spacing: 0.2px;
  word-break: break-word;
  color: var(--text-main);
}

.slot-date {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.slot-status {
  font-size: 0.92rem;
  margin-top: 3px;
  word-break: break-word;
}

.text-success {
  color: var(--success) !important;
}

.text-danger {
  color: var(--danger) !important;
}

/* BUTTONS */
.btn {
  border-radius: 14px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border: none;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.btn-outline-primary {
  border-color: rgba(59, 130, 246, 0.24);
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.72);
}

.btn-outline-primary:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: rgba(59, 130, 246, 0.28);
}

.btn-outline-secondary {
  border-color: rgba(111, 133, 155, 0.25);
  color: #5f7388;
}

.btn-outline-secondary:hover {
  background: #f4f8fc;
  color: #476178;
}

/* MODAL */
.modal-content {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
}

.modal-header {
  border-bottom-color: var(--line);
}

.modal-actions .btn {
  min-width: 110px;
}

#selectedSlotText {
  line-height: 1.45;
}

/* SMALL HELP TEXT */
.small {
  line-height: 1.45;
}

/* MOBILE */
@media (max-width: 992px) {
  .hero-card {
    padding: 20px;
    border-radius: 22px;
  }

  .hero-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    gap: 10px;
    flex-wrap: nowrap;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .brand-text {
    font-size: 0.94rem;
  }

  .hero-title {
    font-size: 1.36rem;
  }

  .prayer-description {
    font-size: 0.92rem;
  }

  #slotContainer .day-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #slotContainer .slot-row {
    flex-direction: column;
    align-items: stretch;
  }

  #slotContainer .slot-row .right {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  #slotContainer .slot-row .right .btn {
    width: 100%;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  header .container,
  main .container,
  nav .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-hero {
    padding-top: 18px;
  }

  .hero-card {
    padding: 16px;
    border-radius: 20px;
  }

  .hero-kicker {
    font-size: 0.68rem;
    padding: 5px 9px;
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: 1.18rem;
  }

  .hero-period {
    font-size: 0.84rem;
  }

  .small {
    font-size: 0.84rem;
  }

  #slotContainer .day-card {
    border-radius: 18px;
  }

  #slotContainer .day-header {
    padding: 12px 14px;
  }

  #slotContainer .slot-row {
    padding: 12px 14px;
  }

  .slot-time {
    font-size: 0.98rem;
  }

  .slot-status {
    font-size: 0.88rem;
  }

  .prayer-description {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .navbar .btn {
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand-text {
    max-width: 135px;
    line-height: 1.05;
  }
}
.header-actions {
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .navbar .container {
    flex-wrap: wrap;
  }

  .brand-wrap {
    flex: 1 1 100%;
    justify-content: center;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    flex: 1 1 100%;
  }
}
@media (max-width: 400px) {
  .brand-text {
    font-size: 0.88rem;
    max-width: 110px;
  }

  .hero-title {
    font-size: 1.08rem;
  }

  .btn {
    font-size: 0.9rem;
  }

}
