/* Enhanced Search Component Styles */

/* Search container */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 240px;
}

/* Search bar active state */
.search-bar.search-active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

/* Search bar focused state */
.search-bar.search-focused {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
    transform: translateY(-1px);
}

/* Search icon */
.search-icon {
    color: var(--secondary-text);
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Search input field */
.search-input {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 14px;
    padding: 12px 0;
    width: 100%;
    outline: none;
    flex: 1;
}

.search-input::placeholder {
    color: var(--secondary-text);
    opacity: 0.7;
}

/* Clear button - Add back the styling */
.search-clear {
    display: none; /* Hidden initially */
    align-items: center;
    justify-content: center;
    color: var(--secondary-text);
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.2s ease;
    height: 100%;
    min-width: 36px; /* Reduced from 40px for better proportions */
    background-color: transparent;
}

/* Make the button take up the full height but with better proportions */
.search-clear i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 10px;
}

.search-clear:hover, .search-clear:active {
    opacity: 1;
    color: var(--primary-color);
    background-color: rgba(10, 132, 255, 0.05);
}

/* Pulse animation for search active state */
@keyframes search-pulse {
    0% { color: var(--secondary-text); }
    50% { color: var(--primary-color); }
    100% { color: var(--secondary-text); }
}

.search-bar.search-active .search-icon {
    color: var(--primary-color);
}

/* No results message styling - ENHANCED UI */
.no-models-message {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(145deg, var(--card-color), rgba(35, 35, 35, 0.8));
    border-radius: 24px;
    margin: 40px auto;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

/* Add subtle background pattern */
.no-models-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 0;
}

/* Improved icon styling with glow effect */
.no-models-message i {
    font-size: 70px;
    margin-bottom: 30px;
    color: var(--primary-color);
    opacity: 0.9;
    background: linear-gradient(145deg, var(--primary-color), #64D2FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(10, 132, 255, 0.3));
    position: relative;
    z-index: 1;
    animation: float 4s ease-in-out infinite;
}

.no-models-message p {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    max-width: 400px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.2px;
}

.no-models-message .secondary-message {
    color: var(--secondary-text);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
    max-width: 380px;
    position: relative;
    z-index: 1;
}

/* Responsive styles */
@media (max-width: 768px) {
    .no-models-message {
        padding: 50px 25px;
        margin: 30px 15px;
    }
    
    .no-models-message i {
        font-size: 60px;
        margin-bottom: 25px;
    }
    
    .no-models-message p {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .no-models-message {
        padding: 40px 20px;
        margin: 20px 10px;
        border-radius: 20px;
    }
    
    .no-models-message i {
        font-size: 50px;
        margin-bottom: 20px;
    }
    
    .no-models-message p {
        font-size: 20px;
    }
    
    .no-models-message .secondary-message {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .search-clear {
        min-width: 32px;
    }
    
    .search-clear i {
        padding: 0 8px;
        font-size: 12px;
    }
}