html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

elements-api {
    display: block;
    height: 100%;
    width: 100%;
}

/* Search Button */
.search-trigger {
    position: fixed;
    top: 5px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.2s ease;
}

.search-trigger:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.search-trigger svg {
    color: #64748b;
}

.search-trigger .shortcut-hint {
    position: absolute;
    bottom: -28px;
    right: 0;
    background: #1e293b;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.search-trigger:hover .shortcut-hint {
    opacity: 1;
}

/* Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.search-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Search Container */
.search-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: 90%;
    max-width: 600px;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-container.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Search Box */
.search-box {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Search Input */
.search-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    background: white;
}

.search-input svg {
    color: #64748b;
    flex-shrink: 0;
}

.search-input input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #1e293b;
    background: transparent;
}

.search-input input::placeholder {
    color: #94a3b8;
}

.close-button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #64748b;
    transition: all 0.15s ease;
}

.close-button:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.shortcut {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Results Dropdown */
.results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.results.visible {
    display: block;
}

/* Result Item */
.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover,
.result-item.active {
    background: #f8fafc;
}

.result-item .method {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.result-item .method.GET {
    background: #dbeafe;
    color: #1e40af;
}

.result-item .method.POST {
    background: #d1fae5;
    color: #065f46;
}

.result-item .method.PUT {
    background: #fef3c7;
    color: #92400e;
}

.result-item .method.DELETE {
    background: #fee2e2;
    color: #991b1b;
}

.result-item .method.PATCH {
    background: #e0e7ff;
    color: #3730a3;
}

.result-item .content {
    flex: 1;
    min-width: 0;
}

.result-item .path {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-item .summary {
    font-size: 13px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-item .tag {
    padding: 3px 8px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 11px;
    color: #475569;
    font-weight: 500;
    flex-shrink: 0;
}

/* Highlight */
.highlight {
    /* background: #fef08a;
        font-weight: 600;
        color: #854d0e; */
}

/* Empty State */
.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* Scrollbar */
.results::-webkit-scrollbar {
    width: 8px;
}

.results::-webkit-scrollbar-track {
    background: transparent;
}

.results::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.results::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

svg.svg-inline--fa.fa-bullseye.sl-icon {
    color: #ff7201 !important;
}