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

:root {
  --bg-color: #1a1a2e;
  --column-bg: #16213e;
  --text-color: #e8e8e8;
  --verse-color: #a8a8a8;
  --link-color: #4fc3f7;
  --link-hover: #81d4fa;
  --header-bg: #0f0f1a;
  --border-color: #2a2a4a;
  --highlight-bg: #2a3f5f;
  --badge-bg: #4a148c;
  --badge-text: #ffffff;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-color: var(--header-bg);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

header h1 {
  font-size: 1.25rem;
  font-weight: normal;
}

.nav-controls {
  display: flex;
  gap: 0.5rem;
}

#search-input {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--column-bg);
  color: var(--text-color);
  font-size: 0.9rem;
  width: 200px;
}

#search-btn {
  padding: 0.4rem 1rem;
  background-color: var(--link-color);
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

#search-btn:hover {
  background-color: var(--link-hover);
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--verse-color);
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  background-color: var(--column-bg);
  border: 1px solid var(--border-color);
}

.toggle-label:hover {
  color: var(--text-color);
}

.toggle-label input[type="checkbox"] {
  cursor: pointer;
}

/* Hide rejected badges when toggle is active */
body.hide-rejected .ref-badge.rejected {
  display: none;
}

/* Manage button */
.manage-btn {
  padding: 0.4rem 0.75rem;
  background-color: var(--column-bg);
  color: var(--verse-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

.manage-btn:hover {
  color: var(--text-color);
  border-color: var(--verse-color);
}

/* Manage modal */
.manage-modal-content {
  max-width: 500px;
  max-height: 80vh;
}

.manage-section {
  margin-bottom: 1.5rem;
}

.manage-section h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--link-color);
}

.manage-section h4 span {
  color: var(--verse-color);
  font-weight: normal;
}

.manage-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-color);
}

.manage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.manage-item:last-child {
  border-bottom: none;
}

.manage-item .item-ref {
  color: var(--text-color);
}

.manage-item .item-status {
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.5rem;
}

.manage-item .item-status.approved {
  background: #2e7d32;
  color: white;
}

.manage-item .item-status.rejected {
  background: #616161;
  color: white;
}

.manage-item .delete-btn {
  background: none;
  border: none;
  color: #f44336;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem 0.4rem;
  opacity: 0.7;
}

.manage-item .delete-btn:hover {
  opacity: 1;
}

.manage-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.manage-tab {
  padding: 0.25rem 0.5rem;
  background: var(--column-bg);
  border: 1px solid var(--border-color);
  color: var(--verse-color);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
}

.manage-tab:hover {
  color: var(--text-color);
}

.manage-tab.active {
  background: var(--link-color);
  color: #000;
  border-color: var(--link-color);
}

.manage-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.action-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  background: var(--column-bg);
  color: var(--text-color);
}

.action-btn:hover {
  border-color: var(--verse-color);
}

.action-btn.danger {
  background: #c62828;
  border-color: #c62828;
  color: white;
}

.action-btn.danger:hover {
  background: #e53935;
}

.manage-empty {
  padding: 1rem;
  text-align: center;
  color: var(--verse-color);
  font-size: 0.85rem;
}

.container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.column {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-color);
  min-width: 0;
}

.column:last-child {
  border-right: none;
}

.column-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.column-header {
  background-color: var(--header-bg);
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.column-header h2 {
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--verse-color);
  min-width: 100px;
}

.column-header .current-book {
  flex: 1;
  text-align: center;
  font-size: 1.1rem;
  color: var(--link-color);
  font-weight: bold;
}

