body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
}

.container {
  display: grid;
  grid-template-rows: auto auto auto 3fr 1fr 2fr 1fr auto;
  grid-template-columns: 1.5fr 1.5fr 2fr;
  grid-gap: 3px;
  grid-template-areas:
    "header header header"
    "text-menu text-menu search-codes"
    "main main search-codes"
    "main main icd-codes"
    "main main expanded-codes"
    "final-codes suggested-codes expanded-codes"
    "log-panel log-panel expanded-codes"
    "footer footer footer";
  height: 100%;
}

header {
  grid-area: header;
  background: #000000;
  color: white;
  padding: 8px;
  display: flex;
  align-items: center;
}

.logo {
  width: 30px;
  height: 30px;
}

.search-codes {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: #5c5c5c;
}

.input-search-word,
.input-search-code {
  flex: 1;
  margin: 5px;
  font-size: 0.8rem;
  color: #ffffff;
  background: #5c5c5c;
  width: 75px;
}

.word-label,
.code-label {
  color: #a3a8ef;
  padding-left: 5px;
}

.input-search-word {
  flex: 1 0 50%;
}

.fa-check-circle {
  color: #87e29e;
  margin-left: 3px;
}

.fa-question {
  color: #b99a55;
  margin-left: 3px;
}

.fa-trash {
  color: #828283;
  margin-left: 3px;
}

.fa-arrow-up {
  color: #828283;
  margin-left: 3px;
}

.fa-plus {
  color: #828283;
  margin-left: 3px;
}

.code-item-anchor {
  margin-left: 7px;
}

.codeline-coder {
  padding-left: 3px;
  color: #888fec;
  font-size: 0.9em;
  font-style: italic;
}

.codeline-description {
  padding-left: 3px;
  color: #a5a5a5;
}

.codeline-count {
  padding-left: 3px;
  color: #cccccc;
}

div.icd-codes {
  background: #333;
  padding: 8px;
}

#icd-code-list {
  background: #333;
}

ul,
li {
  padding: 0;
  margin: 0;
}

li.icd-code-item:hover {
  background-color: #696969;
}

li.icd-code-item {
  list-style-type: none;
  font-size: 12px;
  background-color: #333;
  color: #fff;
  transition: background-color 0.3s ease;
}

.codes-suggested {
  grid-area: suggested-codes;
  grid-column: 2 / 3;
  overflow-y: auto;
}

.guess {
  color: rgb(155, 155, 155);
}

.codes-top {
  grid-area: icd-codes;
  grid-column: 3;
  flex-direction: column;
  display: flex;
  overflow-y: auto;
}

.codes-expanded {
  grid-area: expanded-codes;
  grid-column: 3;
  flex-direction: column;
  display: flex;
  overflow-y: auto;
}

.top-code-header,
.expanded-code-header {
  display: flex;
  width: 100%;
}

.code-header {
  color: #888fec;
  font-size: 0.8em;
  font-weight: bold;
  margin: 5px 0 5px 0;
  text-align: center;
}

.a-count {
  color: white;
  font-size: 0.8em;
  margin: 5px 5px 5px 5px;
}

.codes-final {
  grid-area: final-codes;
  grid-column: 1 / 2;
  overflow-y: auto;
}

.text-menu {
  grid-area: text-menu;
  grid-column: 1 / 3;
  background: #519462;
  color: #fff;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  padding: 5px;
}

/* .text-menu {
  justify-content: space-between;
  align-items: center;
  width: 100%;
} */

.main label {
  display: none;
}

.log-panel label {
  font-size: 0.8em;
  font-weight: bold;
  color: #888fec
}

.main {
  grid-area: main;
  grid-column: 1 / 3;
  padding: 10px;
  background: #333;
  overflow: hidden;
}

.log-panel {
  grid-area: log-panel;
  grid-column: 1 / 3;
  padding: 10px;
  color: #fff;
  background-color: #333;
  overflow: hidden;
}

textarea#medical-text-main {
  font-family: monospace;
  height: 100%;
  width: 100%;
  background: #333;
  color: white;
  font-size: 12px;
  border: none;
}

.textarea-popup {
  position: fixed;
  padding: 20px;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 90%;
  transform: translate(-50%, -50%);
  background-color: #2e2e2e;
  font-size: 14px;
  padding: 15px;
  border-radius: 8px;
  border-color: #87e29e;
  z-index: 1000;
}

.textarea-popup-textarea {
  margin-bottom: 10px;
  font-size: 12px;
  padding: 10px;
  background: rgba(79, 79, 79, 0.8);
  color: rgb(255, 255, 255);
  width: 98%;
  height: 90%;
}

textarea#log-text {
  font-family: monospace;
  height: 100%;
  width: 100%;
  background: #333;
  color: white;
  font-size: 12px;
  border: none;
}

