* {
  box-sizing: border-box;
  outline: none;
}
body{
  margin:0;
  padding:0;

}

#appFrame {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100vh;
  background-color: #fdfdfd;
align-items: stretch;
}

#appNavigation{
  background-color: #efefef;
  width: 250px;
  padding: 20px;
}

#mainContainer {
  flex-grow:1;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#searchContainer {
  padding: 8px;
  border: 2px solid #efefef;
  border-radius: 20px;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#highlightedSearchBox {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;

}

#highlightedText {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 8px;
  color: transparent;
  /* Hide base text */
  pointer-events: none;
  /* Prevent interaction */
  white-space: pre;
  font-family: inherit;
  font-size: inherit;
}

#filterContainer {
  margin: 8px;
  /* padding: 8px; */
  /* border: 1px solid #efefef; */
}

#filterContainer select {
  padding: 8px;
  border: 1px solid #efefef;
  border-radius: 8px;
  background-color: white;
  color: black;
  margin: 4px;
}

span {
  color: rgb(28, 108, 212);
  background-color: rgba(28, 108, 212, 0.1);
  z-index: 1;
  position: relative;
}

#searchBox {
  flex: 1;
  /* Allows dynamic width while preventing overlap */
  padding: 8px;
  background: none;
  color: black;
  caret-color: black;
  font-family: inherit;
  font-size: inherit;
  border: 0;
}

#clearButton {
  position: absolute;
  right: 10px;
  /* Keep it aligned */
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  /* Adjust positioning */
  color: gray;
}

#clearButton:hover {
  color: red;
  /* Highlight when hovered */
}

#suggestions {
  list-style-type: none;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
  background-color: white;
  width: 100%;
  padding-left: 20px;
}

#suggestions li {
  padding: 8px;
}

#suggestions li:hover {
  background-color: #efefef;
  cursor: pointer;
}

div.issue {
  padding: 8px;
  border-bottom: 1px solid #efefef;
}

div.issue:hover {
  background-color: #efefef;
}

div.metadata {
  font-size: smaller;
  color: #999;
}

#contentContainer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 8px;
  border-top: 1px solid #efefef;
  padding-top: 8px;
}

#resultContainer {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#sourceList {
  list-style: none;
  margin: 0;
}

#sourceList li {
  padding: 4px 12px;
  background-color: rgb(243, 247, 250);
  border: 1px solid rgb(243, 247, 250);

  border-radius: 12px;
  margin: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: rgba(33, 36, 39, 0.589);
  text-transform: capitalize;
}
#sourceList li.selected {
  background-color: rgb(165, 197, 233);
  color: rgb(33, 35, 36);
  border: 1px solid rgb(15, 48, 85);
}
#sourceList li:hover {
  background-color: rgb(178, 194, 207);
}
