/* Dashboard layout */
.dashboard-page {
    background: var(--canvas);
    overflow-x: hidden
}

.dashboard-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 236px 1fr
}

.dashboard-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: 236px;
    display: flex;
    flex-direction: column;
    padding: 25px 17px 18px;
    background: #fff;
    border-right: 1px solid var(--line)
}

.sidebar-brand {
    padding: 0 11px;
    margin-bottom: 30px
}

.sidebar-section-label {
    margin: 13px 12px 7px;
    color: #aaa8b4;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 43px;
    padding: 0 12px;
    border-radius: 11px;
    color: #706f7e;
    font-size: 13px;
    font-weight: 600;

    &:hover {
        background: #f7f6fb;
        color: var(--purple)
    }

    &.active {
        color: var(--purple);
        background: var(--purple-soft);
        font-weight: 700
    }
}

.nav-icon {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    font-size: 16px
}

.nav-badge {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 9px;
    color: #fff;
    background: var(--purple);
    font-size: 9px
}

.sidebar-footer {
    margin-top: auto
}

.support-card {
    padding: 15px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f2efff, #e8f8f8);

    span {
        display: grid;
        place-items: center;
        width: 30px;
        height: 30px;
        border-radius: 9px;
        background: #fff;
        color: var(--purple)
    }

    strong,
    small {
        display: block
    }

    strong {
        margin-top: 9px;
        font-size: 12px
    }

    small {
        margin: 4px 0 10px;
        color: var(--muted);
        font-size: 10px;
        line-height: 1.5
    }

    button {
        border: 0;
        padding: 0;
        color: var(--purple);
        background: none;
        font-size: 10px;
        font-weight: 700;
        cursor: pointer
    }
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
    padding: 12px 6px 0;
    border-top: 1px solid var(--line);

    strong,
    small {
        display: block;
        max-width: 115px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    strong {
        font-size: 11px
    }

    small {
        margin-top: 2px;
        color: var(--muted);
        font-size: 9px
    }

    button {
        margin-left: auto;
        border: 0;
        background: none;
        color: var(--muted);
        cursor: pointer
    }
}

.user-avatar,
.avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 35px;
    height: 35px;
    border-radius: 11px;
    background: #e2dcfb;
    color: #563cc9;
    font-size: 10px;
    font-weight: 800
}

.dashboard-body {
    grid-column: 2;
    min-width: 0
}

.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 30px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px)
}

.mobile-sidebar-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 21px
}

.topbar-search {
    position: relative;
    width: min(440px, 42vw);
    min-width: 0;

    input {
        width: 100%;
        height: 40px;
        padding: 0 43px;
        border: 1px solid #e5e4eb;
        border-radius: 22px;
        background: #f8f8fa;
        outline: 0;
        font-size: 12px;

        &:focus {
            border-color: #c4b9f8;
            background: #fff
        }
    }

    span {
        position: absolute;
        left: 16px;
        top: 10px;
        color: #9c9aa7
    }
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex: 0 0 auto
}

.icon-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: #6f6e7d;
    cursor: pointer;

    &:hover {
        color: var(--purple);
        border-color: #d8d1f8
    }
}

.notification-dot {
    position: absolute;
    right: 7px;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff6865;
    border: 2px solid #fff
}

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 5px;
    padding-left: 13px;
    border-left: 1px solid var(--line);

    strong,
    small {
        display: block
    }

    strong {
        font-size: 11px
    }

    small {
        font-size: 9px;
        color: var(--muted)
    }
}

.dashboard-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 27px 30px 50px;
    outline: 0
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(24, 21, 42, .38)
}

.toast-region {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50
}

.toast {
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #fff;
    background: #29263b;
    box-shadow: var(--shadow);
    font-size: 11px;
    animation: toast-in var(--dur-base) var(--ease-out)
}

.skeleton {
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg, #eeedf2 25%, #f8f7fa 50%, #eeedf2 75%);
    background-size: 200% 100%;
    animation: shimmer 1.3s infinite
}

@keyframes shimmer {
    to {
        background-position: -200% 0
    }
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(8px)
    }
}