footer {
  grid-area: footer;
  background: #000000;
  color: white;
  text-align: center;
  padding: 5px;
}

p.path {
  color: rgb(255, 254, 197);
  font-style: italic;
  font-size: 0.8em;
}

p.comment {
  color: rgb(255, 255, 255);
  font-style: italic;
  font-size: 0.8em;
}

.header-title {
  font-weight: bold;
  color: rgb(253, 255, 147)
}

.top-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-center {
  flex: 1;
  text-align: center;
  color: rgb(156, 156, 156)
}

.authors {
  flex: 0;
  font-style: italic;
  color: rgb(186, 161, 255);
  text-align: right;
  cursor: pointer;
}

div.code-choices ul li,
div.code-choices {
  background: #555555;
}

div.sidebar p {
  padding: 0 !;
  margin-top: 3px;
  margin-bottom: 3px;
}

ul.choose-list {
  margin: -3px 0 10px -20px;
  font-size: 0.9em;
}

div.list-seq {
  background: #414141;
  margin-top: 0;
  padding-top: 0;
}

.selected {
  background-color: #696969;
}

li.analyzer-item:hover {
  background-color: hsl(0, 0%, 41%);
}

.title {
  color: rgb(151, 151, 255);
  font-weight: bold;
}

@keyframes flash {
  0% {
    color: rgb(82, 83, 60);
  }

  50% {
    color: rgb(158, 165, 53);
    ;
  }

  100% {
    color: rgb(238, 255, 0);
    ;
  }
}

a.speclink {
  animation: flash 1s infinite;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  color: rgb(238, 255, 0);
}

/* Tooltip base styling */
.tooltip {
  position: absolute;
  background-color: #333;
  color: #b8ff47;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

/* Positioning */
.tooltip[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
}

*/ #logo-top {
  width: 22px;
  margin-left: 0;
  text-align: left;
  opacity: 0.4;
  display: inline;
}

#logo-start {
  position: fixed;
  top: 225px;
  /* Adjust as needed */
  left: 22px;
  /* Adjust as needed */
  width: 157px;
  /* Adjust as needed */
  height: auto;
  /* Maintain aspect ratio */
  opacity: 0.2;
  display: none;
}

/* .assistant-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
} */

.popup-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
}

.assistant-popup {
  position: fixed;
  padding: 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 90%;
  background-color: rgba(31, 31, 31, 0.95);
  z-index: 1000;
  display: grid;
  grid-template-rows: auto 2fr auto 2fr auto;
  grid-template-columns: 1fr 1fr;
  grid-gap: 3px;
  grid-template-areas:
    "top-buttons top-buttons"
    "text-area text-area"
    "bottom-buttons bottom-buttons"
    "final-codes suggested-codes"
    "footer footer";
}

.assistant-topbar {
  grid-area: top-buttons;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  width: 100%;
}

textarea#medical-text-assistant {
  grid-area: text-area;
  margin-bottom: 10px;
  font-size: 12px;
  padding: 10px;
  background: #333;
  color: rgb(255, 255, 255);
  width: 100%;
  height: 100%;
}

.final-code-block {
  grid-area: final-codes;
  margin-bottom: 10px;
  padding: 15px;
  background: #333;
  overflow-y: auto;
}

.suggested-code-block {
  grid-area: suggested-codes;
  grid-column: 2;
  margin-bottom: 10px;
  padding: 15px;
  background: #333;
  overflow-y: auto;
}

.assistant-buttons {
  grid-area: bottom-buttons;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  width: 100%;
  padding: 10px 20px;
}

.assistant-bottom {
  grid-area: footer;
  padding: 10px 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%
}

.assistant-text-label {
  color: #a3a8ef;
  padding-right: 5px;
}

.assistant-top-button {
  margin-right: 5px;
}

.assistant-top-button.assist {
  background-color: #69b97d;
}

.assistant-top-button.extract {
  background-color: #b0aeff;
}

.assistant-button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

.about-container p {
  font-size: 0.9em;
  margin: 10px;
}

.about-container ul {
  margin-left: 30px;
}

.about-container li {
  padding: 0;
  font-size: 0.9em;
  margin-left: 15px;
}

.about-container {
  background: #fff;
  color: #3a3a3a;
  font-size: 0.8em;
}

.about-container h1 {
  color: #888fec;
  font-size: 1.5em;
  padding-bottom: 10px;
  text-align: center;
}

div.about-top-container {
  display: flex;
  justify-content: center;
  align-items: left;
}

.about-top-container li {
  list-style-type: none;
  padding: 0;
  margin-left: 15px;
  font-size: 1.05em;
}

.separator {
  background: #ccc;
  cursor: col-resize;
  height: 100%;
}