.column-header select {
  padding: 0.25rem 0.5rem;
  background-color: var(--column-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Column search */
.column-search {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.column-search-input {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--column-bg);
  color: var(--text-color);
  font-size: 0.8rem;
  width: 120px;
}

.column-search-input:focus {
  outline: none;
  border-color: var(--link-color);
}

.search-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.search-count {
  font-size: 0.7rem;
  color: var(--verse-color);
  min-width: 40px;
  text-align: center;
}

.search-nav-btn {
  background: var(--column-bg);
  border: 1px solid var(--border-color);
  color: var(--verse-color);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.6rem;
  line-height: 1;
}

.search-nav-btn:hover {
  background: var(--highlight-bg);
  color: var(--text-color);
}

/* Search match highlighting */
.search-match {
  background-color: #ffd54f;
  color: #000;
  border-radius: 2px;
  padding: 0 1px;
}

.search-match.current {
  background-color: #ff9800;
  outline: 2px solid #ff5722;
}

/* Chapter navigation sidebar */
.chapter-nav {
  width: 70px;
  flex-shrink: 0;
  background-color: var(--header-bg);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 15px;
}

/* NT chapter nav on right side */
#nt-chapter-nav {
  border-right: none;
  border-left: 1px solid var(--border-color);
}

.chapter-nav::-webkit-scrollbar {
  width: 4px;
}

.chapter-nav::-webkit-scrollbar-track {
  background-color: var(--bg-color);
}

.chapter-nav::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 2px;
}

.chapter-num {
  width: 32px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--verse-color);
  cursor: pointer;
  border-radius: 4px;
  margin: 1px 0;
  transition: all 0.15s;
}

.chapter-num:hover {
  background-color: var(--highlight-bg);
  color: var(--text-color);
}

.chapter-num.active {
  background-color: var(--link-color);
  color: #000;
  font-weight: bold;
}

.scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 80px;
  background-color: var(--column-bg);
}

.loading {
  text-align: center;
  color: var(--verse-color);
  padding: 2rem;
}

/* Book and chapter styling */
.book {
  margin-bottom: 2rem;
}

.book-title {
  font-size: 1.5rem;
  color: var(--link-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.chapter {
  margin-bottom: 1.5rem;
}

.chapter-number {
  font-size: 1.1rem;
  color: var(--verse-color);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

/* Verse styling */
.verse {
  display: inline;
}

.verse-number {
  font-size: 0.75rem;
  color: var(--verse-color);
  vertical-align: super;
  margin-right: 0.15rem;
  font-weight: bold;
}

.verse-text {
  display: inline;
}

/* Translator-added words in LXX (like KJV italics convention) */
.translator-added {
  font-style: italic;
  opacity: 0.85;
}

/* Chapter placeholders for lazy loading */
.chapter-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--column-bg) 0%, rgba(74, 20, 140, 0.1) 50%, var(--column-bg) 100%);
  border-left: 3px solid rgba(74, 20, 140, 0.3);
  margin: 0.5rem 0;
}

.placeholder-text {
  color: var(--verse-color);
  opacity: 0.5;
  font-style: italic;
  font-size: 0.9rem;
}

/* Cross-reference links */
.crossref-link {
  color: var(--link-color);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px dotted var(--link-color);
}

.crossref-link:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

/* Reference badge for verses with cross-references */
.ref-badge {
  display: inline-block;
  background-color: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 8px;
  margin-left: 0.25rem;
  vertical-align: middle;
  cursor: pointer;
}

.ref-badge:hover {
  background-color: #6a1b9a;
}

/* Vote-based badge styling */
.ref-badge.low-votes {
  opacity: 0.6;
  font-style: italic;
}

.ref-badge.high-votes {
  border: 1px solid #ffd700;
  box-shadow: 0 0 3px rgba(255, 215, 0, 0.5);
}

/* Multi-reference indicator */
.ref-badge.multi {
  background-color: #c62828;
}

/* Highlighted verse (when scrolled to) */
.verse.highlighted {
  background-color: var(--highlight-bg);
  padding: 0.25rem;
  border-radius: 4px;
  display: inline-block;
}

