/* ===== Global Search ===== */
.global-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}
.global-search-bar input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--bg-secondary, #fff);
    color: var(--text-primary, #333);
}
.global-search-bar input:focus {
    outline: none;
    border-color: var(--primary, #4a90d9);
    box-shadow: 0 0 0 2px rgba(74,144,217,.15);
}
.global-search-results {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.global-search-section {
    background: var(--bg-secondary, #fff);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 10px;
    overflow: hidden;
}
.global-search-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-tertiary, #f5f7fa);
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    cursor: pointer;
    user-select: none;
}
.global-search-section-header:hover {
    background: var(--hover-bg, #eef2f7);
}
.global-search-section-icon {
    font-size: 1.15rem;
}
.global-search-section-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary, #333);
}
.global-search-section-count {
    background: var(--primary, #4a90d9);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
}
.global-search-section-toggle {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-muted, #888);
    transition: transform 0.2s;
}
.global-search-section.collapsed .global-search-section-toggle {
    transform: rotate(-90deg);
}
.global-search-section-body {
    max-height: 600px;
    overflow-y: auto;
}
.global-search-section.collapsed .global-search-section-body {
    display: none;
}
.global-search-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color, #f0f0f0);
    gap: 12px;
    transition: background 0.15s;
    cursor: pointer;
}
.global-search-item:last-child {
    border-bottom: none;
}
.global-search-item:hover {
    background: var(--hover-bg, #f8f9fb);
}
.global-search-item-info {
    flex: 1;
    min-width: 0;
}
.global-search-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary, #333);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.global-search-item-detail {
    font-size: 0.8rem;
    color: var(--text-muted, #888);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.global-search-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted, #888);
    font-size: 0.9rem;
}
.global-search-loading {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted, #888);
}
@media (max-width: 600px) {
    .global-search-bar {
        flex-direction: column;
    }
    .global-search-bar button {
        width: 100%;
    }
}

