﻿

.sfcontainer {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 50px;
    bottom: 0;
    overflow: hidden;
    background-color: #202020;
    color: #e5e5e5;
}

.sfactionbar {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 50px;
    line-height: 50px;
    background-color: #1f1f1f;
    color: white;
    box-shadow: 0px 0px 5px black;
}


    .sfactionbar > .dropdown {
        position: relative;
        margin: 0;
        padding: 0;
        display: inline-block;
    }

        .sfactionbar > .dropdown a {
            font-size: 16px;
        }

    .sfactionbar button, .sfactionbar a, .sfactionbar label {
        display: inline-block;
        position: relative;
        margin: 0;
        padding: 0;
        padding-left: 16px;
        padding-right: 16px;
        background-color: transparent;
        border: 0;
        font-size: 20px;
        color: white;
        font-weight: lighter;
    }

        .sfactionbar button:hover, .sfactionbar a:hover {
            color: #228bae;
        }

    .sfactionbar > label {
        color: #9fe122;
        font-weight: normal;
    }

.sidemenu-toggle {
    display: none !important;
}

.sfactionbar .sidemenu-toggle {
    display: none !important;
}

.sfactionbar button:hover, .sfactionbar a:hover {
    /*background-color: rgb(187,208,50);*/
    text-decoration: none;
}

.sfactionbar > a.float-right{
    float:right;
}

.sidemenu {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    background-color: #1f1f1f;
    box-shadow: 0px 0px 5px black;
    overflow: hidden;
    overflow-y: auto;
}

.sidemenu-active {
}

.sidemenu-item {
}

.sidemenu-item > h4 {
    line-height: 40px;
    height: 40px;
    padding-left: 8px;
    padding-right: 8px;
    background-color:#1f1f1f;
    color: #228bae;
    margin: 0;
    font-weight: lighter;
/*        border-top: 1px solid #494949;
    border-bottom: 1px solid #494949;*/
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
}

.sidemenu-item > h4:after {
    content: '«';
    float: right;
    color: #228bae;
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    transform: rotate(-90deg);
}

.sidemenu-item.collapsed > h4:after {
    content: '«';
    float: right;
    color: #228bae;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
}

.sidemenu-item.collapsed > .sidemenu-sub-item {
    height: 0;
}

.sidemenu-sub-item, .sidemenu-sub-item:visited, .sidemenu-sub-item:active, a.sidemenu-sub-item, a.sidemenu-sub-item:visited, a.sidemenu-sub-item:active {
    display: block;
    line-height: 40px;
    height: 40px;
    padding-left: 24px;
    padding-right: 8px;
    margin: 0;
    cursor: pointer;
    color: #ebebeb !important;
    overflow: hidden;
    transition-property: height;
    transition-duration: .5s;
    transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    text-decoration: none;
}

.sidemenu-sub-item-s {
    display: block;
    line-height: 24px;
    height: 24px;
    padding-left: 24px;
    padding-right: 8px;
    margin: 0;
    cursor: pointer;
    color: #ebebeb !important;
}

.sidemenu-sub-item:hover, .sidemenu-sub-item-s:hover, a.sidemenu-sub-item:hover, a.sidemenu-sub-item-s:hover {
    text-decoration: none;
    color: #9fe122 !important;
}


.sfbody {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    left: 300px;
    right: 0;
    overflow-y: auto;
    padding: 8px;
    padding: 20px;
    background-color: #1f1f1f;
    color: #ebebeb;
    text-align: left;
}


.sfcontainer.nosidemenu > .sfbody {
    left: 0 !important;
}

.sfcontainer.nosidemenu > .sidemenu {
    display: none !important;
}

.sfbody > .row, .sfbody-content > .row {
    margin-left: 0;
    margin-right: 0;
}


.sfbody-head {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    padding: 20px;
    padding-bottom: 10px;
}

.sfbody-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 200px;
    overflow-y: auto;
    padding: 20px;
    padding-top: 10px;
}

