/* Mobile */
@media screen and (max-width: 540px) {
    .qaWideInputPrompt .modal {
        bottom: 10vh;
    }

	.wideInputPromptInputEl {
		width: 100%;
        min-width: 100%;
        max-width: 100%;
		height: 6rem;
		font-size: 16px;
		direction: inherit;
		text-align: inherit;
	}
}

/* Everything else */
@media screen and (min-width: 541px) {
	.wideInputPromptInputEl {
		width: 40rem;
		max-width: 100%;
		height: 20rem;
		font-size: 16px;
		direction: inherit;
		text-align: inherit;
	}
}

.captureToActiveFileContainer {
	display: flex;
	align-content: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.choiceNameHeader {
	text-align: center;
}

.choiceNameHeader:hover {
	cursor: pointer;
}

.folderInputContainer {
	display: flex;
	align-content: center;
	justify-content: space-between;
	margin-bottom: 8px;
	gap: 4px;
}

.quickAddModal .modal {
	min-width: 35%;
	overflow-y: auto;
	max-height: 70%;
}

/* Preview row styling for Choice Builders */
.quickAddModal .qa-preview-row {
	margin: 6px 0;
}
.quickAddModal .qa-preview-label {
	font-weight: 600;
}

.checkboxRowContainer {
	margin: 30px 0px;
	display: grid;
	grid-template-rows: auto;
	align-content: center;
	gap: 5px;
}

.checkboxRow {
	display: flex;
	justify-content: space-between;
	align-content: center;
}

.checkboxRow .checkbox-container {
	flex-shrink: 0;
}

.checkboxRow span {
	font-size: 16px;
	word-break: break-all;
}

.submitButtonContainer {
	display: flex;
	align-content: center;
	justify-content: center;
	gap: 0.5rem;
}

.chooseFolderWhenCreatingNoteContainer {
	display: flex;
	align-content: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.chooseFolderFromSubfolderContainer {
    margin: 20px 0 0 0;
}

.clickable:hover {
	cursor: pointer;
}

.quickAddCommandListItem {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: space-between;
}

.quickCommandContainer {
	display: flex;
	justify-content: flex-end;
	align-content: center;
	margin-bottom: 1em;
	gap: 4px;
}

.yesNoPromptButtonContainer {
	display: flex;
	align-items: center;
	justify-content: space-around;
	margin-top: 2rem;
	gap: 0.5rem;
}

.suggestion-container {
	background-color: var(--modal-background);
	z-index: 100000;
	overflow-y: auto;
}

/* Core suggestion item - sleek, compact, information-dense */
.qaFileSuggestionItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  margin: 1px 0;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  min-height: 32px;
  font-size: 13px;
  line-height: 1.3;
  width: 100%;
}

.qaFileSuggestionItem:hover {
  background-color: var(--background-modifier-hover);
  transform: translateX(2px);
}

.qaFileSuggestionItem.is-selected {
  background-color: var(--interactive-accent);
  color: var(--text-on-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qaFileSuggestionItem.is-selected .suggestion-sub-text {
  color: var(--text-on-accent-inverted);
  opacity: 0.8;
}

/* Priority indicators - subtle left border */
.qa-suggest-exact::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--interactive-accent);
  border-radius: 0 1px 1px 0;
}

.qa-suggest-alias::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-orange, #ff8c00);
  border-radius: 0 1px 1px 0;
}

.qa-suggest-fuzzy::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--text-faint);
  border-radius: 0 1px 1px 0;
}

.qa-suggest-unresolved::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-red, #e74c3c);
  border-radius: 0 1px 1px 0;
}

.qa-suggest-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-blue, #3498db);
  border-radius: 0 1px 1px 0;
}

.qa-suggest-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-purple, #9b59b6);
  border-radius: 0 1px 1px 0;
}

/* Main content area */
.qa-suggestion-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0; /* Allow text truncation */
}

