

/* LIBRARY */

.library-container {
    margin-top: 42px;
}

.library-container .resources-toolbar .input-wrapper.search-input {
    width: 100%;
    max-width: 300px;
}

.library-container .resource-start-entry .close-btn {
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 100%;
}

.library-container .resource-start-entry .resource-card .resource-title .tag.start-entry-tag {
    display: inline-block !important;
}

.library-container .resource-card.compact .resource-buttons,
.library-container .resource-card.compact .resource-meta .meta:not(.always-show),
.library-container .resource-card.compact .resource-meta .interpunct {
    display: none !important;
}



/* SEARCH FUNCTIONALITY */

#search-dash-header-form {
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    max-width: 480px;
    height: 38px;
    opacity: 1 !important;
    transform: translateX(-50%);
}

.search-sug-container {
    position: absolute;
    width: 100%;
    border: 1px solid #ABB6BF;
    color: white;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: #222222;
    min-height: 38px;
    z-index: 99999;
}

#search-dash-header {
    outline: none !important;
    box-shadow: none;
    background: transparent !important;
    border: none !important;
    padding: 10px 14px 10px 44px;
    width: 100%;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: white;
    transition: padding 0.2s ease;
}

#search-dash-header::placeholder {
    color: #8c969f;
    opacity: 1;
}

.search-btn-mini {
    background: #007BFF;
    position: absolute;
    top: 4px;
    right: 5px;
    font-size: 13px;
    padding: 6px 16px;
    font-weight: 600;
    border-radius: 100px;
    z-index: 50;
    transform: scale(0);
    border-color: #007BFF;
}

.search-btn-mini.show {
    transform: scale(1) !important;
}

.search-dash-icon {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    padding: 8px 10px 10px 16px;
    line-height: 1.4;
}

.suggestions-list {
    width: 100%;
    /* height manipulated by JS */
    height: 0;
    transition: height .25s ease;
}

.single-suggest {
    width: 100%;
    padding: 8px 16px 8px 44px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}

.single-suggest::first-letter {
    text-transform: capitalize;
}

.single-suggest:hover,
 .single-suggest.selected {
    background: #ABB6BF35;
}

.single-suggest b {
    font-weight: 700;
}

.mobile-search-icon {
    padding: 8px 10px;
    display: none;
}

.mobile-search-icon img {
    width: 20px;
}

.clear-search-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 10px 14px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
}

.clear-search-btn .material-symbols-outlined {
    font-size: 20px;
    color: #ffffffd0;
}

.clear-search-btn:hover .material-symbols-outlined {
    color: #ffffff;
}


/* MEDIA QUERIES */

@media (min-width: 576px) {
    #search-dash-header:focus {
        padding: 10px 82px 10px 44px;
    }
}

@media (min-width: 992px) {
    .clear-search-btn.show {
        pointer-events: all;
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 991.97px) {

    .library-container .resource-start-entry .close-btn {
        top: -16px;
        right: 16px;
    }

    #search-dash-header-form {
        position: relative;
        top: 0;
        left: auto;
        transform: none;
        max-width: 380px;
    }

}

@media (max-width: 767.97px) {

    .library-container .toggle-switch.style-toggle {
        display: none;
    }

    .library-container .resource-card.compact .resource-buttons {
        display: flex !important;
    }

    .library-container .resource-card .resource-details {
        gap: 14px;
    }

    .library-container .resource-card .resource-meta .meta:not(.always-show),
    .library-container .resource-card .resource-meta .interpunct {
        display: none !important;
    }

    #search-dash-header-form {
        position: absolute;
        background: #222222;
        top: -80px;
        left: 0;
        padding: 16px 0 16px 12px;
        transition: top 0.3s ease;
        min-width: 100%;
        max-width: 100%;
        z-index: 9999;
        height: auto;
    }

    .search-sug-container {
        width: calc(100% - 64px);
    }

    #search-dash-header-form.showdown {
        top: 0;
    }

    .search-close-icon {
        display: block;
        padding: 7px 14px 7px;
        color: #ABB6BF !important;
        font-size: 25px;
        float: right;
    }

    .mobile-search-icon {
        display: block;
    }

    .search-btn-mini {
        padding: 6px 14px;
        top: 3px;
        right: 4px;
        font-size: 14px;
        transform: scale(1) !important;
    }

}


@media (max-width: 575.97px) {
    #search-dash-header {
        padding: 10px 82px 10px 14px;
    }

    .single-suggest {
        padding: 8px 14px 8px 14px !important;
    }
}

@media (max-width: 375px) {
    .search-btn-mini {
        font-size: 13px;
    }
}