:root {
    --default-background: #212529;
    --default-text: #adb5bd;

    --lighter-background: rgb(255 255 255 / 5%);
    --2x-lighter-background: rgb(255 255 255 / 2%);
    --success-background: #198754;
    --warning-background: #ffc107;
    --danger-background: #dc3545;

    --light-border: 1px solid rgb(255 255 255 / 5%);
}

body {
    color: var(--default-text);
}
body.navspace {
    padding-top: 80px;
}

.form-control {
    color: #adb5bd;
    background-color: var(--default-background);
    border-color: #495057;
}
.form-control:focus {
    color: #adb5bd;
    background-color: var(--default-background);
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
}
.btn-close-white, .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
.form-check-input {
    background-color: var(--default-background);
    border-color: #495057;
}
.alert-danger {
    background-color: #2c0b0e;
    border-color: #842029;
    color: #ea868f;
}
.alert-success {
    background-color: #051b11;
    border-color: #0f5132;
    color: #75b798;
}
.modal-content {
    background-color: #212529;
    border-color: rgba(255, 255, 255, 0.15);
}
.modal-header {
    border-color: #495057;
}
.modal-footer {
    border-color: #495057;
}
.modal-dialog {
    margin-top: 80px;
}

.saratt-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: var(--lighter-background);
    backdrop-filter: blur(20px);
    z-index: 9999;
}
.saratt-nav .container {
    display: flex;
}
.saratt-nav .items {
    flex: 1;
    display: flex;
    align-items: center;
    margin: 0 10px;
}
.saratt-nav .logo a {
    display: flex;
    color: #FFF;
    text-decoration: none;
}
.saratt-nav .logo .logo-suffix {
    display: flex;
    font-size: 21px;
    font-weight: 500;
    color: #FFF;
    align-items: center;
    margin-bottom: 2px;
    margin-left: 2px;
}
.saratt-nav .right .profile {
    display: flex;
    align-items: center;
    height: 46px;
    margin: 7px 0;
    padding: 0 10px;
    border-radius: 10px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    /*transition: background .1s ease-in-out;*/
}
.saratt-nav .right .profile:hover {
    background: var(--lighter-background);
}
.saratt-nav .right a {
    text-decoration: none;
}
.saratt-nav .right .profile .name {
    margin-left: 7px;
    color: var(--default-text);
    text-decoration: none;
}
.saratt-nav .right .profile .pb .pb-circle {
    border-radius: 9999px;
}
.saratt-nav .menubtn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--default-text);
    height: 46px;
    width: 35px;
    margin: 7px 0;
    padding: 0 10px;
    border-radius: 10px;
    cursor: pointer;
    background-color: transparent;
    border: none;
}
.saratt-nav .menubtn:hover {
    background: var(--lighter-background);
}

.saratt-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}
.saratt-wrapper {
    width: 90%;
    max-width: 600px;
}
.saratt-logo {
    display: flex;
    justify-content: center;
}
.saratt-logo .logo-suffix {
    display: flex;
    font-size: 21px;
    font-weight: 500;
    color: #FFF;
    align-items: center;
    margin-bottom: 2px;
    margin-left: 2px;
}
.saratt-panel {
    background-color: var(--lighter-background);
    min-height: 200px;
    padding: 25px;
    text-align: center;
    border-radius: 10px;
}
.saratt-cp {
    background-color: var(--2x-lighter-background);
    border: var(--light-border);
    padding: 25px;
    border-radius: 10px;
}
.saratt-partlist {

}