/* Review panel */
.review-panel {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--header-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.review-panel.hidden {
  display: none;
}

.review-info {
  font-size: 0.85rem;
  color: var(--link-color);
}

.review-btn {
  padding: 0.5rem 0.75rem;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.3rem;
  background: var(--column-bg);
  transition: all 0.15s;
}

.review-btn:hover {
  transform: scale(1.1);
}

.review-btn.approve {
  color: #4caf50;
}

.review-btn.approve.selected {
  background-color: #2e7d32;
  color: white;
  border-color: #4caf50;
}

.review-btn.reject {
  color: #f44336;
}

.review-btn.reject.selected {
  background-color: #c62828;
  color: white;
  border-color: #f44336;
}

/* Verdict indicators on badges */
.ref-badge.approved {
  background-color: #2e7d32 !important;
}

.ref-badge.approved::after {
  content: ' ✓';
  font-size: 0.6rem;
}

.ref-badge.rejected {
  background-color: #616161 !important;
  text-decoration: line-through;
  opacity: 0.6;
}

.ref-badge.rejected::after {
  content: ' ✗';
  font-size: 0.6rem;
}

/* Custom connection badges (user-created) */
.ref-badge.custom {
  background-color: #1565c0 !important;
  border: 1px solid #42a5f5;
}

.ref-badge.custom.approved {
  background-color: #2e7d32 !important;
  border-color: #4caf50;
}

.ref-badge.custom.rejected {
  background-color: #616161 !important;
}

/* Apocrypha/Deuterocanonical cross-reference badges */
.ref-badge.apocrypha {
  background-color: #6a1b9a !important;
  border: 1px solid #9c27b0;
}

.ref-badge.apocrypha:hover {
  background-color: #8e24aa !important;
}

/* Link mode button */
.link-mode-btn {
  padding: 0.4rem 0.75rem;
  background-color: #1565c0;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.link-mode-btn:hover {
  background-color: #1976d2;
}

.link-mode-btn.active {
  background-color: #f57c00;
  animation: pulse 1.5s infinite;
}

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

/* Link indicator bar */
.link-indicator {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f57c00;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.link-indicator.hidden {
  display: none;
}

.link-cancel {
  padding: 0.25rem 0.5rem;
  background-color: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  cursor: pointer;
}

.link-cancel:hover {
  background-color: rgba(255,255,255,0.3);
}

/* Custom selection color for linking */
.verse-text::selection {
  background-color: rgba(33, 150, 243, 0.5);
}

/* Direct quote class - now unified with regular approved badge system */
/* Keeping class for click handling, but no special styling */

/* User-created highlight (for future color-coding) */
.verse.user-highlight .verse-text {
  background-color: rgba(255, 193, 7, 0.2);
  border-bottom: 2px solid rgba(255, 193, 7, 0.5);
  cursor: pointer;
  padding: 0 2px;
}

.verse.user-highlight .verse-text:hover {
  background-color: rgba(255, 193, 7, 0.35);
}

/* User-approved cross-reference highlighting */
.verse.has-approved .verse-text {
  background-color: rgba(33, 150, 243, 0.15);
  border-bottom: 2px solid rgba(33, 150, 243, 0.4);
  cursor: pointer;
  padding: 0 2px;
}

.verse.has-approved .verse-text:hover {
  background-color: rgba(33, 150, 243, 0.3);
}

/* Partial text highlight (user-selected portions) */
.partial-highlight {
  background-color: rgba(255, 152, 0, 0.3);
  border-bottom: 2px solid rgba(255, 152, 0, 0.7);
  cursor: pointer;
  padding: 0 2px;
  border-radius: 2px;
}

.partial-highlight:hover {
  background-color: rgba(255, 152, 0, 0.5);
}

/* Pending highlight (not yet linked) */
.pending-highlight {
  background-color: rgba(33, 150, 243, 0.2);
  border-bottom: 2px dotted rgba(33, 150, 243, 0.8);
  cursor: pointer;
  padding: 0 2px;
  border-radius: 2px;
}

.pending-highlight:hover {
  background-color: rgba(244, 67, 54, 0.3);
  border-bottom-color: rgba(244, 67, 54, 0.8);
}

.pending-highlight:hover::after {
  content: ' ×';
  font-size: 0.8em;
  color: #f44336;
}

/* ============================================================================
   .note-selected - SUBTLE indicator for user-initiated selections
   ============================================================================
   This class is used in Add Note form to show which verses are selected.

   *** THIS IS INTENTIONALLY SUBTLE - JUST AN OUTLINE ***

   DO NOT make this look like .highlighted (full background). The distinction
   between .note-selected and .highlighted is critical to prevent the
   recurring "full verse highlight" bug.

   - .note-selected = user-initiated, subtle outline
   - .highlighted = auto-generated scholarly links, full background
   ============================================================================ */
.verse.note-selected {
  outline: 2px dashed rgba(33, 150, 243, 0.6);
  outline-offset: 2px;
  background-color: rgba(33, 150, 243, 0.05);
}

/* Hide approved badges when highlight mode is on */
body.highlight-approved .ref-badge.approved {
  display: none;
}

/* Modal for multiple references */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: var(--column-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  max-height: 60vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1rem;
  font-weight: normal;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--link-color);
}

.modal-body {
  padding: 1rem;
  overflow-y: auto;
}

.modal-ref-item {
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
}

.modal-ref-item:hover {
  background-color: var(--highlight-bg);
}

.modal-ref-item .ref-title {
  color: var(--link-color);
  font-weight: bold;
}

.modal-ref-item .ref-preview {
  font-size: 0.85rem;
  color: var(--verse-color);
  margin-top: 0.25rem;
}

/* Scrollbar styling */
.scroll-area::-webkit-scrollbar {
  width: 8px;
}

.scroll-area::-webkit-scrollbar-track {
  background-color: var(--bg-color);
}

.scroll-area::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 4px;
}

