.app-shell {
    min-height: 100vh;
    display: flex;
    background: #f7f8fc;
}

.sidebar {
    width: 260px;
    min-height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 42px;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    color: #334155;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.nav-link i {
    width: 18px;
    text-align: center;
    font-size: 15px;
}

.nav-link.active {
    background: #f1eaff;
    color: #6d28d9;
    font-weight: 800;
}

.sidebar-spacer {
    flex: 1;
}

.logout-button {
    width: 100%;
    height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    color: #dc2626;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
}

.logout-button i {
    width: 18px;
    text-align: center;
}

.main-area {
    flex: 1;
    margin-left: 260px;
    min-width: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar {
    height: 88px;
    flex-shrink: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-title h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.topbar-title p {
    color: #64748b;
    font-size: 14px;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ede9fe;
    color: #6d28d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.user-name {
    font-weight: 700;
}

.user-role {
    margin-top: 2px;
    color: #64748b;
    font-size: 13px;
}

.content {
    width: 100%;
    padding: 28px 40px 48px;
    flex: 1;
    overflow-y: auto;
}

.app-footer {
    height: 44px;
    flex-shrink: 0;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    color: #64748b;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

@media (max-width: 900px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .main-area {
        margin-left: 0;
        height: 100vh;
    }

    .topbar {
        height: auto;
        padding: 18px 20px;
    }

    .content {
        padding: 20px;
    }

    .app-footer {
        height: auto;
        padding: 14px 20px;
        flex-direction: column;
        gap: 6px;
    }
}
