
/* Global Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 320px;
    background: var(--bg-surface);
    border: 1px solid var(--edge);
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-top: 8px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    animation: fadeIn 0.15s ease-out;
    background-color:var(--panel);
    scrollbar-width: thin;
}

.search-section-header {
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--edge);
    border-top: 1px solid var(--edge);
}

.search-section-header:first-child {
    border-top: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--edge);
    transition: background 0.15s;
    gap: 10px;
}

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

.search-result-item:hover, .search-result-item.selected {
    background: var(--bg-sub);
}

.result-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

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

.result-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-sub {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-empty-state {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Match theme variables */
[data-theme="dark"] .search-dropdown {
    background: #1e293b; /* Check actual var */
}