.scroll-area::-webkit-scrollbar-thumb:hover {
  background-color: var(--verse-color);
}

/* Responsive: allow horizontal scrolling for 4-column view */
@media (min-width: 1600px) {
  .container {
    min-width: 100%;
  }
}

/* Mobile responsive - reduce padding and font size */
@media (max-width: 900px) {
  .scroll-area {
    padding: 0.5rem 10px;
  }

  .chapter-nav {
    width: 40px;
    padding: 0.25rem 5px;
  }

  .chapter-num {
    width: 28px;
    height: 20px;
    font-size: 0.65rem;
  }

  .verse-text {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .verse-number {
    font-size: 0.6rem;
  }

  .ref-badge {
    font-size: 0.55rem;
    padding: 0.05rem 0.2rem;
  }

  .book-title {
    font-size: 1.1rem;
  }

  .chapter-number {
    font-size: 0.9rem;
  }

  .column-header {
    padding: 0.3rem 0.5rem;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .column-header h2 {
    font-size: 0.7rem;
    min-width: auto;
  }

  .column-header .current-book {
    font-size: 0.85rem;
  }

  .column-header select {
    font-size: 0.75rem;
    padding: 0.15rem 0.3rem;
  }

  .column-search-input {
    width: 80px;
    font-size: 0.7rem;
  }

  header h1 {
    font-size: 0.9rem;
  }

  .nav-controls {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  #search-input {
    width: 120px;
    font-size: 0.8rem;
  }
}

/* Extra small screens (phone cover display, etc) */
@media (max-width: 500px) {
  .container {
    flex-direction: column;
  }

  .column {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    max-height: 50vh;
  }

  .column:last-child {
    border-bottom: none;
  }

  .chapter-nav {
    display: none;
  }

  .verse-text {
    font-size: 0.8rem;
  }
}

/* Hidden columns (LXX and Notes toggleable) */
.column.hidden {
  display: none;
}

/* LXX column styling - similar to OT but with different accent */
#lxx-column {
  --lxx-accent: #9c27b0;
}

#lxx-column .column-header h2 {
  color: #ce93d8;
}

#lxx-column .book-title {
  color: #ce93d8;
}

#lxx-column .chapter-num.active {
  background-color: #9c27b0;
}

/* Notes column styling */
#notes-column {
  max-width: 400px;
  min-width: 250px;
  flex: 0 0 350px;
}

#notes-column .column-header h2 {
  color: #ffb74d;
}

#notes-column .current-book {
  font-size: 0.9rem;
  color: var(--verse-color);
  font-weight: normal;
}

.notes-placeholder {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--verse-color);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Notes content area */
#notes-content {
  padding: 1rem;
}

