/* search-panel.css — styles for search.js */

#search-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 340px;
  background: #1e1e1e;
  color: #ccc;
  flex-direction: column;
  z-index: 1000;
  display: flex;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 16px rgba(0,0,0,0.5);
  overflow-y: auto;
}

#search-panel.visible {
  transform: translateX(0);
}

#search-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #333;
  border-bottom: 1px solid #555;
  flex-shrink: 0;
}

#search-panel-header span { font-weight: bold; font-size: 13px; }

#search-panel-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}
#search-panel-close:hover { color: #fff; }

#search-body {
  overflow-y: auto;
  padding: 10px 12px;
}

#search-body .meta-row { margin-bottom: 6px; }

#search-actions {
  padding: 8px 12px;
  background: #2a2a2a;
  border-top: 1px solid #444;
  flex-shrink: 0;
  display: flex;
  gap: 6px;
}

#search-actions button {
  flex: 1;
  padding: 6px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}

/* ── Radius Search Section ── */
#radius-search-section {
    background: #2a2a2a;
    border-top: 1px solid #444;
    border-radius: 3px;
    margin-top: 15px;
    padding: 10px 12px;
}

#radius-search-section h5 {
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
    border-bottom: 1px solid #444;
    padding-bottom: 3px;
}

#radius-search-section label {
    font-size: 11px;
    color: #999;
    margin-bottom: 2px;
}

#radius-search-section input[type="number"],
#radius-search-section select {
    background: #333;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 3px;
    padding: 4px 6px;
    font-size: 12px;
    width: auto;
}

#radius-search-section input[type="number"]:focus,
#radius-search-section select:focus {
    border-color: #3a6ea8;
    outline: none;
}

#set-radius-center-btn {
    background: #3a6ea8;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    width: 100%;
    margin-bottom: 8px;
}

#set-radius-center-btn:hover {
    background: #4a7ec0;
}

#radius-center-info {
    background: #333;
    color: #999;
    font-family: monospace;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 3px;
    border: 1px solid #555;
    margin-top: 6px;
}

#clear-radius-center {
    background: #7a2020;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 5px;
    cursor: pointer;
    font-size: 11px;
    width: 100%;
    margin-top: 6px;
}

#clear-radius-center:hover {
    background: #a03030;
}

#btn-search-run { background: #3a6ea8; color: #fff; }
#btn-search-run:hover { background: #4a7ec0; }

#btn-search-clear { background: #555; color: #ccc; }
#btn-search-clear:hover { background: #666; }

#search-results {
  padding: 0 12px 10px 12px;
  overflow-y: auto;
  max-height: 200px;
  flex-shrink: 0;
}

.search-result-item {
  padding: 5px 0;
  border-bottom: 1px solid #3a3a3a;
  cursor: pointer;
  font-size: 12px;
}
.search-result-item:hover { color: #7ab4f5; }
.search-result-item .result-ts { font-size: 10px; color: #777; }

#search-export-row {
  padding: 6px 12px 10px 12px;
  flex-shrink: 0;
}

#search-export-link { font-size: 11px; color: #7ab4f5; text-decoration: none; }
#search-export-link:hover { text-decoration: underline; }
#search-export-link.disabled { color: #555; pointer-events: none; }