@-webkit-keyframes slide {
    100% {
        left: 0;
    }

    100% {
        right: 0;
    }
}

@keyframes slide {
    100% {
        left: 0;
    }

    100% {
        right: 0;
    }
}

@media (max-width: 1300px) {

    .sidemenu-toggle {
        display: inline-block !important;
    }

    .sfactionbar .sidemenu-toggle {
        display: inline-block !important;
    }

    .sidemenu {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 75%;
        margin-left: -75%;
        transition-property: margin-left;
        transition-duration: .5s;
        transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
        z-index: 999;
    }

    .sidemenu-active {
        margin-left: 0;
        margin-right: 0;
        box-shadow: 10px 0px 15px #494949;
    }

    .sfbody {
        left: 0;
        right: 0;
    }
}


@media print {
    .sfactionbar .no-print, .no-print * {
        display: none !important;
    }


    .sidemenu {
        display: none !important;
    }

    .sidemenu-active {
        display: none !important;
    }

    .sfbody {
        left: 0;
        right: 0;
    }
}

.sfcontainer {
    top: 58px;
    color: var(--app-text);
    background: var(--app-bg);
}

.sfactionbar {
    z-index: 1000;
    height: 58px;
    line-height: 58px;
    border-bottom: 1px solid var(--app-border);
    background: rgba(15, 19, 23, .92);
    box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .22);
    backdrop-filter: blur(16px);
}

.sfactionbar button, .sfactionbar a, .sfactionbar label {
    color: var(--app-text);
}

.sfactionbar > label {
    color: #9fe122;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: .06em;
}

.sfactionbar > label img { margin-right: .35rem; }
.sfactionbar button:hover, .sfactionbar a:hover { color: #53c2e7; }

.sidemenu {
    width: 280px;
    padding: .8rem;
    border-right: 1px solid var(--app-border);
    background: #12171b;
    box-shadow: none;
}

.sidemenu-item { margin-bottom: .45rem; }
.sidemenu-item > h4 {
    height: auto;
    min-height: 42px;
    padding: .65rem .7rem;
    border-radius: .65rem;
    color: #73c7e4;
    background: transparent;
    font-size: .85rem;
    font-weight: 650;
    line-height: 1.5;
}

.sidemenu-item > h4:hover { background: rgba(255, 255, 255, .035); }
.sidemenu-sub-item, .sidemenu-sub-item:visited, .sidemenu-sub-item:active, a.sidemenu-sub-item, a.sidemenu-sub-item:visited, a.sidemenu-sub-item:active {
    height: 40px;
    margin: .1rem 0;
    padding: 0 .7rem 0 2rem;
    border-radius: .6rem;
    color: #b9c4ca !important;
    line-height: 40px;
}

.sidemenu-sub-item:hover, .sidemenu-sub-item-s:hover, a.sidemenu-sub-item:hover, a.sidemenu-sub-item-s:hover {
    color: #fff !important;
    background: var(--app-accent-soft);
}

.sidemenu-sub-item.voice-channel { display: flex; align-items: center; gap: .4rem; }
.voice-channel-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidemenu-sub-item.voice-channel .overview-voice-indicator { margin-right: .35rem; }
.sidebar-presence-status { padding: .35rem .7rem .35rem 2rem; color: #e9bf72; font-size: .75rem; }
.sidebar-presence-status[hidden] { display: none; }

.sfbody {
    left: 280px;
    padding: clamp(1rem, 2vw, 1.5rem);
    color: var(--app-text);
    background: radial-gradient(circle at 85% 0, rgba(34, 139, 174, .07), transparent 25%), var(--app-bg);
}

@media (max-width: 1300px) {
    .sidemenu { width: min(80%, 300px); margin-left: -300px; }
    .sidemenu-active { margin-left: 0; box-shadow: 1rem 0 3rem rgba(0, 0, 0, .45); }
    .sfbody { left: 0; }
}

@media (max-width: 374px) {
    .sidemenu { margin-left: -80%; }
}
