/* Layout Core Structure */
html, body {
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: row;
    background: #f8fafc;
    width: 100%;
}

/* Sidebar on the Left */
.sidebar {
    width: 270px;
    min-width: 270px;
    height: 100vh;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    z-index: 50;
}

.sidebar-menu {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Main Workspace on the Right */
.main-wrapper {
    flex: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    min-width: 0;
}

.topbar {
    height: 64px;
    min-height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    flex-shrink: 0;
}

.content {
    flex: 1 0 auto;
    padding: 32px;
    width: 100%;
    max-width: 100%;
}

/* Footer Pinned at Bottom */
.app-footer {
    height: 44px;
    min-height: 44px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    font-size: 12px;
    color: #64748b;
    flex-shrink: 0;
    margin-top: auto;
}