.qaFileSuggestionItem .suggestion-main-text {
  font-weight: 500;
  color: var(--text-normal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.qaFileSuggestionItem .suggestion-sub-text {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  margin-left: auto;
  padding-left: 8px;
  opacity: 0.7;
}

/* Micro pills - ultra-compact status indicators */
.qa-suggestion-pill {
  display: inline-block;
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1;
  opacity: 0.8;
}

.qa-alias-pill {
  background: var(--color-orange, #ff8c00);
  color: white;
}

.qa-unresolved-pill {
  background: var(--color-red, #e74c3c);
  color: white;
}

.qa-create-pill {
  background: var(--color-green, #27ae60);
  color: white;
}

.qa-heading-pill {
  background: var(--color-blue, #3498db);
  color: white;
}

.qa-block-pill {
  background: var(--color-purple, #9b59b6);
  color: white;
}

/* File tooltip - refined and minimal */
.qa-file-tooltip {
  background: var(--background-primary);
  border: 1px solid var(--background-modifier-border);
  border-radius: 4px;
  padding: 8px 10px;
  max-width: 280px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  pointer-events: none;
  font-size: 12px;
}

.qa-tooltip-header {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text-normal);
}

.qa-tooltip-content {
  color: var(--text-muted);
  line-height: 1.3;
}

.qa-tooltip-content div {
  margin-bottom: 2px;
}

/* Performance optimization - GPU acceleration for smooth animations */
.qaFileSuggestionItem {
  will-change: transform, background-color;
  backface-visibility: hidden;
}

/* Focus styles for accessibility */
.qaFileSuggestionItem:focus-visible {
  outline: 2px solid var(--interactive-accent);
  outline-offset: -2px;
}

/* Dark theme refinements */
.theme-dark .qa-file-tooltip {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--background-modifier-border-hover);
}

.theme-dark .qaFileSuggestionItem:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .qa-suggest-exact::before,
  .qa-suggest-alias::before,
  .qa-suggest-fuzzy::before,
  .qa-suggest-unresolved::before,
  .qa-suggest-heading::before,
  .qa-suggest-block::before {
    width: 3px;
  }
  
  .qa-suggestion-pill {
    font-weight: 700;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .qaFileSuggestionItem {
    transition: none;
  }
  
  .qaFileSuggestionItem:hover {
    transform: none;
  }
}

/*  ChoiceListItem.svelte */
.choiceListItem {
	display: flex;
	font-size: 16px;
	align-items: center;
	margin: 12px 0 0 0;
	transition: 1000ms ease-in-out;
}


.choiceListItemName {
	flex: 1 0 0;
}

.choiceListItemName p {
	margin: 0;
	display: inline;
}

/* ChoiceSuggester.ts */
.quickadd-choice-suggestion p {
	margin: 0;
}


/* UpdateModal.ts */
.quickadd-update-modal-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.quickadd-update-modal {
	min-width: 35%;
	max-width: 90%;
	max-height: 70%;
	overflow-wrap: break-word;
	word-wrap: break-word;
	word-break: break-word;
	overflow-x: hidden;
	overflow-y: auto;
}

.quickadd-update-modal pre {
	white-space: pre-wrap;
	word-wrap: break-word;
	overflow-x: auto;
	max-width: 100%;
}

.quickadd-update-modal code {
	word-wrap: break-word;
	white-space: pre-wrap;
	max-width: 100%;
	overflow-x: auto;
}
.quickadd-update-modal img {
	width: 100%;
	height: auto;
	margin: 5px;
}

/* Buy me a coffee */
.quickadd-bmac-container {
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Template path validation styling */
.qa-field-hint {
	margin-top: -4px;
	margin-bottom: 12px;
	font-size: 12px;
	color: var(--text-error);
	min-height: 16px;
}

input.is-invalid,
textarea.is-invalid {
	box-shadow: 0 0 0 1px var(--text-error);
}

/* Suggestion highlighting */
.qa-highlight {
	background-color: var(--text-selection);
	color: var(--text-normal);
	font-weight: 600;
	padding: 0;
	border-radius: 2px;
}
