/* Modern Search Interface Styles */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    outline: none;
    border: none;
}

.search-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    flex: 1;
    outline: none;
}

.search-box:focus-within {
    border-color: #007bff;
    box-shadow: 0 4px 25px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 20px;
    outline: none;
    border: none;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 18px 0;
    background: transparent;
    color: #333;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.search-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.search-clear {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: 8px;
    outline: none;
}

.search-clear:hover {
    background: #f8f9fa;
    color: #495057;
}

.search-clear:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.search-button {
    background: #000000;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 12px;
    padding: 18px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
    height: fit-content;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-button:hover {
    background: #2a3b4e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.search-button:active {
    transform: translateY(0);
}

.search-button:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-top: 8px;
    z-index: 1000;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

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

.suggestion-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f1f3f4;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestion-items {
    padding: 8px 0;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s ease;
    color: #495057;
    outline: none;
    border: none;
}

.suggestion-item:hover {
    background: #f8f9fa;
    color: #007bff;
}

.suggestion-item:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.suggestion-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Search Results */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.results-header h3 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

#resultsCount {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Loading State */
.search-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    color: #6c757d;
}

.search-loading .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 12px;
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results h4 {
    margin-bottom: 8px;
    color: #495057;
}

.no-results p {
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-container {
        max-width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    
    .search-box {
        width: 100%;
        border-radius: 12px;
        min-height: 56px;
    }
    
    .search-input-wrapper {
        padding: 0 16px;
        height: 56px;
        display: flex;
        align-items: center;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0;
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .search-button {
        width: 100%;
        height: 56px;
        padding: 0 20px;
        font-size: 1rem;
        justify-content: center;
        border-radius: 12px;
        display: flex;
        align-items: center;
    }
    
    .suggestion-item {
        padding: 14px 16px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Animation for search results */
.search-result-item {
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 