* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

body {
  margin: 0;
  background: #f7f9fc;
  color: #1f2937;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  background-image: linear-gradient(to right, #686262, #172b67);
}
.header span{
    color:white;
}
        .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            pointer-events: none;
            font-size: 0.95rem;
        }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.logo img {
  height: 32px;
}

/* search box and suggestions */
.api-search {
  position: relative;
  width: 360px;
}
.search-box:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.search-box {
  width: 100%;
  padding: 10px 35px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}
.right-buttons{
    display: flex;
    align-items: center;
    gap: 33px;
}
.back-btn{
  color: white;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  display: none;
}

body[data-back="true"] .back-btn {
  display: flex;
}

#apiSearchResults {
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 9999;
  display: none;
  box-shadow: 0px 1px 8px 7px rgb(0 0 0 / 4%);
}

#apiSearchResults li {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1),
    box-shadow 0.4s ease;
}

#apiSearchResults li:hover,
#apiSearchResults li.active {
  background: #f5f7fa;
  transform: translateY(-5px) scale(1);
}

.result-type {
  font-size: 11px;
  color: #666;
  margin-left: 6px;
}

.result-endpoint {
  color: #0066cc;
  font-weight: 500;
}

::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
    height: 6px; /* Height of horizontal scrollbar */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* Track color */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888; /* Thumb color */
    border-radius: 10px;
    border: 2px solid #f1f1f1; /* Creates padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background: #555; /* Thumb color on hover */
}

::-webkit-scrollbar-corner {
    background: #f1f1f1; /* Corner between vertical and horizontal scrollbars */
}
