/* Variables */

:root {
    --sidebar-width: 280px;
    --topbar-height: calc(26px + 26px + 61px);
    --border-radius: 10px;
    --searchbar-width: 400px;

    --background-color: #161616;
    --bright-background-color: #212121;
    --dark-color: #a55221;
    --bright-color: #a55221;
    --text-color: #8D9CA7;
    --border-color: #353535;
    --blue-color: rgba(11, 97, 175, 0.5);
}

/* Misc */
.mg-dark {
    background: var(--background-color) !important;
}

.mg-light {
    background: var(--bright-background-color) !important;
}

.mg-rounded {
    border-radius: var(--border-radius);
}

/* Main page */

body,
html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--background-color) !important;
}

/* Skeleton */

.mg-sidebar {
    width: var(--sidebar-width);
    height: 100%;
    overflow-y: auto;
    position: fixed;
}

.mg-main {
    position: absolute;
    width: calc(100% - var(--sidebar-width));
    height: 100%;
    left: var(--sidebar-width);
    top: 0;
}

.mg-inner {
    position: relative;
    width: 100%;
    height: calc(100% - 26px - 26px) !important;
    top: 26px;
    border-right: 1px solid var(--border-color);
}

.mg-navbar {
    position: relative;
    width: 100%;
    height: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

.mg-footer-inner {
    left: 0;
    bottom: 0;
    padding-left: 40px;
    padding-right: 40px;
}

.mg-footer-inner-bottom {
    position: absolute;
    left: 0;
    bottom: 0;
    padding-left: 40px;
    padding-right: 40px;
}

/* Navbar */

.nav-heading {
    position: relative;
    top: 0 !important;
    float: left;
    color: var(--dark-color);
    width: 100%;
    font-family: "MotivaSansBold";
    margin-bottom: 10px;
}

.mg-nav-item {
    transition: .4s;
    position: relative;
    top: 0 !important;
    float: left;
    color: var(--text-color) !important;
    width: 100%;
    height: 30px;
    font-family: "MotivaSansBold";
}

.mg-nav-link {
    color: var(--text-color) !important;
    font-family: "MotivaSansRegular";
}

.mg-nav-item:hover {
    opacity: .9;
    transform: translateY(-2px);
    text-decoration: none;
}

.mg-nav-link:hover {
    text-decoration: none;
}

/* Main Content */

.mg-topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    width: 100%;
    height: var(--topbar-height);
}

.mg-content {
    position: fixed;
    left: var(--sidebar-width);
    top: var(--topbar-height);
    overflow: auto;
    width: calc(100% - var(--sidebar-width));
    height: calc(100% - var(--topbar-height));
}

/* Logo */
.logo {

    transition: .25s;
    transform: scale(1);
}

.logo:hover {
    transform: scale(.911);
}

/* Topbar */

.topmenus {
    border-radius: var(--border-radius);
    background: var(--bright-background-color);
    color: var(--text-color);
    border: none;
    outline: none;
}

.topmenus:focus {
    outline: none;
}

/* Searchbar */

.searchbar {
    transition: .4s;
    width: var(--searchbar-width);
    padding: 10px 50px;
}

.searchlabel {
    position: relative;
}

.searchlabel:before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 20px;
    background: url("../icons/search.svg") center / contain no-repeat;
}

/* Avatar */

.mg-avatar-container {
    width: 60px;
    height: 60px;
}

.mg-avatar {
    position: absolute;
    width: 50px;
    height: 50px;
    margin: 0;
    padding: 0;
    top: 5px;
    left: 5px;
    border-radius: var(--border-radius);
}

.mg-server-selector {
    padding-left: 20px;
    padding-right: 20px;
}

/* Breadcrumbs */
.breadcrumbs {
    color: var(--text-color);
    font-size: 18px;
}

/* Dropdown menus */
.dropdown-outline {
    border: 0;
    outline: none;
    background: var(--bright-background-color) !important;
    border-radius: var(--border-radius);
    color: var(--text-color) !important;
}

/* Server Browser */
.serverBrowser {
    transition: .75s;
    position: fixed;
    right: 0;
    top: 0;
    width: 480px;
    height: 100%;
    background: var(--bright-background-color);
    border-left: 1px solid var(--border-color);
    padding: 40px;
    z-index: 9999;
    overflow: auto;
}

.hidden {
    right: -480px;
}

