.lv-sidebar-resource {
    padding: 0rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    margin-top: 1vh;
    gap: 1rem;
    white-space: nowrap;
    margin: 1rem;
    text-align: center;
    overflow: visible;
    z-index: 0;
    background-color: #f9f6f6;
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin: 0.5rem;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    min-width: 95%;
}

.sidebar-container {
    background-color: #8c012c;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    overflow-x: hidden;
    z-index: 3;
}

.sidebar-header-mid {
    background-color: white;
    color: #5b6f5e;
    line-height: 1.5;
    transition: background-color 0.3s ease;
    z-index: 10;
    font-size: 1.25rem;
    color: #f9f6f6;
    padding-top: .5rem;
    padding-bottom: .5rem;

}

.sidebar-school-name {
    text-align: left;
    font-size: 17px;
    white-space: nowrap;
}

.sidebar-last-updated {
    text-align: left;
    font-size: 13px;
    white-space: nowrap;
}

.sidebar-header-top {
    background-color: #5b6f5e;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px;
    box-sizing: border-box;
    width: 100%;
    cursor: pointer;
}

.sidebar-header-bot {
    background-color: #5b6f5e;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px;
    box-sizing: border-box;
    width: 100%;
    border-bottom: 1px solid #4f0019;

}


.sidebar-header-mid, .sidebar-header-bot {
    display: block;
    transition: max-height 0.3s ease;
}

.sidebar-header-arrow {
    margin-left: auto; 
    cursor: pointer; 
    transition: transform 0.3s ease;
}

.sidebar-header-arrow.rotate {
    rotate: 180deg;
}

.sidebar-header-text {
    padding: 0.5rem;
    height: 5rem;
    font-size: 12px;
    color: #f9f9f9;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    font-weight: 600;
    align-items: center;
    display: inline-block;
    max-height: 5rem;

}

.sidebar-text-top {
    padding: 10px;
    box-sizing: border-box;
    width: 100%;
    background-color: #5b6f5e;
    color: white;
    font-size: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.school-info-box {
    width: 100%;
    margin-left: 10px;
    padding: 0;
    background-color: white;
    height: 100%;
    max-width: 320px;

}

.school-info-box h3 {
    margin: 0;
    color: #5b6f5e;
    text-align: center;
}

.school-info-box p {
    margin: 5px 0;
    font-size: 15px;
    max-width: 315px;
    color: #5b6f5e;
}

.school-info-box .info-label {
    font-weight: bold;
    color: #5b6f5e;
    white-space: nowrap;

}

.school-info-box a {
    color: #004793;
    text-decoration: underline;
}

.school-info-box a:hover {
    text-decoration: underline;
    color: #0073ee;
}

.lv-sidebar-resource p {
    flex-grow: 0;
    margin-left: 0;
    color: #1a202c;
    text-align: left;
    padding: 0;
    margin-left: 1vh;
    display: inline;
}  
.fixed-width {
    flex-grow: 1;
    flex-shrink: 0;
}

.lv-sidebar-resource input {
    margin-right: 1rem;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    border-radius: 0.3rem;
    white-space: nowrap;
    position: relative;
    height: 1.5rem;
    width: 1.5rem;
    border-color: #1a202c;
    border-width: 1.5px;
}

.lv-sidebar-button-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    gap: 1rem;
    white-space: nowrap;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: .5rem;
    padding-right: .5rem;
    text-align: center;
    overflow: visible;
    z-index: 1;
    background-color: #8c012c;
    min-width: 100%
}

.lv-sidebar-button-container button {
    padding: 0.5rem;
    display: inline-block;
    flex-grow: 1;
    height: 40px;
    font-size: 1rem;
    color: #1a202c;
    background-color: #f9f6f6;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    font-weight:700;
    align-items: center;
    line-height: 1rem;
}

.lv-sidebar-button-container button:hover {
    background-color: #cccccc;
}

.lv-show-sidebar-btn.hidden {
    visibility: hidden;
    pointer-events: none;
}

.lv-show-sidebar-btn {
    position: relative;
    color: #000;
    z-index: 10;
    font-size: 1.25rem;
    padding-bottom: .28rem;
    padding-left: .6rem;
    padding-right: .6rem;
    margin: .3rem;
    transition: opacity 0.3s ease;

    border-radius: 0.5rem;
    border: 4px solid #8c012c;
    font-weight: 500;
    background-color: transparent;
    cursor: pointer;
    white-space: nowrap;
}


.lv-show-sidebar-btn:hover {
    background-color: rgba(140, 1, 44, 0.2);
    color: #8c012c;
}


.sidebar {
    background-color: #8c012c;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    overflow-x: auto;
    z-index: 3;
}

.sidebar-content {
    flex: 1;
    flex-direction: column;
    overflow: visible;
}

#export-button {
    position: relative;
}

.export-menu {
    display: none;
    position: absolute;
    top: 55%;
    left: -40px;
    transform: translate(210%, -190%);
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 5;
    border-radius: 10px;
    width: 180px;
    font-size: 16px;

    color: #1a202c;
    background-color: #f9f6f6;
    font-weight: bold;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    align-items: center;
    line-height: 1rem; 
    &::before {
        content: '';
        position: absolute;
        top: 50%;
        right: 100%;
        margin-top: -12px; 
        border-width: 12px;
        border-style: solid;
        border-color: transparent white transparent transparent;
    }
}

.export-menu button {
    display: block;
    width: 100%;
    margin: 8px 0;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 10px;
    color: #1a202c;
    background-color: #f9f6f6;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#hide-listview-sidebar-btn{
    display: none;
}

/* do we need? */
@media(max-width: 500px) {

    .map-container--openSidebar {
        grid-template-columns: 100% 0% auto;
    }

    #hide-listview-sidebar-btn,
    #export-pdf,
    #export-csv {
        display: none;
    }

    .sidebar-container {
        border-radius: 0px;
    }

}