.notes-connection-title {
  font-size: 0.9rem;
  color: var(--link-color);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.notes-textarea {
  width: 100%;
  min-height: 200px;
  padding: 0.75rem;
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
}

.notes-textarea:focus {
  outline: none;
  border-color: var(--link-color);
}

.notes-save-status {
  font-size: 0.75rem;
  color: var(--verse-color);
  margin-top: 0.5rem;
  text-align: right;
}

.notes-save-status.saved {
  color: #4caf50;
}

/* Notes list for all connections */
.notes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.note-item {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.75rem;
}

.note-item-header {
  font-size: 0.85rem;
  color: var(--link-color);
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.note-item-header:hover {
  text-decoration: underline;
}

.note-item-content {
  font-size: 0.85rem;
  color: var(--text-color);
  white-space: pre-wrap;
}

/* Visitor banner in notes */
.visitor-banner {
  background: linear-gradient(135deg, rgba(255, 183, 77, 0.15) 0%, rgba(255, 183, 77, 0.05) 100%);
  border: 1px solid rgba(255, 183, 77, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.visitor-banner p {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-color);
}

.visitor-banner p:last-of-type {
  margin-bottom: 1rem;
}

.owner-notes-header {
  margin-bottom: 1rem;
  text-align: right;
}

/* Add note button */
.add-note-btn {
  background-color: #ffb74d;
  color: #1a1a2e;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.add-note-btn:hover {
  background-color: #ffa726;
}

/* Notes sections */
.notes-section {
  margin-bottom: 1.5rem;
}

.notes-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--verse-color);
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.visitor-section .notes-section-title {
  color: #ffb74d;
  border-bottom-color: rgba(255, 183, 77, 0.3);
}

/* Visitor note styling */
.note-item.visitor-note {
  border-left: 3px solid #ffb74d;
  background: linear-gradient(90deg, rgba(255, 183, 77, 0.08) 0%, transparent 100%);
}

.note-item.owner-note {
  cursor: pointer;
}

.note-item.visitor-note {
  cursor: pointer;
}

.note-item-footer {
  font-size: 0.75rem;
  color: var(--verse-color);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Add note form */
.add-note-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.add-note-instructions {
  font-size: 0.85rem;
  color: var(--verse-color);
  margin: 0;
  line-height: 1.5;
}

.pending-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2rem;
  padding: 0.5rem;
  background-color: var(--bg-color);
  border: 1px dashed var(--border-color);
  border-radius: 4px;
}

.no-regions {
  color: var(--verse-color);
  font-size: 0.85rem;
  font-style: italic;
}

.pending-region {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  background-color: var(--border-color);
  color: var(--text-color);
}

.pending-region.ot {
  background-color: rgba(74, 20, 140, 0.3);
  border: 1px solid #9c27b0;
}

.pending-region.nt {
  background-color: rgba(26, 115, 232, 0.3);
  border: 1px solid #1a73e8;
}

/* Author input row */
.note-author-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--verse-color);
}

.author-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 0.85rem;
  padding: 0.25rem;
  width: 120px;
}

.author-input:focus {
  outline: none;
  border-bottom-color: #ffb74d;
}

.note-date {
  margin-left: auto;
  font-size: 0.75rem;
}

/* Add note actions */
.add-note-actions,
.note-detail-actions {
  display: flex;
  gap: 0.5rem;
}

.save-note-btn {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
}

.save-note-btn:hover {
  background-color: #43a047;
}

.cancel-note-btn {
  background-color: var(--border-color);
  color: var(--text-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
}

.cancel-note-btn:hover {
  background-color: var(--bg-color);
}

.delete-note-btn {
  background-color: #e53935;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
}

.delete-note-btn:hover {
  background-color: #c62828;
}

/* Visitor note detail view */
.visitor-note-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.note-detail-header {
  font-size: 0.9rem;
  color: #ffb74d;
  font-weight: 500;
}

/* Dev toggle for admin mode */
.dev-toggle {
  background-color: rgba(255, 87, 34, 0.2);
  border: 1px dashed #ff5722;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
}

.dev-toggle span {
  color: #ff5722;
}

/* Notes actions row */
.notes-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.notes-buttons {
  display: flex;
  gap: 0.5rem;
}

.delete-note-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
