* {
    font-family: mcfont;
  }
#search-tabs {
  /* Visibility & Animation */
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* Keeps it from blocking clicks while hidden */
  transform: translateY(-20px);
  /* Combined transitions into one property to prevent overrides */
  transition: opacity 0.2s ease-in-out, 
              visibility 0.2s ease-in-out, 
              transform 0.2s ease-in-out, 
              width 0.3s ease-in-out, 
              border 0.2s ease-in-out;
  top: 10%;
  position: fixed;
  left: 0;
  right: 0;
  margin: auto;
  width: 25%;
  background-color: #232323;
  color: #ffffff;
  font-size: 18px;
  padding: 8px;
  border: 3px solid #454545;
  outline: none;
  resize: none;
  white-space: nowrap;
}

#search-tabs.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* Enables interaction when shown */
  transform: translateY(0);
  width: 50%;
  border: 3px solid #05ee93;
}

/* Container for the search panel */
.results-panel {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: calc(10% + 50px); /* Adjust '50px' based on your textarea's height */
  left: 0;
  right: 0;
  margin: auto;
  width: 25%; /* Matches your textarea's expanded width */
  max-height: 300px;
  overflow-y: auto;
  background-color: #232323;
  border: 3px solid #454545;
  border-top: none; /* Merges it with the textarea */
  transition: all 0.2s ease-in-out, width 0.3s ease-in-out;
  z-index: 999;
  text-align: left;
}

/* Show when active */
#search-tabs.is-visible ~ .results-panel {
  opacity: 1;
  visibility: visible;
  width: 50%;
}

/* Individual result styling */
.result-item {
  padding: 10px 15px;
  color: white;
  cursor: pointer;
  border-bottom: 1px solid #333;
  transition: all 0.2s ease-in-out;
}

.result-item:hover {
  color: #05ee93;
}
