/* Search Modal Styles */
#search-modal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#search-modal.show {
    opacity: 1;
    display: block;
}

.search-modal-container>div {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#search-modal.show .search-modal-container>div {
    transform: scale(1);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

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

.search-result-image-container {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-featured-image {
    background-color: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.default-featured-image i {
    color: #4674C6;
    font-size: 1.5rem;
}

.search-result-text-content {
    flex-grow: 1;
    min-width: 0;
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
    gap: 8px;
}

.search-result-title {
    font-weight: 600;
    color: #4674C6;
    font-size: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-type {
    font-size: .7rem;
    text-transform: uppercase;
    background-color: #e9ecef;
    color: #4674C6;
    font-weight: 600;
    padding: 0px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.search-result-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-category {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

.search-tab {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 1rem;
    font-weight: 500;
    color: #4674C6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-tab:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #4674C6;
}

.search-tab.active {
    background: #4674C6;
    color: #fff;
    font-weight: 600;
    border-color: #4674C6;
}

.search-input {
    transition: all 0.2s ease;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.no-results {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 40px 20px;
}

.search-loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}