.mg-server {
    transition: .4s;
    background: var(--background-color);
    border-radius: var(--border-radius);
    width: 100%;
    height: 60px;
    margin: 0;
    padding: 0;
    outline: none;
    color: var(--text-color);
    border: none;
}

.mg-server:disabled {
    cursor: not-allowed;
}

.mg-server:hover:disabled {
    cursor: not-allowed;
    animation: shake .75s;
    animation-iteration-count: 1;
}

.mg-server:focus {
    outline: none;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.mg-server-logo-container {
    display: inline-block;
    position: relative;
    width: 50px;
    height: 50px;
    margin-left: 5px !important;
    top: 5px !important;
    background: var(--bright-background-color);
    border-radius: var(--border-radius);
}

.mg-server-logo {
    position: relative;
    width: 40px;
    height: 40px;
    top: 5px !important;
}

.mg-server-name {
    float: right;
    line-height: 60px;
    font-size: 21px;
    color: var(--text-color);
    font-family: "MotivaSansMedium";
}

.mg-server-icon-cage {
    position: relative;
    float: right;
    width: 20px;
    height: 20px;
    top: 20px;
    margin-right: 10px;
}

.mg-server-icon {
    width: 20px;
    height: 20px;
}

/* Icon explanation */

.mg-icon-preview-container {
    position: relative;
    width: 100%;
}

.mg-icon-preview {
    float: left;
    width: 30px;
    height: 30px;
    background: var(--background-color);
    padding: 5px;
    border-radius: var(--border-radius);
}

.mg-icon-preview-icon {
    width: 20px;
    height: 20px;
}

.mg-icon-preview-text {
    color: var(--text-color);
    font-size: 15px;
    line-height: 30px;
}

/* Notifications */
.notification-menu {
    width: 300px;
    margin: 0;
    padding: 0;
}

.notification-counter {
    width: 10px;
    height: 10px;
    border-radius: 9999999px;
    color: white;
    font-size: 11px;
    background: rgb(200, 50, 50);
    position: relative;
    bottom: 15px;
    left: 35px;
    line-height: 20px;
}

.cart-counter {
    width: 10px;
    height: 10px;
    border-radius: 9999999px;
    color: white;
    font-size: 11px;
    background: rgb(200, 50, 50);
    position: relative;
    bottom: 10px;
    left: 25px;
    line-height: 20px;
    fill: #ff0000;
}

.notification-bell {
    position: relative;
    top: 5px;
    left: 0px;
    border-radius: var(--border-radius);
}

.cart-icon {
    width: 40px;
    height: 40px;
    position: relative;
    top: 5px;
    left: 0px;
    border-radius: var(--border-radius);
}

/* User menu */
.user-menu-div {
    width: 200px;
    border-radius: var(--border-radius) !important;
    background: var(--bright-background-color) !important;
}

.user-menu-divider {
    width: 100%;
    height: 1px;
    background: #353535;
}

.fixedAvatar {
    position: fixed;
    top: 26px;
    right: 20px;
}

.fixedNotification {
    position: fixed;
    top: 26px;
    right: calc(20px + 60px + 5px);
}

.fixedSearch {
    position: fixed;
    top: 26px !important;
    right: calc(20px + 60px + 60px + 20px);
}

.fixedServer {
    position: fixed;
    top: 26px;
    right: calc(20px + 60px + 60px + 20px + var(--searchbar-width) + 15px);
}

.mg-dropdown-menu {
    position: fixed;
    top: calc((var(--topbar-height) / 2) + 40px);
    right: 20px;
    z-index: 999;
}

.mg-dropdown-menu-notification {
    position: fixed;
    top: calc((var(--topbar-height) / 2) + 40px);
    right: calc(20px + 60px + 12.5px);
    z-index: 999;
}

.mg-dropdown-hidden {
    display: none;
}

.global-hidden {
    display: none;
}

.mg-menu-arrow {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--bright-background-color);
    top: -5px;
    right: 25px;
    transform: rotate(45deg);
}

.mg-menu-arrow-notification {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--bright-background-color);
    top: -5px;
    right: calc(25px);
    transform: rotate(45deg);
}

.card-title {
    font-size: 15px;
}

.mg-input-bright {
    transition: .4s;
    height: 60px;
    background-color: var(--bright-background-color);
    border-radius: var(--border-radius);
    border: none;
    outline: none;
    padding-left: 20px;
    padding-right: 20px;
    color: var(--text-default);
    width: 100%;
}