/* Body Style */
/* body {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: small !important;
} */

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

#search-modal.show {
    opacity: 1;
    display: flex !important;
}

.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: #f3f5f9;
    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: #f3f5f9;
    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: #f3f5f9;
    border: #6666661f 1px solid;
    color: #666666;
    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 #4674C6;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #4674C6;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.search-tab.active {
    background: #4674C6;
    color: #fff;
    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: #f3f5f9;
    border-radius: 8px;
    padding: 40px 20px;
}

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

/* Sidebar */
#sidebar {
    position: fixed;
    top: 130px;
    left: 0;
    height: calc(100dvh - 8rem);
    /* width: auto; */
    transform: translateX(0);
    transition: transform 0.3s ease;
    background: #f9fafb;
    overflow-y: auto;
}

#sidebar.active {
    transform: translateX(0);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 30;
}

.sidebar-overlay.active {
    display: block;
}

/* Sidebar Toggle */
.sidebar-toggle {
    position: fixed;
    top: 140px;
    left: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 50;
    transition: transform 0.3s ease;
}

#sidebar.active+.sidebar-toggle {
    transform: translateX(280px);
}

/* Desktop Adjustments */
@media (min-width: 1024px) {
    .sidebar-toggle {
        display: none;
    }

    .sidebar-overlay {
        display: none !important;
    }
}

/* Dropdown Styles */
.dropdown-menu {
    transition: all 0.2s ease-out;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.dropdown.active .dropdown-menu,
.dropdown:hover .dropdown-menu {
    opacity: 1;
    max-height: 1000px;
}

/* Dropdown Desktop */
@media (min-width: 992px) {
    .dropdown-menu {
        transform: translateY(5px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }

    .dropdown:hover .dropdown-menu {
        transform: translateY(0);
    }

    .dropdown-menu a {
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
    }

    .dropdown-menu a:hover {
        border-left-color: #4674C6;
        padding-left: 20px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    #mobile-menu {
        display: block !important;
        padding: 0 !important;
    }

    .dropdown-menu {
        padding-left: 1rem;
        background: #f3f5f9;
    }

    .dropdown-menu a {
        padding-left: 1.5rem;
    }
}
