.search-panel,
.results-panel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  opacity: 0;
  pointer-events: none; /* disable clicks when hidden */
  transition: all 0.35s ease;
  z-index: 1000;
    
  background: rgba(40, 60, 75, 0.3);
  backdrop-filter: blur(5px);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  width: 80%;
  max-width: 600px;
  box-sizing: border-box;
  color: #fff;
}
  
/* Active state — slide into view */
.search-panel.active,
.results-panel.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
} 
  
/* Search panel specifics */
.search-panel {
  top: 20px;
  padding: 1em;
}

/* Results panel specifics */
.results-panel {
  top: 100px;
  max-height: 50vh;
  overflow-y: auto;
}
/* Header */
.results-header {
  display: flex;
  justify-content: space-between;                                                    
  align-items: center;
  padding-bottom: 0.5em;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

/* Inputs and buttons */
.search-panel input[type="text"] {
  width: 70%;
  padding: 0.5em;
  border-radius: 4px;
  border: 1px solid #ccc;
  outline: none;
}

.search-panel button,
.results-panel button {
  padding: 0.5em 1em;
  margin-left: 0.5em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: rgba(0,0,0,0.2);
  color: #fff;
  transition: background 0.2s;
}

.search-panel button:hover,
.results-panel button:hover {
  background: rgba(0,0,0,0.4);
}

.results-list {
  list-style: none;
  padding: 0.5em 0;
  margin: 0;
}

.results-list li {
  padding: 0.5em 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.results-list li a {
  margin: 5px;
}
.results-list li strong {
  color: #fff;
}
.results-list .loading {
  text-align: center;
  padding: 1em;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: #fff;
}

.close-btn:hover {
  color: #ff6666;
}
