/* Global Search Styles */
.navbar-search {
    position: relative;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 8px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    min-width: 400px;
}

.search-results-dropdown .search-category {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    font-size: 13px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-results-dropdown .search-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.search-results-dropdown .search-item:hover {
    background: #f8f9fa;
    padding-left: 20px;
}

.search-results-dropdown .search-item:last-child {
    border-bottom: none;
}

.search-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.search-item-icon.menu-icon {
    background: #e3f2fd;
    color: #1976d2;
}

.search-item-icon.personel-icon {
    background: #e8f5e9;
    color: #388e3c;
}

.search-item-content {
    flex: 1;
}

.search-item-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    color: #212529;
}

.search-item-desc {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
}

.search-no-results {
    padding: 24px 16px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.search-loading {
    padding: 16px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.search-highlight {
    background-color: #fff3cd;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: 600;
}

/* Dark theme support */
[data-theme="dark"] .search-results-dropdown {
    background: #1e1e2d;
    border-color: #2d2d3d;
}

[data-theme="dark"] .search-results-dropdown .search-category {
    background: #2d2d3d;
    border-color: #3d3d4d;
    color: #a0a0b0;
}

[data-theme="dark"] .search-results-dropdown .search-item {
    border-color: #2d2d3d;
    color: #e0e0e0;
}

[data-theme="dark"] .search-results-dropdown .search-item:hover {
    background: #2d2d3d;
}

[data-theme="dark"] .search-item-title {
    color: #e0e0e0;
}

[data-theme="dark"] .search-item-desc {
    color: #a0a0b0;
}

[data-theme="dark"] .search-no-results,
[data-theme="dark"] .search-loading {
    color: #a0a0b0;
}

[data-theme="dark"] .search-highlight {
    background-color: #4a4a2d;
}

[data-theme="dark"] .search-item-icon.menu-icon {
    background: #1a3a52;
    color: #64b5f6;
}

[data-theme="dark"] .search-item-icon.personel-icon {
    background: #1a3a1a;
    color: #81c784;
}
