/* Header Search Results Dropdown */
#header-search-app {
    position: relative;
    width: 100%;
}

.header-search-form {
    position: relative;
    width: 100%;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin-top: 0;
    z-index: 9999;
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
}

.search-loading {
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #666;
}

.search-results-list {
    padding: 8px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    margin-bottom: 4px;
}

.search-result-item:last-child {
    margin-bottom: 0;
}

.search-result-item:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(255, 135, 135, 0.05) 100%);
    border-color: #ff6b6b;
    transform: translateX(3px);
}

.search-result-item .result-image {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
}

.search-result-item .result-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.search-result-item .result-info h6 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item:hover .result-info h6 {
    color: #ff6b6b;
}

.search-result-item .result-info p {
    margin: 0;
    font-size: 13px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.search-no-results p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.search-no-results p:before {
    content: "\f002";
    font-family: "Font Awesome 5 Pro";
    font-weight: 400;
    display: block;
    font-size: 36px;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* Scrollbar styling for search results */
.search-results-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .search-results-dropdown {
        max-height: 350px;
    }

    .search-result-item .result-image {
        width: 60px;
        height: 60px;
    }

    .search-result-item .result-info h6 {
        font-size: 14px;
    }
}

/* Animation for dropdown */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results-dropdown {
    animation: slideDown 0.2s ease-out;
}
