* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  background: #8B0000;
  min-height: 100vh;
  padding: 20px;
  color: #2c1810;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

header {
  text-align: center;
  color: #FFD700;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #5C0000;
  padding: 15px 20px;
  border-radius: 5px;
  border: 2px solid #FFD700;
  position: relative;
  will-change: contents;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 15px;
}

.header-top h1 {
  text-align: left;
  flex: 0 1 auto;
}

.header-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

/* Prevent layout shift during load */
header > * {
  opacity: 1;
  transition: opacity 0.2s ease-in;
}

h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  flex: 1;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  text-align: left;
}

.year-selector {
  background: #FFD700;
  padding: 10px 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #8B0000;
  flex-shrink: 0;
  white-space: nowrap;
}

.year-selector label {
  color: #8B0000;
  font-weight: bold;
  font-size: 1rem;
}

.year-selector select {
  padding: 5px 10px;
  border: 2px solid #8B0000;
  border-radius: 3px;
  font-size: 1rem;
  cursor: pointer;
  background: white;
  color: #8B0000;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: bold;
}

.stats-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #F5F5DC;
  border-radius: 5px;
  padding: 25px;
  margin-bottom: 20px;
  border: 2px solid #8B0000;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2.2rem;
  font-weight: bold;
  color: #8B0000;
}

.stat-label {
  color: #5C0000;
  font-size: 1rem;
  font-weight: bold;
}

