/* Modal header */

#notesModal .tt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

#notesModal .tt-modal-header h2 {
  margin: 0;
  padding-right: 1rem;
  font-size: 1.25rem;
}

#notesModal .tt-modal-header .close-btn {
  border: none;
  background: none;
  color: var(--color-orange-400);
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
}

/* Two-column layout */

#notesModal .tt-modal-body {
  display: flex;
  gap: 1rem;
}

#notesModal .tt-modal-body > .column {
  flex: 1;
}

#notesModal .tt-modal-body .column:first-child {
  flex: 0 0 40%;
}

#notesModal .tt-modal-body .column:last-child {
  flex: 1;
}

/* Column labels */

#notesModal .column label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

#notesModal .column .tt-modal-buttons {
  display: flex;
  align-items: stretch;
  justify-content: start;
  gap: 1rem;
  margin-top: 0;
  text-align: right;
}

/* Notes list */

#notesList ul {
  overflow-y: auto;
  margin: 0;
  max-height: 300px;
  padding: 0;
  list-style: none;
}

#notesList ul li {
  position: relative;
  border-bottom: 1px solid #eee;
  padding: 0.5rem 2rem 0.5rem 0.5rem;
  background: #fff;
  font-size: 1rem;
}

#notesList ul li:nth-child(odd) {
  background: #f9f9f9;
}

#notesList ul li:hover {
  opacity: 0.8;
}

/* timestamp */

#notesList ul li .ts {
  display: block;
  margin-top: 0.25rem;
  color: #666;
  font-size: 0.75rem;
}

/* trash icon on hover */

#notesList ul li .trash {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  opacity: 0;
  transform: translateY(-50%);
  cursor: pointer;
}

#notesList ul li:hover .trash {
  opacity: 1;
}

/* Disable Save button until there’s text */

#saveNote:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
