/* --- Shared modal chrome (used by the notes modal below; the old
   profile modal that used to share this file is gone - see /profiles) --- */

.modal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
}
.primary-btn:hover { background: var(--accent-hover); }

/* Shared "quiet" secondary action - close/cancel buttons that shouldn't
   compete visually with a page's primary-btn. Matches the What's New
   page's close button look (whats_new.css used to style that one by ID
   only; this is the same look promoted to a reusable class). */
.secondary-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.secondary-btn:hover { border-color: var(--accent); color: var(--accent); }

/* --- Voice enrollment rows (used on /landing and the profile detail
   modal - see landing.js / profileDetail.js) --- */

.enrollment-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.enrollment-sentence {
  flex: 1;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.35;
}
.enrollment-record-btn {
  flex-shrink: 0;
}
.enrollment-record-btn.recording {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.enrollment-row-status {
  flex-shrink: 0;
  font-size: 0.85rem;
  min-width: 16px;
  text-align: center;
}

/* --- Notes modal (vocab/mistakes + lesson log) --- */

#notesModalOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 50;
}
#notesModalOverlay.visible { display: flex; }

#notesModal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  width: 420px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
}
#notesModal h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 4px;
}
#notesModal p.sub {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0 0 18px;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.notes-empty {
  color: var(--text-muted);
  font-size: 0.82rem;
}
.notes-item {
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  line-height: 1.4;
}
.notes-item .notes-item-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}
.notes-item .notes-item-meta {
  color: var(--text-muted);
  font-size: 0.72rem;
}

/* --- Language-name autocomplete dropdown (see languageAutocomplete.js) -
   shared across /get-started, /avatar-select, and the Settings modal's
   General tab, since all three load this file already (base.css/
   topbar.css/modals.css/settings.css are loaded globally via index.html,
   unlike each page's own extra stylesheet). The wrapper/dropdown are both
   built by JS, not present in any page's own HTML. */

.lang-autocomplete-wrap {
  position: relative;
}

.lang-autocomplete-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 40;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.lang-autocomplete-dropdown.visible { display: block; }

.lang-autocomplete-item {
  padding: 7px 10px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}
.lang-autocomplete-item:hover,
.lang-autocomplete-item.active {
  background: var(--accent);
  color: #fff;
}
