/* Search Loading Animation Styles */
.search-loading-container {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 1rem;
}

.search-loading-spinner {
    position: relative;
    margin-bottom: 1rem;
}

.search-loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    border: 0.25em solid rgba(0, 123, 255, 0.1);
    border-right-color: #007bff;
    border-radius: 50%;
    display: inline-block;
    animation: search-spin 1s linear infinite;
}

@keyframes search-spin {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

.search-loading-container h4 {
    color: #6c757d;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.search-loading-container p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.8;
}

/* Pulsing effect for loading text */
.search-loading-container h4,
.search-loading-container p {
    animation: search-pulse 2s ease-in-out infinite;
}

@keyframes search-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .search-loading-container {
        min-height: 250px;
        padding: 2rem 1rem;
    }
    
    .search-loading-spinner .spinner-border {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .search-loading-container h4 {
        font-size: 1.1rem;
    }
    
    .search-loading-container p {
        font-size: 0.85rem;
    }
}

/* Alternative loading spinner styles (you can use these instead) */
.search-loading-dots {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.search-loading-dots div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #007bff;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.search-loading-dots div:nth-child(1) {
    left: 8px;
    animation: search-dots1 0.6s infinite;
}

.search-loading-dots div:nth-child(2) {
    left: 8px;
    animation: search-dots2 0.6s infinite;
}

.search-loading-dots div:nth-child(3) {
    left: 32px;
    animation: search-dots2 0.6s infinite;
}

.search-loading-dots div:nth-child(4) {
    left: 56px;
    animation: search-dots3 0.6s infinite;
}

@keyframes search-dots1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes search-dots3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

@keyframes search-dots2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}

/* Search input loading state */
.search-input-loading {
    opacity: 0.6;
    background-image: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: search-input-loading 1.5s infinite;
}

@keyframes search-input-loading {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}