.expert-search-dropdown {
position: absolute;
background: #fff;
border: 1px solid #e0e0e0;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
max-height: 400px;
overflow-y: auto;
z-index: 9999;
font-family: 'Arial', sans-serif;
margin-top: 5px;
} .filterSearchWrap {
position: relative !important;
}
.expert-search-input {
width: 100% !important;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.expert-search-input:focus {
border-color: #007cba !important;
box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2) !important;
outline: none !important;
} .expert-search-input.searching {
border-color: #ffa500 !important;
box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.2) !important;
}
.expert-search-input.search-complete {
border-color: #28a745 !important;
box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2) !important;
}
.expert-search-dropdown::-webkit-scrollbar {
width: 6px;
}
.expert-search-dropdown::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 3px;
}
.expert-search-dropdown::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 3px;
}
.expert-search-dropdown::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}
.suggestion-group {
border-bottom: 1px solid #f0f0f0;
}
.suggestion-group:last-child {
border-bottom: none;
}
.suggestion-group-title {
padding: 12px 16px 8px 16px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
color: #666;
background: #f8f9fa;
border-bottom: 1px solid #e9ecef;
}
.suggestion-item {
display: flex;
align-items: center;
padding: 12px 16px;
cursor: pointer;
transition: background-color 0.2s ease;
border-bottom: 1px solid #f5f5f5;
}
.suggestion-item:last-child {
border-bottom: none;
}
.suggestion-item:hover,
.suggestion-item.active {
background-color: #f8f9fa;
}
.suggestion-item.active {
background-color: #e3f2fd;
}
.suggestion-image {
flex-shrink: 0;
margin-right: 12px;
width: 40px;
height: 40px;
border-radius: 50%;
overflow: hidden;
background: #f5f5f5;
display: flex;
align-items: center;
justify-content: center;
}
.suggestion-image img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50%;
}
.suggestion-content {
flex-grow: 1;
min-width: 0;
}
.suggestion-title {
font-size: 14px;
font-weight: 600;
color: #333;
margin-bottom: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.suggestion-meta {
font-size: 12px;
color: #666;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.suggestion-type {
flex-shrink: 0;
margin-left: 12px;
padding: 4px 8px;
background: #e9ecef;
border-radius: 12px;
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
color: #495057;
}
.suggestion-type.doctor {
background: #d4edda;
color: #155724;
}
.suggestion-type.hospital {
background: #cce5ff;
color: #004085;
}
.suggestion-type.speciality {
background: #fff3cd;
color: #856404;
}
.suggestion-type.location {
background: #f8d7da;
color: #721c24;
}
.suggestion-no-results {
padding: 40px 20px;
text-align: center;
color: #666;
}
.no-results-icon {
font-size: 48px;
margin-bottom: 16px;
opacity: 0.5;
}
.no-results-text {
font-size: 16px;
font-weight: 600;
margin-bottom: 8px;
color: #333;
}
.no-results-hint {
font-size: 14px;
color: #666;
line-height: 1.4;
}
.suggestion-loading {
padding: 30px 20px;
text-align: center;
color: #666;
}
.loading-spinner {
width: 24px;
height: 24px;
border: 2px solid #f3f3f3;
border-top: 2px solid #007cba;
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 12px auto;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loading-text {
font-size: 14px;
color: #666;
} @media (max-width: 768px) {
.expert-search-dropdown {
max-height: 300px;
margin-top: 2px;
}
.suggestion-item {
padding: 10px 12px;
}
.suggestion-image {
width: 36px;
height: 36px;
margin-right: 10px;
}
.suggestion-title {
font-size: 13px;
}
.suggestion-meta {
font-size: 11px;
}
.suggestion-type {
margin-left: 8px;
padding: 3px 6px;
font-size: 9px;
}
.suggestion-group-title {
padding: 10px 12px 6px 12px;
font-size: 11px;
}
} @media (prefers-color-scheme: dark) {
.expert-search-dropdown {
background: #2d3748;
border-color: #4a5568;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.suggestion-group-title {
background: #1a202c;
color: #a0aec0;
border-bottom-color: #4a5568;
}
.suggestion-item {
border-bottom-color: #4a5568;
}
.suggestion-item:hover,
.suggestion-item.active {
background-color: #2d3748;
}
.suggestion-item.active {
background-color: #2b6cb0;
}
.suggestion-title {
color: #f7fafc;
}
.suggestion-meta {
color: #a0aec0;
}
.suggestion-type {
background: #4a5568;
color: #cbd5e0;
}
.no-results-text {
color: #f7fafc;
}
.no-results-hint {
color: #a0aec0;
}
} @media (prefers-contrast: high) {
.expert-search-dropdown {
border-width: 2px;
border-color: #000;
}
.suggestion-item:hover,
.suggestion-item.active {
background-color: #000;
color: #fff;
}
.suggestion-title {
color: #000;
}
.suggestion-item.active .suggestion-title {
color: #fff;
}
} @media (prefers-reduced-motion: reduce) {
.suggestion-item {
transition: none;
}
.loading-spinner {
animation: none;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(0deg); }
}
}