body {
    min-height: 100vh;
}

.fm-sidebar-note {
    margin: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.7;
}

.fm-topbar-summary {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fm-topbar-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fm-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fm-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 24px;
}

.fm-hero {
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(9, 18, 56, 0.9), rgba(24, 105, 155, 0.78));
    box-shadow: 0 24px 60px rgba(4, 10, 28, 0.28);
}

.fm-eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fm-title {
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(2rem, 3vw, 3.15rem);
    font-weight: 700;
    line-height: 1.05;
}

.fm-copy {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.9;
}

.fm-stat-card {
    height: 100%;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.fm-stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.fm-stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fm-workspace-card {
    background: rgba(0, 0, 0, 0.18);
    box-shadow: 0 24px 60px rgba(4, 10, 28, 0.18);
}

.fm-workspace-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.fm-inline-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.22);
    color: #ffe08a;
    font-size: 12px;
    font-weight: 700;
}

.fm-frame-shell {
    position: relative;
    min-height: calc(100vh - 270px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
    background: #0b1120;
}

.fm-app-frame {
    display: block;
    width: 100%;
    height: calc(100vh - 270px);
    min-height: calc(100vh - 270px);
    border: 0;
    background: #fff;
}

.fm-frame-loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(11, 17, 32, 0.6);
    color: #fff;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.fm-frame-loading.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.metismenu .app-entry.active,
.metismenu .mm-active > .app-entry {
    background: rgba(255, 255, 255, 0.12);
}

.overlay {
    display: none;
}

.wrapper.toggled .overlay {
    display: block;
}

.back-to-top {
    display: none;
    align-items: center;
    justify-content: center;
}

.wrapper.toggled .fm-sidebar-note {
    display: none;
}

@media (max-width: 991.98px) {
    .fm-topbar-summary {
        min-width: 0;
    }

    .fm-topbar-actions {
        gap: 8px;
    }

    .fm-frame-shell,
    .fm-app-frame {
        min-height: calc(100vh - 320px);
        height: calc(100vh - 320px);
    }
}

@media (max-width: 767.98px) {
    .page-content {
        padding: 1rem 1rem 0 1rem;
    }

    .fm-topbar-chip {
        display: none;
    }

    .fm-topbar-actions .btn {
        padding-left: 10px;
        padding-right: 10px;
    }

    .fm-workspace-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .fm-frame-shell,
    .fm-app-frame {
        min-height: calc(100vh - 360px);
        height: calc(100vh - 360px);
    }
}