.saratt-partlist .saratt-partitem {
    background-color: #25292d;
    border: var(--light-border);
    padding: 15px 25px;
}
.saratt-partlist .saratt-partitem:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.saratt-partlist .saratt-partitem:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.saratt-partlist a.partitem {
    color: var(--default-text);
    text-decoration: none;
}
.saratt-partlist .saratt-partitem-wo {
    background-color: var(--2x-lighter-background);
    border: var(--light-border);
    padding: 15px 25px;
}
.saratt-partlist a:first-child .saratt-partitem-wo {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.saratt-partlist a:last-child .saratt-partitem-wo {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.saratt-partlist .saratt-partitem.success {
    border-left: 12px solid var(--success-background);
    color: #FFF;
}
.saratt-partlist .saratt-partitem.warning {
    border-left: 12px solid var(--warning-background);
    color: #FFF;
}
.saratt-partlist .saratt-partitem.danger {
    border-left: 12px solid var(--danger-background);
    color: #FFF;
}
.workload-line {
    height: 6px;
    width: 140px;
    background-color: var(--danger-background);
    border-radius: 10px;
}
.workload-line .workload-finish {
    height: 100%;
    background-color: var(--success-background);
    border-radius: 10px;
}
.panelmover {
    cursor: move;
}
.saratt-footer {
    border-top: 1px solid rgb(255 255 255 / 5%);
    padding: 25px 0 40px 0;
    margin-top: 50px;
}

.blinkonclick {
    border: none;
    -webkit-transition: width .35s ease-in-out;
    transition: width .35s ease-in-out;
}

.blinkonclick:focus {
    border: 2px solid red;
}

@-webkit-keyframes borderBlink {
    from, to {
        border-color: transparent
    }
    50% {
        border-color: green
    }
}
@keyframes borderBlink {
    from, to {
        border-color: transparent
    }
    50% {
        border-color: green
    }
}
.centermobile {
    height: calc(100vh - 244px);
}
.borderBlink {
    border:2px solid transparent;
    /* add 'border-color: transparent' if you wish no border to show initially */
}
.borderBlink:focus {
    -webkit-animation: borderBlink 0.45s 1;
    animation: borderBlink 0.45s 1;
    transition: .2s ease-in-out;
}
.popover {
    z-index: 99999;
    background-color: #212529;
    --bs-popover-bg: #212529;
    --bs-popover-border-color: rgba(255, 255, 255, 0.15);
}
.popover-body {
    color: #adb5bd;
}
.betainnerhead {
    color: #FFF;
    font-size: 20px;
    text-align: center;
    font-weight: bold;
}
.betaicon {
    font-size: 24px;
}
.beta-tag {
    display: flex;
    align-items: center;
    background-color: #0d6efd;
    color: #FFF !important;
    cursor: pointer;
    margin: 17px 0;
    border-radius: 8px;
    padding: 0 6px;
    margin-left: 5px;
}
.dev-tag {
    display: flex;
    align-items: center;
    background-color: #ffc107;
    color: #000 !important;
    cursor: pointer;
    margin: 17px 0;
    border-radius: 8px;
    padding: 0 6px;
    margin-left: 5px;
}
.saratt-nav .items a {
    text-decoration: none;
    color: var(--default-text);
}


/*
 * Media
 */
@media only screen and (max-width: 1199px) {
    .nowidthon1200 {
        width: 0vw !important;
        position: absolute;
        z-index: 1;
        background-color: rgb(44 48 52) !important;
        max-width: unset !important;
    }
    .breakon1200 > .row {
        flex-direction: column;
    }
    .btnson1200 {
        min-height: 48px;
        width: 100%;
        justify-content: flex-start !important;
        margin-top: 5px;
    }
    .btnsonuserview1200 {
        width: 100%;
        justify-content: flex-start !important;
        min-height: auto !important;
    }
    .nameson1200 {
        width: 100%;
        margin-top: 5px;
    }
    .timeon1200 {
        width: 100%;
        margin-top: 5px;
        margin-bottom: 10px;
    }
    .songtexton1200 {
        width: 100% !important;
    }
    .hideon1200 {
        display: none !important;
    }
}
@media only screen and (max-width: 992px) {
    .songadmincontrols a {
        display: block;
        margin-top: 5px;
    }
    .sac-dropdown {
        display: grid !important;
    }
}
@media only screen and (max-width: 767px) {
    .boldonmobile {
        font-weight: bold;
    }
    .hideonmobile {
        display: none !important;
    }
    .textsmalleronmobile {
        font-size: 12px !important;
    }
    .topsmspaceonmobile {
        margin-top: 5px;
    }
    .toplgspaceonmobile {
        margin-top: 10px;
    }
    .topxlspaceonmobile {
        margin-top: 15px;
    }
    .justifystartonmobile {
        justify-content: start !important;
    }
    .buttontextsmalleronmobile > .btn, .buttontextsmalleronmobile > .dropdown .btn {
        font-size: 12px !important;
    }
    .logo-suffix {
        display: none !important;
    }
    .saratt-nav {
        background-color: #2c3034;
    }
    .saratt-nav .right .profile .name {
        font-size: 14px !important;
    }
    .saratt-footer .container {
        display: block !important;
    }
    .saratt-footer .container div {
        text-align: center;
    }
    .saratt-footer .container-fluid {
        display: block !important;
    }
    .saratt-footer .container-fluid div {
        text-align: center;
    }
    .centermobile {
        height: calc(100vh - 245px);
    }
    .centeronmobile {
        text-align: center;
    }
}

/*
 * Moderation Views
 */
body.moderationview {
    height: -webkit-fill-available;
}

.navspacesmall {
    padding-top: 60px;
}
.modPageHolder {
    display: flex;
}
.modPageHolder .moderationNavbar {
    width: 20vw;
    max-width: 320px;
    background-color: var(--lighter-background);
    height: calc(100vh - 60px);
    overflow-y: auto;
}
.modPageHolder .moderationNavbar::-webkit-scrollbar {
    width: 10px;
}
.modPageHolder .moderationNavbar::-webkit-scrollbar-track {
    background: #2c3034;
}
.modPageHolder .moderationNavbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    border: 2px solid #2c3034;
}
.modPageHolder .moderationNavbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modPageHolder .contentView {
    flex: 1;
    height: calc(100vh - 60px);
    padding: 0 15px;
    overflow-y: scroll;
}
.modNavbar a {
    text-decoration: none;
    white-space: nowrap;
}
.modNavbar {

}
.modNavbar .modNavbarItem {
    display: flex;
    padding: 12px 15px;
    color: var(--default-text);
}
.modNavbar .modNavbarItem:hover {
    background-color: var(--lighter-background);
    color: #FFF;
}
.modNavbar .modNavbarItem .icon {
    font-size: 20px;
    margin: 0 10px;
}
.modNavbar .modNavbarItem .name {
    display: flex;
    align-items: center;
    font-size: 18px;
}
.modNavbar .modNavbarGroup {
    padding: 10px 0;
    margin: 10px 0;
    border-top: 1px solid var(--lighter-background);
    border-bottom: 1px solid var(--lighter-background);
}
.modNavbar .modNavbarGroup:first-child {
    margin-top: 0;
}
.modNavbar .modNavbarGroup .modNavbarGroupName {
    color: #666c72;
    margin: 0 28px;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}
.modPageHolder .contentView::-webkit-scrollbar {
    width: 10px;
}
.modPageHolder .contentView::-webkit-scrollbar-track {
    background: var(--default-background);
}
.modPageHolder .contentView::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    border: 2px solid var(--default-background);
}
.modPageHolder .contentView::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.align-actions {
    display: flex;
    justify-content: end;
}
.flex-scale {
    display: flex;
}

@media only screen and (max-width: 1199px) {
    .modPageHolder .contentView {
        padding: 0;
    }
}

@media screen and (max-width: 766px) {
    table {
        border-collapse: collapse;
    }
    table thead {
        display: none;
    }
    table td {
        display: flex;
        border-bottom: none;
    }
    table tr {
        display: block;
        border-bottom: 1px solid #495057;
    }
    table tr:last-child {
        border-bottom: 0;
    }
    .btn-action-scale {
        --bs-btn-padding-y: 0.25rem;
        --bs-btn-padding-x: 0.5rem;
        --bs-btn-font-size: 0.875rem;
        --bs-btn-border-radius: 0.25rem;
    }
    .flex-scale {
        display: block;
    }
    .flex-scale div {
        margin-bottom: 5px;
    }
    .flex-scale div:last-child {
        margin-bottom: 0;
    }
    .flex-scale div .btn {
        width: 100%;
    }
    table td::before {
        content: attr(label);
        font-weight: bold;
        width: 120px;
        min-width: 120px;
    }
    .align-actions {
        justify-content: start;
    }
}

@media screen and (max-width: 500px) {
    .saratt-center {
        height: auto;
        justify-content: center;
        align-items: start;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}
