.hidden {
  display: none !important;
}

/* Scrollbar styling for notes panels */
.overflow-y-auto::-webkit-scrollbar {
  width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
  background: transparent;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 3px;
}

.note-item-active {
  background-color: rgb(39 39 42);
  border-color: rgb(99 102 241 / 0.4);
}

/* VS Code-style search match highlight */
.search-highlight {
  background-color: rgba(234, 179, 8, 0.38);
  color: #fef9c3;
  border-radius: 2px;
  padding: 0 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Editor mirror-layer highlights */
.editor-mirror-wrap {
  position: relative;
}

.editor-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  color: #e4e4e7;
}

.editor-backdrop-content {
  padding: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: auto;
}

.editor-backdrop-title {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.75rem;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor-input-title.editor-highlight-active,
.editor-input-content.editor-highlight-active {
  color: transparent;
  caret-color: #e4e4e7;
  -webkit-text-fill-color: transparent;
}

.editor-input-title.editor-highlight-active::selection,
.editor-input-content.editor-highlight-active::selection {
  background: rgba(99, 102, 241, 0.4);
}

.editor-input-content {
  position: absolute;
  inset: 0;
}
