.app {
    min-height: 100vh;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {

    position: fixed;

    left: 0;
    top: 0;
    bottom: 0;

    width: var(--sidebar-width);

    padding: 24px 18px;

    background: var(--sidebar-bg);

    border-right:
        1px solid var(--border);

    display: flex;

    flex-direction: column;

    z-index: 100;
}


/* BRAND */

.brand {

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        4px
        10px
        28px;
}

.brand-icon {

    width: 44px;
    height: 44px;

    border-radius: 14px;

    display: grid;

    place-items: center;

    font-size: 22px;

    color: #c4b5fd;

    background:
        linear-gradient(
            135deg,
            rgba(139, 92, 246, 0.25),
            rgba(59, 130, 246, 0.08)
        );

    border:
        1px solid
        rgba(139, 92, 246, 0.4);
}

.brand h1 {

    font-size: 21px;

    line-height: 1;

    letter-spacing: -0.5px;
}

.brand span {

    display: block;

    margin-top: 6px;

    font-size: 11px;

    letter-spacing: 4px;

    color: #a78bfa;
}


/* NAVIGATION */

.navigation {

    display: flex;

    flex-direction: column;

    gap: 5px;

    flex: 1;

    overflow-y: auto;
}

.nav-item {

    height: 43px;

    display: flex;

    align-items: center;

    gap: 13px;

    padding:
        0
        14px;

    border-radius: 10px;

    color: #c5c9d8;

    font-size: 14px;

    transition: var(--transition);
}

.nav-item i {

    width: 20px;

    text-align: center;

    font-size: 15px;
}

.nav-item:hover {

    color: white;

    background:
        rgba(255, 255, 255, 0.045);
}

.nav-item.active {

    color: white;

    background:
        linear-gradient(
            90deg,
            #6d28d9,
            #7c3aed
        );

    box-shadow:
        0 8px 25px
        rgba(109, 40, 217, 0.3);
}


/* MINI SERVER */

.server-mini-card {

    margin-top: 18px;

    padding: 17px;

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid var(--border);
}

.mini-label {

    display: block;

    font-size: 10px;

    letter-spacing: 1px;

    color: var(--text-soft);

    margin-bottom: 8px;
}

.server-mini-card strong {

    display: block;

    font-size: 14px;
}

.server-mini-card p {

    margin-top: 7px;

    color: var(--text-soft);

    font-size: 11px;
}

.online-badge {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: 13px;

    padding:
        6px
        9px;

    border-radius: 7px;

    font-size: 10px;

    color: #4ade80;

    background:
        rgba(34, 197, 94, 0.08);
}

.online-badge span {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 10px #22c55e;
}


/* =========================================================
   MAIN
========================================================= */

.main {

    margin-left: var(--sidebar-width);

    min-height: 100vh;
}


/* TOPBAR */

.topbar {

    height: 82px;

    padding:
        0
        28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid var(--border);

    background:
        rgba(5, 8, 22, 0.72);

    backdrop-filter: blur(16px);

    position: sticky;

    top: 0;

    z-index: 50;
}

.topbar-left {

    display: flex;

    align-items: center;

    gap: 15px;
}

.topbar h2 {

    font-size: 21px;

    letter-spacing: -0.5px;
}

.topbar p {

    margin-top: 4px;

    color: var(--text-soft);

    font-size: 12px;
}

.menu-button {

    display: none;

    width: 42px;
    height: 42px;

    border-radius: 10px;

    background: var(--surface);

    color: white;

    cursor: pointer;
}

.topbar-right {

    display: flex;

    align-items: center;

    gap: 14px;
}


/* SEARCH */

.search-box {

    width: 260px;

    height: 42px;

    padding:
        0
        12px;

    display: flex;

    align-items: center;

    gap: 10px;

    border-radius: 11px;

    border:
        1px solid var(--border);

    background:
        rgba(255, 255, 255, 0.025);
}

.search-box i {

    color: var(--text-soft);

    font-size: 13px;
}

.search-box input {

    flex: 1;

    min-width: 0;

    border: 0;

    outline: 0;

    color: white;

    background: transparent;
}

.search-box input::placeholder {
    color: #707890;
}

.search-box kbd {

    color: #6f768b;

    font-size: 10px;
}


/* ICON BUTTON */

.icon-button {

    position: relative;

    width: 40px;
    height: 40px;

    border-radius: 10px;

    background: transparent;

    color: #cbd0df;

    cursor: pointer;
}

.icon-button:hover {

    background:
        rgba(255, 255, 255, 0.05);
}

.notification {

    position: absolute;

    right: 2px;
    top: 1px;

    min-width: 16px;
    height: 16px;

    padding:
        0
        4px;

    display: grid;

    place-items: center;

    border-radius: 20px;

    background: var(--purple);

    color: white;

    font-size: 9px;
}


/* PROFILE */

.profile {

    display: flex;

    align-items: center;

    gap: 10px;

    padding-left: 8px;
}

.avatar {

    width: 38px;
    height: 38px;

    border-radius: 50%;

    display: grid;

    place-items: center;

    font-weight: 700;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--blue)
        );
}

.profile-text {

    display: flex;

    flex-direction: column;

    gap: 2px;
}

.profile-text strong {
    font-size: 12px;
}

.profile-text span {

    font-size: 10px;

    color: var(--text-soft);
}

.profile > i {

    font-size: 10px;

    color: var(--text-soft);
}


/* CONTENT */

.content {

    padding: 26px;

    max-width: 1800px;

    margin: auto;
}


/* OVERLAY */

.sidebar-overlay {

    display: none;

    position: fixed;

    inset: 0;

    background:
        rgba(0, 0, 0, 0.65);

    z-index: 90;
}