.progress-bar {
  background: #F5F5DC;
  height: 30px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 30px;
  border: 2px solid #8B0000;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFD700, #FFA500);
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  color: #8B0000;
  font-weight: bold;
  font-size: 1rem;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.view-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.toggle-btn {
  padding: 10px 30px;
  border: 2px solid #FFD700;
  background: #5C0000;
  color: #FFD700;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.3s;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.toggle-btn.active {
  background: #FFD700;
  color: #8B0000;
  border-color: #8B0000;
}

.today-btn {
  padding: 10px 20px;
  border: 2px solid #FFD700;
  background: linear-gradient(135deg, #8B0000 0%, #5C0000 100%);
  color: #FFD700;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.3s;
  font-family: Georgia, 'Times New Roman', Times, serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.today-btn:hover {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #8B0000;
  border-color: #8B0000;
  transform: scale(1.05);
}

/* Search Box */
.search-box {
  display: flex;
  gap: 0;
}

.search-box input {
  padding: 10px 15px;
  border: 2px solid #FFD700;
  background: #F5F5DC;
  color: #8B0000;
  border-radius: 5px 0 0 5px;
  font-size: 1rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  width: 120px;
  transition: all 0.3s;
}

.search-box input::placeholder {
  color: #8B0000;
  opacity: 0.6;
}

.search-box input:focus {
  outline: none;
  border-color: #8B0000;
  box-shadow: 0 0 8px rgba(139, 0, 0, 0.3);
}

.search-btn {
  padding: 10px 15px;
  border: 2px solid #FFD700;
  border-left: none;
  background: linear-gradient(135deg, #8B0000 0%, #5C0000 100%);
  color: #FFD700;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', Times, serif;
  transition: all 0.3s;
}

.search-btn:hover {
  background: #FFD700;
  color: #8B0000;
}

.day-card.search-highlight {
  animation: pulse-highlight 1s ease-in-out;
  box-shadow: 0 0 20px #FFD700, 0 0 30px #FFD700;
}

@keyframes pulse-highlight {
  0%, 100% { box-shadow: 0 0 10px #FFD700; }
  50% { box-shadow: 0 0 30px #FFD700, 0 0 40px #FFA500; }
}

/* Export Modal */
.export-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

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

.export-modal {
  background: #FFF8DC;
  border: 3px solid #8B0000;
  border-radius: 10px;
  padding: 30px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  text-align: center;
}

.export-modal h3 {
  color: #8B0000;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.3rem;
  margin: 0 0 8px 0;
}

.export-modal p {
  color: #5C0000;
  font-size: 0.85rem;
  margin: 0 0 20px 0;
}

.export-formats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.export-format-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border: 2px solid #8B0000;
  border-radius: 6px;
  background: white;
  color: #8B0000;
  font-size: 0.95rem;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', Times, serif;
  cursor: pointer;
  transition: all 0.2s;
}

.export-format-btn:hover {
  background: #FFD700;
  border-color: #5C0000;
  transform: translateX(3px);
}

.export-format-btn .format-label {
  font-weight: bold;
}


.export-format-btn .format-arrow {
  color: #8B0000;
  font-size: 1.1rem;
}

.export-cancel {
  margin-top: 15px;
  padding: 8px 20px;
  border: none;
  background: none;
  color: #8B0000;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: Georgia, 'Times New Roman', Times, serif;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.export-cancel:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Floating Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B0000 0%, #5C0000 100%);
  color: #FFD700;
  border: 3px solid #FFD700;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #8B0000;
  border-color: #8B0000;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.days-grid.book-plan-grid {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

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

.day-card {
  background: #F5F5DC;
  border-radius: 5px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  border: 2px solid #8B0000;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.day-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  border-color: #FFD700;
}

.day-card.completed {
  background: #FFD700;
  border-color: #8B0000;
  color: #8B0000;
}

.day-card.today {
  border: 3px solid #FFD700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.4);
  position: relative;
  transform: scale(1.05);
  z-index: 10;
}

.day-card.today:not(.completed) {
  background: linear-gradient(135deg, #FFF8DC 0%, #FFFACD 100%);
}

.today-badge {
  background: #8B0000;
  color: #FFD700;
  font-size: clamp(0.5rem, 1.5vw, 0.65rem);
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  margin-top: 3px;
  display: inline-block;
}

.day-number {
  font-size: clamp(0.8rem, 3vw, 1.5rem);
  font-weight: bold;
  margin-bottom: 2px;
  color: #8B0000;
  line-height: 1.2;
}

.day-date {
  font-size: clamp(0.6rem, 2vw, 0.8rem);
  color: #5C0000;
  font-weight: normal;
  margin-bottom: 5px;
}

.day-reading {
  font-size: 0.85rem;
  color: #5C0000;
  display: none;
}

.days-list .day-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.days-list .day-number {
  min-width: 80px;
}

.days-list .day-date {
  min-width: 60px;
  margin-left: 10px;
  margin-bottom: 0;
}

.days-list .today-badge {
  margin-left: 10px;
  margin-top: 0;
}

.days-list .day-card.today {
  transform: none;
}

.days-list .day-reading {
  display: block;
  flex: 1;
  margin-left: 20px;
}

/* Phase headers for self-paced plans */
.phase-header {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #8B0000 0%, #5C0000 100%);
  color: #FFD700;
  padding: 15px 20px;
  border-radius: 8px;
  margin: 15px 0 5px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.phase-header:first-child {
  margin-top: 0;
}

.phase-title {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.phase-progress {
  font-size: 0.85rem;
  opacity: 0.9;
  background: rgba(255, 215, 0, 0.2);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.4);
}

/* "Next" card highlight for self-paced plans */
.day-card.next-up {
  border: 3px solid #FFD700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.4);
  position: relative;
  transform: scale(1.05);
  z-index: 10;
  background: linear-gradient(135deg, #FFF8DC 0%, #FFFACD 100%);
}

.day-card.next-up:hover {
  transform: scale(1.05) translateY(-2px);
}

/* Completion date shown on completed self-paced cards */
.completed-date {
  font-size: 0.7rem !important;
  color: #5C0000 !important;
  font-style: italic;
}

/* Book plan cards */
.day-card.book-card {
  position: relative;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.day-card.book-card .book-name {
  font-size: 0.9rem;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.book-chapters {
  font-size: 0.7rem !important;
  color: #8B0000 !important;
  opacity: 0.7;
}

.book-done-badge {
  background: #8B0000;
  color: #FFD700;
  font-size: 0.6rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
  display: inline-block;
}

.day-card.book-card.completed .book-done-badge {
  background: #5C0000;
}

/* List view adjustments for phase headers */
.days-list .phase-header {
  grid-column: auto;
  margin: 10px 0 5px 0;
}

.days-list .day-card.next-up {
  transform: none;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  animation: fadeIn 0.3s;
  overflow-y: auto;
}

.modal.open {
  display: block;
}

/* Prevent background scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

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

.modal-content {
  background: #F5F5DC;
  margin: 5% auto;
  padding: 30px;
  border-radius: 5px;
  max-width: 600px;
  position: relative;
  animation: slideIn 0.3s;
  border: 3px solid #8B0000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #8B0000;
  font-weight: bold;
}

.close:hover {
  color: #B22222;
}

#modal-day-title {
  color: #8B0000;
  margin-bottom: 15px;
  font-weight: bold;
}

#modal-reading {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #5C0000;
  font-weight: bold;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.text-display {
  margin: 20px 0;
  padding: 20px;
  background: white;
  border-radius: 5px;
  max-height: 400px;
  overflow-y: auto;
  scroll-behavior: smooth;
  border: 2px solid #8B0000;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  position: relative;
}

.text-display.scrolling-active {
  border-color: #FFD700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.text-display.scrolling-active::before {
  content: '▶ Auto-scrolling';
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FFD700;
  color: #8B0000;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 100;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.text-display h3 {
  margin-bottom: 15px;
  color: #8B0000;
  position: sticky;
  top: 0;
  background: white;
  padding-bottom: 10px;
  z-index: 10;
  font-weight: bold;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.verses-container {
  line-height: 1.8;
  font-size: 1.05rem;
  color: #2c1810;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.chapter-heading {
  color: #8B0000;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 0 20px 0;
  padding: 10px;
  background: #FFF8DC;
  border-left: 4px solid #8B0000;
  border-radius: 4px;
}

.verse {
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 3px;
  transition: all 0.4s ease;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  cursor: text;
}

.verse.active {
  background: linear-gradient(90deg, #FFE4B5 0%, #FFF8DC 100%);
  border-left: 4px solid #8B0000;
  padding-left: 16px;
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
  font-weight: 500;
  transition: all 0.3s ease;
}

.verse-number {
  display: inline-block;
  font-weight: bold;
  color: #8B0000;
  margin-right: 8px;
  min-width: 30px;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.audio-player {
  margin: 20px 0;
  padding: 20px;
  background: white;
  border-radius: 5px;
  border: 2px solid #8B0000;
}

.audio-player h3 {
  margin-bottom: 15px;
  color: #8B0000;
  font-weight: bold;
}

#audio-list {
  margin-bottom: 15px;
}

.audio-item {
  padding: 10px;
  margin: 5px 0;
  background: #F5F5DC;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid #8B0000;
  color: #8B0000;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.audio-item:hover {
  background: #FFD700;
  border-color: #8B0000;
}

.audio-item.playing {
  background: #8B0000;
  color: #FFD700;
  border-color: #FFD700;
}

.audio-note {
  padding: 15px;
  background: #FFF8DC;
  border: 2px solid #8B0000;
  border-radius: 5px;
  color: #5C0000;
  font-weight: bold;
  text-align: center;
  margin: 10px 0;
}

.reading-text {
  padding: 20px;
  background: white;
  border: 2px solid #8B0000;
  border-radius: 5px;
  color: #8B0000;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin: 20px 0;
  line-height: 1.6;
}

.audio-item.audio-completed {
  background: #90EE90;
  border-color: #228B22;
  color: #006400;
}

.audio-item.audio-partial {
  background: #FFFACD;
  border-color: #DAA520;
}

.audio-status {
  font-size: 0.85rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  min-width: 30px;
  text-align: center;
}

.audio-status.completed {
  background: #228B22;
  color: white;
}

.audio-status.partial {
  background: #DAA520;
  color: white;
}

.audio-title {
  flex: 1;
  cursor: pointer;
}

.audio-mark-complete {
  background: #228B22;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.2s;
  opacity: 0.7;
}

.audio-mark-complete:hover {
  opacity: 1;
  transform: scale(1.1);
}

.audio-item.audio-completed .audio-mark-complete {
  opacity: 0.3;
  cursor: default;
}

.audio-controls-container {
  padding: 12px;
  margin-bottom: 10px;
  background: #FFF8DC;
  border-radius: 5px;
  border: 2px solid #8B0000;
}

.audio-control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.audio-control-row:last-child {
  margin-bottom: 0;
}

.audio-control-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #8B0000;
  font-weight: bold;
  font-size: 0.9rem;
}

.audio-control-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #8B0000;
}

.play-all-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #8B0000 0%, #5C0000 100%);
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', Times, serif;
  transition: all 0.3s;
}

.play-all-btn:hover {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #8B0000;
  border-color: #8B0000;
  transform: scale(1.05);
}


#audio-element {
  width: 100%;
  margin-top: 10px;
}

.btn-complete {
  width: 100%;
  padding: 15px;
  border: 2px solid #8B0000;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.btn-complete.mark-complete {
  background: #FFD700;
  color: #8B0000;
  border-color: #8B0000;
}

.btn-complete.mark-incomplete {
  background: #8B0000;
  color: #FFD700;
  border-color: #FFD700;
}

.btn-complete:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }
  
  .days-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
  }
  
  .days-grid.book-plan-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  
  .stats-bar {
    flex-direction: column;
    gap: 15px;
  }
}

/* Authentication Styles */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #8B0000;
}

.auth-box {
  background: #F5F5DC;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  border: 3px solid #FFD700;
  max-width: 400px;
  width: 100%;
}

.auth-box h1 {
  text-align: center;
  color: #8B0000;
  margin-bottom: 10px;
  font-size: 2rem;
}

.auth-subtitle {
  text-align: center;
  color: #5C0000;
  margin-bottom: 30px;
  font-size: 1rem;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: 2px solid #8B0000;
  background: white;
  color: #8B0000;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', Times, serif;
  transition: all 0.3s;
}

.auth-tab.active {
  background: #8B0000;
  color: #FFD700;
  border-color: #FFD700;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  color: #8B0000;
  font-weight: bold;
  font-size: 0.9rem;
}

.form-group input {
  padding: 10px;
  border: 2px solid #8B0000;
  border-radius: 5px;
  font-size: 1rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  background: white;
  color: #2c1810;
}

.form-group input:focus {
  outline: none;
  border-color: #FFD700;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.auth-btn {
  padding: 12px;
  background: #FFD700;
  color: #8B0000;
  border: 2px solid #8B0000;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  font-family: Georgia, 'Times New Roman', Times, serif;
  transition: all 0.3s;
  margin-top: 10px;
}

.auth-btn:hover {
  background: #FFA500;
  transform: scale(1.02);
}

.guest-btn {
  padding: 12px;
  background: white;
  color: #8B0000;
  border: 2px solid #8B0000;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  font-family: Georgia, 'Times New Roman', Times, serif;
  transition: all 0.3s;
  margin-top: 10px;
}

.guest-btn:hover {
  background: #F5F5DC;
  transform: scale(1.02);
}

.auth-error {
  color: #B22222;
  font-size: 0.9rem;
  text-align: center;
  min-height: 20px;
  font-weight: bold;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-height: 40px;
  position: relative;
  flex-shrink: 0;
  justify-content: center;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #FFD700;
  padding: 10px 20px;
  border-radius: 5px;
  border: 2px solid #8B0000;
  flex-shrink: 0;
  min-width: fit-content;
}

.user-info span {
  color: #8B0000;
  font-weight: bold;
  font-size: 1rem;
}

.logout-btn {
  padding: 5px 15px;
  background: #8B0000;
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', Times, serif;
  transition: all 0.3s;
}

.logout-btn:hover {
  background: #5C0000;
}

@media (max-width: 768px) {
  .auth-box {
    margin: 20px;
    padding: 30px 20px;
  }
  
  header {
    padding: 12px 15px;
    gap: 12px;
  }
  
  .header-top {
    gap: 10px;
  }
  
  .header-bottom {
    gap: 8px;
    overflow-x: auto;
  }
  
  .header-right {
    flex-wrap: nowrap;
    gap: 8px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .home-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  
  .user-info {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  
  .plan-selector,
  .year-selector {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .plan-selector select,
  .year-selector select {
    padding: 4px 8px;
    font-size: 0.85rem;
  }
}

/* Subscription Styles */
.subscription-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFD700;
  padding: 10px 20px;
  border-radius: 5px;
  border: 2px solid #8B0000;
}

.subscription-info span {
  color: #8B0000;
  font-weight: bold;
  font-size: 0.9rem;
}

.subscribe-btn, .donate-btn {
  padding: 8px 15px;
  background: #8B0000;
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', Times, serif;
  transition: all 0.3s;
}

.subscribe-btn:hover, .donate-btn:hover {
  background: #5C0000;
  transform: scale(1.05);
}

.donate-btn {
  background: #FFD700;
  color: #8B0000;
  border-color: #8B0000;
}

.donate-btn:hover {
  background: #FFA500;
}

/* Donation Modal */
.donation-modal-content {
  max-width: 500px;
  text-align: center;
}

.donation-modal-content h2 {
  color: #8B0000;
  margin-bottom: 15px;
}

.donation-modal-content p {
  color: #5C0000;
  margin-bottom: 25px;
}

.donation-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}

.donation-btn {
  padding: 20px;
  background: #FFD700;
  color: #8B0000;
  border: 2px solid #8B0000;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', Times, serif;
  transition: all 0.3s;
}

.donation-btn:hover {
  background: #8B0000;
  color: #FFD700;
  border-color: #FFD700;
  transform: scale(1.05);
}

.custom-amount {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #8B0000;
}

.custom-amount label {
  color: #8B0000;
  font-weight: bold;
}

.custom-amount input {
  padding: 10px;
  border: 2px solid #8B0000;
  border-radius: 5px;
  font-size: 1.1rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  text-align: center;
}

.donation-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #5C0000;
  font-style: italic;
}

@media (max-width: 768px) {
  .subscription-info {
    flex-direction: column;
    width: 100%;
  }
  
  .donation-amounts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Admin Interface */
.admin-badge {
  flex-shrink: 0;
  background: #ff6b6b;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  margin-right: 0;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  white-space: nowrap;
}

/* Prevent duplicate admin badges */
#admin-badge:not(:first-of-type) {
  display: none !important;
}

.admin-btn {
  background: #5C0000;
  color: #F5E6D3;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 10px;
  transition: background 0.3s;
}

.admin-btn:hover {
  background: #7C0000;
}

.admin-controls {
  background: #FFF8DC;
  border: 2px solid #5C0000;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.admin-panel h3 {
  color: #5C0000;
  margin-top: 0;
}

.admin-buttons {
  display: flex;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.admin-action-btn {
  background: #5C0000;
  color: #F5E6D3;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.admin-action-btn.primary {
  background: #2E7D32;
  font-weight: bold;
}

.admin-action-btn.primary:hover:not(:disabled) {
  background: #388E3C;
}

.admin-action-btn:hover:not(:disabled) {
  background: #7C0000;
  transform: translateY(-2px);
}

.admin-action-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.recording-status {
  background: #fff;
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
  font-weight: bold;
  color: #5C0000;
  min-height: 20px;
}

.timestamp-preview {
  background: #fff;
  padding: 15px;
  border-radius: 4px;
  margin: 10px 0;
  max-height: 300px;
  overflow-y: auto;
}

.timestamp-preview h4 {
  margin-top: 0;
  color: #5C0000;
}

.timestamp-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 5px;
  font-size: 12px;
  font-family: monospace;
}

.verse.recording-mode {
  cursor: pointer;
  transition: background 0.2s;
}

.verse.recording-mode:hover {
  background: #ffffcc;
}

/* Notification Toast */
.notification-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #228B22;
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-size: 1rem;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', Times, serif;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  border: 2px solid #FFD700;
}

.notification-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .notification-toast {
    max-width: 90%;
    font-size: 0.9rem;
    padding: 12px 20px;
  }
}

/* Reading Plan Selector */
.plan-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFD700;
  padding: 10px 15px;
  border-radius: 5px;
  border: 2px solid #8B0000;
  flex-shrink: 0;
  white-space: nowrap;
}

.plan-selector label {
  color: #8B0000;
  font-weight: bold;
  font-size: 0.9rem;
}

.plan-selector select {
  padding: 5px 10px;
  border: 2px solid #8B0000;
  border-radius: 3px;
  background: white;
  color: #8B0000;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', Times, serif;
  cursor: pointer;
}

.manage-plans-btn {
  background: #8B0000;
  color: #FFD700;
  flex-shrink: 0;
  white-space: nowrap;
  border: none;
  border-radius: 3px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.manage-plans-btn:hover {
  background: #5C0000;
  transform: scale(1.1);
}

/* Plans Modal */
.plans-modal-content {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

.plans-list {
  margin-bottom: 20px;
}

.plans-list h3 {
  color: #8B0000;
  margin-bottom: 15px;
}

#custom-plans-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
  min-height: 50px;
}

.plan-item {
  background: #F5F5DC;
  border: 2px solid #8B0000;
  border-radius: 5px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-info h4 {
  color: #8B0000;
  margin: 0 0 5px 0;
}

.plan-info p {
  color: #5C0000;
  margin: 0;
  font-size: 0.9rem;
}

.plan-actions {
  display: flex;
  gap: 8px;
}

.btn-edit, .btn-delete {
  padding: 6px 12px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', Times, serif;
  transition: all 0.2s;
}

.btn-edit {
  background: #FFD700;
  color: #8B0000;
}

.btn-edit:hover {
  background: #FFA500;
}

.btn-delete {
  background: #B22222;
  color: white;
}

.btn-delete:hover {
  background: #8B0000;
}

.btn-primary {
  background: #8B0000;
  color: #FFD700;
  border: 2px solid #FFD700;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', Times, serif;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: #5C0000;
  transform: scale(1.02);
}

.btn-secondary {
  background: #F5F5DC;
  color: #8B0000;
  border: 2px solid #8B0000;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', Times, serif;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #E5E5CC;
}

/* Plan Editor */
.plan-editor {
  background: #FFF8DC;
  border: 2px solid #8B0000;
  border-radius: 5px;
  padding: 20px;
  margin-top: 20px;
}

.plan-editor h3 {
  color: #8B0000;
  margin-top: 0;
}

.plan-editor .form-group {
  margin-bottom: 15px;
}

.plan-editor label {
  display: block;
  color: #8B0000;
  font-weight: bold;
  margin-bottom: 5px;
}

.plan-editor input,
.plan-editor textarea,
.plan-editor select {
  width: 100%;
  padding: 8px;
  border: 2px solid #8B0000;
  border-radius: 3px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  box-sizing: border-box;
}

.help-text {
  color: #5C0000;
  font-size: 0.9rem;
  margin: 5px 0 10px 0;
}

.plan-builder {
  background: white;
  border: 2px solid #8B0000;
  border-radius: 5px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.book-selector,
.chapter-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.book-selector label,
.chapter-selector label {
  margin: 0;
  min-width: 100px;
}

.book-selector select {
  flex: 1;
}

.chapter-selector input {
  width: 80px;
}

.btn-add {
  background: #228B22;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', Times, serif;
  transition: all 0.2s;
}

.btn-add:hover {
  background: #1a6b1a;
}

.plan-days-list {
  max-height: 300px;
  overflow-y: auto;
  border: 2px solid #8B0000;
  border-radius: 3px;
  padding: 10px;
  background: white;
  min-height: 100px;
}

.plan-day-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  margin-bottom: 5px;
  background: #F5F5DC;
  border: 1px solid #8B0000;
  border-radius: 3px;
}

.plan-day-item .day-number {
  font-weight: bold;
  color: #8B0000;
  min-width: 60px;
}

.plan-day-item .day-reading {
  flex: 1;
  color: #5C0000;
}

.plan-day-item .day-actions {
  display: flex;
  gap: 5px;
}

.btn-move-up,
.btn-move-down,
.btn-remove {
  background: #8B0000;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-move-up:hover,
.btn-move-down:hover {
  background: #5C0000;
}

.btn-remove {
  background: #B22222;
}

.btn-remove:hover {
  background: #8B0000;
}

.plan-days-editor {
  max-height: 300px;
  overflow-y: auto;
  border: 2px solid #8B0000;
  border-radius: 3px;
  padding: 10px;
  background: white;
}

.day-editor-row {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  gap: 10px;
  margin-bottom: 8px;
  align-items: center;
}

.day-editor-row label {
  color: #8B0000;
  font-weight: bold;
  margin: 0;
}

.day-editor-row input {
  padding: 5px;
  border: 1px solid #8B0000;
  border-radius: 3px;
}

.day-editor-row button {
  background: #B22222;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 5px;
  cursor: pointer;
  font-weight: bold;
}

.day-editor-row button:hover {
  background: #8B0000;
}

.editor-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  /* Keep plan-selector inline even on mobile */
  .plan-selector {
    flex-direction: row;
    width: auto;
  }
  
  .plans-modal-content {
    max-width: 95%;
    padding: 15px;
  }
  
  .plan-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .book-selector,
  .chapter-selector {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .book-selector label,
  .chapter-selector label {
    min-width: auto;
  }
  
  .chapter-selector input {
    width: 100%;
  }
}

/* Password Reset */
.forgot-password-link {
  text-align: center;
  margin-top: 10px;
}

.forgot-password-link a {
  color: #8B0000;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
}

.forgot-password-link a:hover {
  text-decoration: underline;
}

.reset-modal-content {
  max-width: 400px;
}

.reset-modal-content h2 {
  color: #8B0000;
  margin-bottom: 10px;
}

.reset-modal-content p {
  color: #5C0000;
  margin-bottom: 20px;
}

.auth-success {
  color: #228B22;
  font-size: 0.9rem;
  text-align: center;
  min-height: 20px;
  font-weight: bold;
  margin-top: 10px;
}

/* Confirmation Overlay */
.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.confirm-box {
  background: #F5F5DC;
  padding: 30px;
  border-radius: 10px;
  border: 3px solid #8B0000;
  max-width: 400px;
  text-align: center;
}

.confirm-box h3 {
  color: #8B0000;
  margin-top: 0;
  margin-bottom: 15px;
}

.confirm-box p {
  color: #5C0000;
  margin-bottom: 25px;
  font-size: 1rem;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.confirm-cancel,
.confirm-delete {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', Times, serif;
  transition: all 0.2s;
}

.confirm-cancel {
  background: #F5F5DC;
  color: #8B0000;
  border: 2px solid #8B0000;
}

.confirm-cancel:hover {
  background: #E5E5CC;
}

.confirm-delete {
  background: #B22222;
  color: white;
  border: 2px solid #B22222;
}

.confirm-delete:hover {
  background: #8B0000;
}

/* App Launcher Styles */
.app-launcher {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.launcher-container {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.launcher-title {
  font-size: 3rem;
  color: #FFD700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  text-align: center;
}

.launcher-subtitle {
  font-size: 1.2rem;
  color: #FFD700;
  margin-bottom: 40px;
}

.launcher-footer {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 40px;
  margin-top: 40px;
  justify-items: center;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.app-card {
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 120px;
}

.app-card:hover {
  transform: translateY(-3px);
}

.app-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.app-name {
  font-size: 1rem;
  color: #FFD700;
  margin-bottom: 0;
  font-weight: bold;
}

.app-description {
  display: none;
}

/* Home Button */
.home-btn {
  background: #FFD700;
  color: #8B0000;
  border: 2px solid #8B0000;
  border-radius: 5px;
  padding: 8px 15px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  flex-shrink: 0;
  white-space: nowrap;
}

.home-btn:hover {
  background: #8B0000;
  color: #FFD700;
  transform: scale(1.05);
}

.home-icon {
  width: 18px;
  height: 18px;
  position: relative;
  display: inline-block;
}

.home-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  border: 2px solid currentColor;
  border-bottom: none;
  border-radius: 2px 2px 0 0;
}

.home-icon::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 8px solid currentColor;
}

.home-text {
  font-size: 0.95rem;
}

/* Dictionary App Styles */
.dictionary-app {
  min-height: 100vh;
}

.dictionary-content {
  background: #F5F5DC;
  border-radius: 5px;
  padding: 30px;
  border: 2px solid #8B0000;
}

.dictionary-search {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  max-width: 600px;
}

.dictionary-search input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #FFD700;
  border-right: none;
  border-radius: 5px 0 0 5px;
  font-size: 1.1rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  background: #F5F5DC;
  color: #8B0000;
}

.dictionary-search input:focus {
  outline: none;
  border-color: #FFD700;
  background: white;
}

.dictionary-search .search-btn {
  padding: 12px 20px;
  border: 2px solid #FFD700;
  border-left: none;
  background: linear-gradient(135deg, #8B0000 0%, #5C0000 100%);
  color: #FFD700;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', Times, serif;
  transition: all 0.3s;
}

.dictionary-search .search-btn:hover {
  background: #FFD700;
  color: #8B0000;
  transform: scale(1.02);
}

.dictionary-stats {
  margin-bottom: 20px;
  color: #5C0000;
  font-size: 1.1rem;
}

.dictionary-stats strong {
  color: #8B0000;
  font-size: 1.3rem;
}

.dictionary-results {
  min-height: 200px;
}

.words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 15px;
  background: white;
  border-radius: 5px;
  border: 2px solid #8B0000;
  max-height: 600px;
  overflow-y: auto;
}

.dictionary-placeholder {
  text-align: center;
  padding: 60px 20px;
  color: #5C0000;
}

.dictionary-placeholder p {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.dictionary-placeholder .hint {
  font-size: 0.9rem;
  color: #8B0000;
  font-style: italic;
}

.word-list-container {
  margin-top: 30px;
}

.word-list-header {
  margin-bottom: 20px;
}

.word-list-header h2 {
  color: #8B0000;
  margin-bottom: 15px;
}

.alphabet-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.alpha-btn {
  background: #FFD700;
  color: #8B0000;
  border: 2px solid #8B0000;
  border-radius: 5px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.alpha-btn:hover {
  background: #8B0000;
  color: #FFD700;
  transform: scale(1.05);
}

.alpha-btn.active {
  background: #8B0000;
  color: #FFD700;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.word-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  max-height: 600px;
  overflow-y: auto;
  padding: 15px;
  background: white;
  border-radius: 5px;
  border: 2px solid #8B0000;
}

.word-item {
  padding: 8px 12px;
  background: #F5F5DC;
  border: 1px solid #8B0000;
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.word-item:hover {
  background: #FFD700;
  transform: scale(1.05);
}

.word-item.selected {
  background: #8B0000;
  color: #FFD700;
}

.word-detail {
  background: white;
  padding: 20px;
  border-radius: 5px;
  border: 2px solid #8B0000;
  margin-bottom: 20px;
}

.word-detail h3 {
  color: #8B0000;
  font-size: 2rem;
  margin-bottom: 15px;
}

.back-to-list-btn {
  background: #8B0000;
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', Times, serif;
  margin-top: 15px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.back-to-list-btn:hover {
  background: #FFD700;
  color: #8B0000;
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .apps-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 30px;
  }
  
  .launcher-title {
    font-size: 2rem;
  }
  
  .app-icon {
    width: 55px;
    height: 55px;
  }
  
  .app-card {
    padding: 8px;
    max-width: 100px;
  }
  
  .app-name {
    font-size: 0.9rem;
  }
  
  .theme-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .dictionary-search {
    flex-direction: column;
  }
  
  .word-list {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

/* MONOKAI THEME - Softer, more readable */
body.theme-monokai {
  background: #272822;
  color: #E6E6E6;
}

body.theme-monokai header {
  background: #3E3D32;
  border-color: #66D9EF;
  color: #E6E6E6;
}

body.theme-monokai h1,
body.theme-monokai .launcher-title {
  color: #66D9EF;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

body.theme-monokai .launcher-subtitle {
  color: #E6E6E6;
}

body.theme-monokai .app-name {
  color: #E6E6E6;
}

body.theme-monokai .home-btn {
  background: #66D9EF;
  color: #272822;
  border-color: #66D9EF;
}

body.theme-monokai .home-btn:hover {
  background: #4EC9B0;
  color: #272822;
}

body.theme-monokai .year-selector {
  background: #3E3D32;
  border-color: #66D9EF;
