:root {
  --primary-color: #000000;
}

.bible-schedule-wrapper {
  position: relative;
  min-height: 200px;
}

.bible-schedule-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.bible-schedule-loader p {
  margin-top: 15px;
  font-size: 16px;
  color: #666;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.bible-schedule {
  opacity: 0;
  animation: fadeIn 0.2s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.bible-book {
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

.bible-book h2 {
  margin-top: 0;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.bible-book.bible-bg-black h2 {
  border-bottom: 2px solid white !important;
}

.bible-chapter {
  margin: 20px 0;
}

.bible-chapter h3 {
  margin-bottom: 15px;
}

.bible-verses {
  line-height: 1.8;
}

.bible-verse {
  margin-bottom: 10px;
}

.verse-number {
  font-weight: bold;
  margin-right: 5px;
}

.error-message {
  color: #e74c3c;
  padding: 15px;
  background: #fadbd8;
  border-radius: 4px;
  text-align: center;
}

.bible-schedule-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
  flex-wrap: wrap;
}

.bible-nav-arrows {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.bible-nav-arrows .bible-nav-button {
  padding: 2px;
}

.bible-nav-arrows .bible-nav-button svg {
  width: 24px;
  height: 24px;
  display: block;
}

.bible-schedule-navigation button {
  border: none;
  border-radius: 8px;
  padding: 4px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}

.bible-schedule-navigation button.bible-bg-white {
  background: #f9f9f9;
  color: #000;
}
.bible-schedule-navigation button.bible-bg-black {
  background: #18181c;
  color: #fff;
}
.bible-schedule-navigation button.bible-bg-cream {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.bible-schedule-navigation #prev-day {
  cursor: pointer;
  border-radius: 4px;
}

.bible-schedule-navigation #next-day {
  cursor: pointer;
  rotate: 180deg;
  border-radius: 4px;
}

.bible-schedule-navigation #current-day {
  font-weight: bold;
  color: #222;
  flex: 1;
  text-align: center;
  min-width: 0;
}

@media (max-width: 600px) {
  .bible-schedule-navigation {
    flex-direction: row;
    align-items: center;
  }

  .bible-schedule-navigation button {
    width: auto;
  }

  .bible-schedule-navigation #current-day {
    order: 0;
    flex: 1;
    text-align: center;
  }
}

.bible-books-summary {
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  animation: fadeIn 0.2s ease-in forwards;
}

.bible-book-summary-item {
  margin: 6px 0;
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  gap: 6px;
  align-items: center;
}

.bible-book-summary-item strong {
  font-weight: 600;
}

.bible-book-summary-item span {
  color: #555;
}

.bible-book-summary-item:not(:last-child) {
  border-bottom: 1px #ddd;
  padding-bottom: 6px;
}

@media (max-width: 600px) {
  .bible-books-summary {
    padding: 16px;
  }

  .bible-book-summary-item {
    font-size: 15px;
  }
}

.bible-bg-select-wrapper {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-family: sans-serif;
  font-size: 14px;
  color: #222;
}

.bible-bg-select-wrapper span {
  font-weight: 500;
}

#bible-bg-select {
  padding: 6px 12px 6px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  min-width: 120px;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

#bible-bg-select:hover,
#bible-bg-select:focus {
  border-color: var(--primary-color);
  outline: none;
}

#bible-bg-select option[value="black"] {
  background-color: #18181c;
  color: #fff;
}

#bible-bg-select option[value="cream"] {
  background-color: #f5e6c4;
  color: #000;
}

.bible-bg-white {
  background: #f9f9f9;
  color: #000;
}

.bible-bg-black {
  background: #18181c;
  color: #fff;
}
.bible-bg-cream {
  background-color: #f6eee3;
  color: #263238;
  line-height: 1.8;
}
.bible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.bible-header p:empty {
  display: none;
}

.bible-header .burger {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  border-radius: 4px;
  padding: 4px;
  cursor: pointer;
}

.bible-header .burger:hover {
  background-color: #f9f9f9;
}

.bible-header .burger svg {
  width: 30px;
  height: 30px;
  fill: black;
}

.burger button {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.burger button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.burger button svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.days-panel-header-title {
  font-size: 20px;
  margin-left: 20px;
  margin-right: 5px;
}

.days-panel {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100vh;
  background: #fff;
  border-left: 2px solid #000;
  transition: right 0.3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.days-panel.open {
  right: 0;
}

@media (max-width: 768px) {
  .days-panel {
    width: 100%;
    right: -100%;
  }

  .days-panel.open {
    right: 0;
  }
}

.days-panel-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 4px;
  border-bottom: 2px solid #000;
}

.days-panel-header h3 {
  text-align: center;
  font-weight: bold;
  width: 100%;
}

.close-days {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.close-days:hover {
  background-color: #f9f9f9;
}

.days-list {
  overflow-y: auto;
}

.day-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  text-align: right;
  background: #fff;
  border: none;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}

.days-list {
  display: flex;
  flex-direction: column;
}

.day-item.is-today {
  background-color: #fffbeb;
  z-index: 10;
}

.today-tag {
  display: inline-block;
  background: #f59e0b;
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
}

.day-item p {
  margin: 0;
}

.day-item:not(.is-today):hover {
  background: #f3f3f3;
}

.day-item-date {
  font-weight: bold;
  font-size: large;
}

.day-item-schedule {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 16px;
}
