/**
 * Search History Dropdown Styles
 */

.search-history-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    margin-top: 2px;
    min-width: 100%;
}

.search-history-clear {
    width: 100%;
    padding: 8px 12px;
    background: #f8f9fa;
    border: none;
    border-bottom: 1px solid #ddd;
    text-align: left;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.search-history-clear:hover {
    background: #e9ecef;
    color: #333;
}

.search-history-clear i {
    font-size: 11px;
}

.search-history-item {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    color: #333;
    font-size: 14px;
}

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

.search-history-item:hover {
    background: #f8f9fa;
}

.search-history-item i {
    color: #6c757d;
    font-size: 12px;
    flex-shrink: 0;
}

.search-history-item span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .search-history-dropdown {
        background: #2d2d2d;
        border-color: #444;
    }

    .search-history-clear {
        background: #3a3a3a;
        border-color: #444;
        color: #ccc;
    }

    .search-history-clear:hover {
        background: #4a4a4a;
        color: #fff;
    }

    .search-history-item {
        color: #e0e0e0;
        border-color: #444;
    }

    .search-history-item:hover {
        background: #3a3a3a;
    }

    .search-history-item i {
        color: #999;
    }
}

/* Scrollbar styling */
.search-history-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-history-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.search-history-dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.search-history-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-history-dropdown {
        max-height: 200px;
    }

    .search-history-item {
        padding: 8px 10px;
        font-size: 13px;
    }
}

