/* ============================================
   LIVE SEARCH RESULTS - Simplified Mobile-First Style
   ============================================ */

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
}

.search-results-list {
    padding: 4px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.search-result-item:hover,
.search-result-item.selected {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-result-image {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.search-result-details {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    .search-results {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        border-radius: 0 0 8px 8px;
        max-height: 50vh;
        margin-top: 4px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
    
    .search-result-item {
        padding: 12px 16px;
    }
    
    .search-result-image {
        width: 44px;
        height: 44px;
        margin-right: 12px;
    }
    
    .search-result-title {
        font-size: 15px;
        font-weight: 500;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .search-results {
        max-height: 40vh;
    }
    
    .search-result-item {
        padding: 10px 12px;
    }
    
    .search-result-image {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .search-result-title {
        font-size: 14px;
    }
}

/* Scrollbar styling */
.search-results::-webkit-scrollbar {
    width: 4px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.search-results::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* No record found message */
.search-no-results {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
}

.search-no-results::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
    font-size: 16px;
    color: #9ca3af;
}

/* Animation for results appearing */
.search-results-list {
    animation: slideDown 0.15s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
